//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Main configuration and I/O between your application and ImGui (also see: ImGuiPlatformIO)
///
///
/// C++:
/// imgui.h:196
///
struct ImGuiIO
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 3064)]
public unsafe partial struct ImGuiIO
{
///
///
/// = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Keyboard/Gamepad navigation
/// options, etc.
///
///
/// C++:
/// imgui.h:2444
///
ImGuiConfigFlags ConfigFlags
///
///
[FieldOffset(0)]
public ImGuiConfigFlags ConfigFlags;
///
///
/// = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend)
/// to communicate features supported by the backend.
///
///
/// C++:
/// imgui.h:2445
///
ImGuiBackendFlags BackendFlags
///
///
[FieldOffset(4)]
public ImGuiBackendFlags BackendFlags;
///
///
/// <unset> // Main display size, in pixels (== GetMainViewport()->Size). May change every
/// frame.
///
///
/// C++:
/// imgui.h:2446
///
ImVec2 DisplaySize
///
///
[FieldOffset(8)]
public float2 DisplaySize;
///
///
/// = (1, 1) // Main display density. For retina display where window coordinates are different from
/// framebuffer coordinates. This will affect font density + will end up in ImDrawData::FramebufferScale.
///
///
/// C++:
/// imgui.h:2447
///
ImVec2 DisplayFramebufferScale
///
///
[FieldOffset(16)]
public float2 DisplayFramebufferScale;
///
///
/// = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame.
///
///
/// C++:
/// imgui.h:2448
///
float DeltaTime
///
///
[FieldOffset(24)]
public float DeltaTime;
///
///
/// = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds.
///
///
/// C++:
/// imgui.h:2449
///
float IniSavingRate
///
///
[FieldOffset(28)]
public float IniSavingRate;
///
///
/// = "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.
///
///
/// C++:
/// imgui.h:2450
///
const char* IniFilename
///
///
[FieldOffset(32)]
public Ptr IniFilename;
///
///
/// = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified).
///
///
/// C++:
/// imgui.h:2451
///
const char* LogFilename
///
///
[FieldOffset(40)]
public Ptr LogFilename;
///
///
/// = NULL // Store your own data.
///
///
/// C++:
/// imgui.h:2452
///
void* UserData
///
///
[FieldOffset(48)]
public nint UserData;
///
///
/// <auto> // Font atlas: load, rasterize and pack one or more fonts into a single texture.
///
///
/// C++:
/// imgui.h:2455
///
ImFontAtlas*Fonts
///
///
///
///
/// Font system
///
///
[FieldOffset(56)]
public ImFontAtlasPtr Fonts;
///
///
/// = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0].
///
///
/// C++:
/// imgui.h:2456
///
ImFont* FontDefault
///
///
///
///
/// Font system
///
///
[FieldOffset(64)]
public ImFontPtr FontDefault;
///
///
/// = false // [OBSOLETE] Allow user scaling text of individual window with CTRL+Wheel.
///
///
/// C++:
/// imgui.h:2457
///
bool FontAllowUserScaling
///
///
///
///
/// Font system
///
///
[FieldOffset(72)]
public Bool8 FontAllowUserScaling;
///
///
/// = false // Swap Activate<>Cancel (A<>B) buttons, matching typical
/// "Nintendo/Japanese style" gamepad layout.
///
///
/// C++:
/// imgui.h:2460
///
bool ConfigNavSwapGamepadButtons
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(73)]
public Bool8 ConfigNavSwapGamepadButtons;
///
///
/// = false // Directional/tabbing navigation teleports the mouse cursor. May be useful on
/// TV/console systems where moving a virtual mouse is difficult. Will update io.MousePos and set
/// io.WantSetMousePos=true.
///
///
/// C++:
/// imgui.h:2461
///
bool ConfigNavMoveSetMousePos
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(74)]
public Bool8 ConfigNavMoveSetMousePos;
///
///
/// = true // Sets io.WantCaptureKeyboard when io.NavActive is set.
///
///
/// C++:
/// imgui.h:2462
///
bool ConfigNavCaptureKeyboard
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(75)]
public Bool8 ConfigNavCaptureKeyboard;
///
///
/// = true // Pressing Escape can clear focused item + navigation id/highlight. Set to false if
/// you want to always keep highlight on.
///
///
/// C++:
/// imgui.h:2463
///
bool ConfigNavEscapeClearFocusItem
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(76)]
public Bool8 ConfigNavEscapeClearFocusItem;
///
///
/// = false // Pressing Escape can clear focused window as well (super set of
/// io.ConfigNavEscapeClearFocusItem).
///
///
/// C++:
/// imgui.h:2464
///
bool ConfigNavEscapeClearFocusWindow
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(77)]
public Bool8 ConfigNavEscapeClearFocusWindow;
///
///
/// = true // Using directional navigation key makes the cursor visible. Mouse click hides the
/// cursor.
///
///
/// C++:
/// imgui.h:2465
///
bool ConfigNavCursorVisibleAuto
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(78)]
public Bool8 ConfigNavCursorVisibleAuto;
///
///
/// = false // Navigation cursor is always visible.
///
///
/// C++:
/// imgui.h:2466
///
bool ConfigNavCursorVisibleAlways
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
[FieldOffset(79)]
public Bool8 ConfigNavCursorVisibleAlways;
///
///
/// = false // Simplified docking mode: disable window splitting, so docking is limited to merging
/// multiple windows together into tab-bars.
///
///
/// C++:
/// imgui.h:2469
///
bool ConfigDockingNoSplit
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
[FieldOffset(80)]
public Bool8 ConfigDockingNoSplit;
///
///
/// = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider
/// space)
///
///
/// C++:
/// imgui.h:2470
///
bool ConfigDockingWithShift
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
[FieldOffset(81)]
public Bool8 ConfigDockingWithShift;
///
///
/// = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general
/// overhead] Make every single floating window display within a docking node.
///
///
/// C++:
/// imgui.h:2471
///
bool ConfigDockingAlwaysTabBar
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
[FieldOffset(82)]
public Bool8 ConfigDockingAlwaysTabBar;
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2472
///
bool ConfigDockingTransparentPayload
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
[FieldOffset(83)]
public Bool8 ConfigDockingTransparentPayload;
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2475
///
bool ConfigViewportsNoAutoMerge
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
[FieldOffset(84)]
public Bool8 ConfigViewportsNoAutoMerge;
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2476
///
bool ConfigViewportsNoTaskBarIcon
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
[FieldOffset(85)]
public Bool8 ConfigViewportsNoTaskBarIcon;
///
///
/// = 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).
///
///
/// C++:
/// imgui.h:2477
///
bool ConfigViewportsNoDecoration
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
[FieldOffset(86)]
public Bool8 ConfigViewportsNoDecoration;
///
///
/// = false // Disable default OS parenting to main viewport for secondary viewports. By default,
/// viewports are marked with ParentViewportId = <main_viewport>, 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.
///
///
/// C++:
/// imgui.h:2478
///
bool ConfigViewportsNoDefaultParent
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
[FieldOffset(87)]
public Bool8 ConfigViewportsNoDefaultParent;
///
///
/// = true // When a platform window is focused (e.g. using Alt+Tab, clicking Platform Title Bar), apply
/// corresponding focus on imgui windows (may clear focus/active id from imgui windows location in other
/// platform windows). In principle this is better enabled but we provide an opt-out, because some Linux
/// window managers tend to eagerly focus windows (e.g. on mouse hover, or even a simple window pos/size
/// change).
///
///
/// C++:
/// imgui.h:2479
///
bool ConfigViewportPlatformFocusSetsImGuiFocus
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
[FieldOffset(88)]
public Bool8 ConfigViewportPlatformFocusSetsImGuiFocus;
///
///
/// = false // [EXPERIMENTAL] Automatically overwrite style.FontScaleDpi when Monitor DPI changes.
/// This will scale fonts but _NOT_ scale sizes/padding for now.
///
///
/// C++:
/// imgui.h:2483
///
bool ConfigDpiScaleFonts
///
///
///
///
/// DPI/Scaling options
/// This may keep evolving during 1.92.x releases. Expect some turbulence.
///
///
[FieldOffset(89)]
public Bool8 ConfigDpiScaleFonts;
///
///
/// = false // [EXPERIMENTAL] Scale Dear ImGui and Platform Windows when Monitor DPI changes.
///
///
/// C++:
/// imgui.h:2484
///
bool ConfigDpiScaleViewports
///
///
///
///
/// DPI/Scaling options
/// This may keep evolving during 1.92.x releases. Expect some turbulence.
///
///
[FieldOffset(90)]
public Bool8 ConfigDpiScaleViewports;
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2488
///
bool MouseDrawCursor
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(91)]
public Bool8 MouseDrawCursor;
///
///
/// = defined(__APPLE__) // Swap Cmd<>Ctrl keys + 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.
///
///
/// C++:
/// imgui.h:2489
///
bool ConfigMacOSXBehaviors
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(92)]
public Bool8 ConfigMacOSXBehaviors;
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2490
///
bool ConfigInputTrickleEventQueue
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(93)]
public Bool8 ConfigInputTrickleEventQueue;
///
///
/// = true // Enable blinking cursor (optional as some users consider it to be distracting).
///
///
/// C++:
/// imgui.h:2491
///
bool ConfigInputTextCursorBlink
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(94)]
public Bool8 ConfigInputTextCursorBlink;
///
///
/// = false // [BETA] Pressing Enter will keep item active and select contents (single-line only).
///
///
/// C++:
/// imgui.h:2492
///
bool ConfigInputTextEnterKeepActive
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(95)]
public Bool8 ConfigInputTextEnterKeepActive;
///
///
/// = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse
/// click-release (without moving). Not desirable on devices without a keyboard.
///
///
/// C++:
/// imgui.h:2493
///
bool ConfigDragClickToInputText
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(96)]
public Bool8 ConfigDragClickToInputText;
///
///
/// = true // Enable resizing of windows from their edges and from the lower-left corner. This
/// requires ImGuiBackendFlags_HasMouseCursors for better mouse cursor feedback. (This used to be a
/// per-window ImGuiWindowFlags_ResizeFromAnySide flag)
///
///
/// C++:
/// imgui.h:2494
///
bool ConfigWindowsResizeFromEdges
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(97)]
public Bool8 ConfigWindowsResizeFromEdges;
///
///
/// = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to
/// windows without a title bar.
///
///
/// C++:
/// imgui.h:2495
///
bool ConfigWindowsMoveFromTitleBarOnly
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(98)]
public Bool8 ConfigWindowsMoveFromTitleBarOnly;
///
///
/// = false // [EXPERIMENTAL] CTRL+C copy the contents of focused window into the clipboard.
/// Experimental because: (1) has known issues with nested Begin/End pairs (2) text output quality varies
/// (3) text output is in submission order rather than spatial order.
///
///
/// C++:
/// imgui.h:2496
///
bool ConfigWindowsCopyContentsWithCtrlC
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(99)]
public Bool8 ConfigWindowsCopyContentsWithCtrlC;
///
///
/// = true // Enable scrolling page by page when clicking outside the scrollbar grab. When
/// disabled, always scroll to clicked location. When enabled, Shift+Click scrolls to clicked location.
///
///
/// C++:
/// imgui.h:2497
///
bool ConfigScrollbarScrollByPage
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(100)]
public Bool8 ConfigScrollbarScrollByPage;
///
///
/// = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set
/// to -1.0f to disable.
///
///
/// C++:
/// imgui.h:2498
///
float ConfigMemoryCompactTimer
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
[FieldOffset(104)]
public float ConfigMemoryCompactTimer;
///
///
/// = 0.30f // Time for a double-click, in seconds.
///
///
/// C++:
/// imgui.h:2502
///
float MouseDoubleClickTime
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
[FieldOffset(108)]
public float MouseDoubleClickTime;
///
///
/// = 6.0f // Distance threshold to stay in to validate a double-click, in pixels.
///
///
/// C++:
/// imgui.h:2503
///
float MouseDoubleClickMaxDist
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
[FieldOffset(112)]
public float MouseDoubleClickMaxDist;
///
///
/// = 6.0f // Distance threshold before considering we are dragging.
///
///
/// C++:
/// imgui.h:2504
///
float MouseDragThreshold
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
[FieldOffset(116)]
public float MouseDragThreshold;
///
///
/// = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons
/// in Repeat mode, etc.).
///
///
/// C++:
/// imgui.h:2505
///
float KeyRepeatDelay
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
[FieldOffset(120)]
public float KeyRepeatDelay;
///
///
/// = 0.050f // When holding a key/button, rate at which it repeats, in seconds.
///
///
/// C++:
/// imgui.h:2506
///
float KeyRepeatRate
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
[FieldOffset(124)]
public float KeyRepeatRate;
///
///
/// = true // Enable error recovery support. Some errors won't be detected and lead to direct crashes
/// if recovery is disabled.
///
///
/// C++:
/// imgui.h:2526
///
bool ConfigErrorRecovery
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
[FieldOffset(128)]
public Bool8 ConfigErrorRecovery;
///
///
/// = true // Enable asserts on recoverable error. By default call IM_ASSERT() when returning from a
/// failing IM_ASSERT_USER_ERROR()
///
///
/// C++:
/// imgui.h:2527
///
bool ConfigErrorRecoveryEnableAssert
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
[FieldOffset(129)]
public Bool8 ConfigErrorRecoveryEnableAssert;
///
///
/// = true // Enable debug log output on recoverable errors.
///
///
/// C++:
/// imgui.h:2528
///
bool ConfigErrorRecoveryEnableDebugLog
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
[FieldOffset(130)]
public Bool8 ConfigErrorRecoveryEnableDebugLog;
///
///
/// = true // Enable tooltip on recoverable errors. The tooltip include a way to enable asserts if
/// they were disabled.
///
///
/// C++:
/// imgui.h:2529
///
bool ConfigErrorRecoveryEnableTooltip
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
[FieldOffset(131)]
public Bool8 ConfigErrorRecoveryEnableTooltip;
///
///
/// = false // Enable various tools calling IM_DEBUG_BREAK().
///
///
/// C++:
/// imgui.h:2535
///
bool ConfigDebugIsDebuggerPresent
///
///
///
///
/// Option to enable various debug tools showing buttons that will call the IM_DEBUG_BREAK() macro.
/// - The Item Picker tool will be available regardless of this being enabled, in order to maximize its discoverability.
/// - Requires a debugger being attached, otherwise IM_DEBUG_BREAK() options will appear to crash your application.
/// e.g. io.ConfigDebugIsDebuggerPresent = ::IsDebuggerPresent() on Win32, or refer to ImOsIsDebuggerPresent() imgui_test_engine/imgui_te_utils.cpp for a Unix compatible version).
///
///
[FieldOffset(132)]
public Bool8 ConfigDebugIsDebuggerPresent;
///
///
/// = true // Highlight and show an error message popup when multiple items have conflicting
/// identifiers.
///
///
/// C++:
/// imgui.h:2541
///
bool ConfigDebugHighlightIdConflicts
///
///
///
///
/// Tools to detect code submitting items with conflicting/duplicate IDs
/// - Code should use PushID()/PopID() in loops, or append "##xx" to same-label identifiers.
/// - Empty label e.g. Button("") == same ID as parent widget/node. Use Button("##xx") instead!
/// - See FAQ https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system
///
///
[FieldOffset(133)]
public Bool8 ConfigDebugHighlightIdConflicts;
///
///
/// =true // Show "Item Picker" button in aforementioned popup.
///
///
/// C++:
/// imgui.h:2542
///
bool ConfigDebugHighlightIdConflictsShowItemPicker
///
///
///
///
/// Tools to detect code submitting items with conflicting/duplicate IDs
/// - Code should use PushID()/PopID() in loops, or append "##xx" to same-label identifiers.
/// - Empty label e.g. Button("") == same ID as parent widget/node. Use Button("##xx") instead!
/// - See FAQ https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system
///
///
[FieldOffset(134)]
public Bool8 ConfigDebugHighlightIdConflictsShowItemPicker;
///
///
/// = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT
/// APPLICATION BOOT TIME if you don't want to miss windows.
///
///
/// C++:
/// imgui.h:2548
///
bool ConfigDebugBeginReturnValueOnce
///
///
///
///
/// Tools to test correct Begin/End and BeginChild/EndChild behaviors.
/// - Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX()
/// - This is inconsistent with other BeginXXX functions and create confusion for many users.
/// - We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior.
///
///
[FieldOffset(135)]
public Bool8 ConfigDebugBeginReturnValueOnce;
///
///
/// = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window
/// depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop
/// then occasionally press SHIFT. Windows should be flickering while running.
///
///
/// C++:
/// imgui.h:2549
///
bool ConfigDebugBeginReturnValueLoop
///
///
///
///
/// Tools to test correct Begin/End and BeginChild/EndChild behaviors.
/// - Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX()
/// - This is inconsistent with other BeginXXX functions and create confusion for many users.
/// - We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior.
///
///
[FieldOffset(136)]
public Bool8 ConfigDebugBeginReturnValueLoop;
///
///
/// = false // Ignore io.AddFocusEvent(false), consequently not calling
/// io.ClearInputKeys()/io.ClearInputMouse() in input processing.
///
///
/// C++:
/// imgui.h:2554
///
bool ConfigDebugIgnoreFocusLoss
///
///
///
///
/// Option to deactivate io.AddFocusEvent(false) handling.
/// - May facilitate interactions with a debugger when focus loss leads to clearing inputs data.
/// - Backends may have other side-effects on focus loss, so this will reduce side-effects but not necessary remove all of them.
///
///
[FieldOffset(137)]
public Bool8 ConfigDebugIgnoreFocusLoss;
///
///
/// = false // Save .ini data with extra comments (particularly helpful for Docking, but makes
/// saving slower)
///
///
/// C++:
/// imgui.h:2557
///
bool ConfigDebugIniSettings
///
///
///
///
/// Option to audit .ini data
///
///
[FieldOffset(138)]
public Bool8 ConfigDebugIniSettings;
///
///
/// = NULL
///
///
/// C++:
/// imgui.h:2566
///
const char* BackendPlatformName
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
[FieldOffset(144)]
public Ptr BackendPlatformName;
///
///
/// = NULL
///
///
/// C++:
/// imgui.h:2567
///
const char* BackendRendererName
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
[FieldOffset(152)]
public Ptr BackendRendererName;
///
///
/// = NULL // User data for platform backend
///
///
/// C++:
/// imgui.h:2568
///
void* BackendPlatformUserData
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
[FieldOffset(160)]
public nint BackendPlatformUserData;
///
///
/// = NULL // User data for renderer backend
///
///
/// C++:
/// imgui.h:2569
///
void* BackendRendererUserData
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
[FieldOffset(168)]
public nint BackendRendererUserData;
///
///
/// = NULL // User data for non C++ programming language backend
///
///
/// C++:
/// imgui.h:2570
///
void* BackendLanguageUserData
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
[FieldOffset(176)]
public nint BackendLanguageUserData;
///
///
/// 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.).
///
///
/// C++:
/// imgui.h:2604
///
bool WantCaptureMouse
///
///
[FieldOffset(184)]
public Bool8 WantCaptureMouse;
///
///
/// 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.).
///
///
/// C++:
/// imgui.h:2605
///
bool WantCaptureKeyboard
///
///
[FieldOffset(185)]
public Bool8 WantCaptureKeyboard;
///
///
/// 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).
///
///
/// C++:
/// imgui.h:2606
///
bool WantTextInput
///
///
[FieldOffset(186)]
public Bool8 WantTextInput;
///
///
/// MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when
/// io.ConfigNavMoveSetMousePos is enabled.
///
///
/// C++:
/// imgui.h:2607
///
bool WantSetMousePos
///
///
[FieldOffset(187)]
public Bool8 WantSetMousePos;
///
///
/// 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!
///
///
/// C++:
/// imgui.h:2608
///
bool WantSaveIniSettings
///
///
[FieldOffset(188)]
public Bool8 WantSaveIniSettings;
///
///
/// Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is
/// focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag.
///
///
/// C++:
/// imgui.h:2609
///
bool NavActive
///
///
[FieldOffset(189)]
public Bool8 NavActive;
///
///
/// Keyboard/Gamepad navigation highlight is visible and allowed (will handle ImGuiKey_NavXXX events).
///
///
/// C++:
/// imgui.h:2610
///
bool NavVisible
///
///
[FieldOffset(190)]
public Bool8 NavVisible;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2611
///
float Framerate
///
///
[FieldOffset(192)]
public float Framerate;
///
///
/// Vertices output during last call to Render()
///
///
/// C++:
/// imgui.h:2612
///
int MetricsRenderVertices
///
///
[FieldOffset(196)]
public int MetricsRenderVertices;
///
///
/// Indices output during last call to Render() = number of triangles * 3
///
///
/// C++:
/// imgui.h:2613
///
int MetricsRenderIndices
///
///
[FieldOffset(200)]
public int MetricsRenderIndices;
///
///
/// Number of visible windows
///
///
/// C++:
/// imgui.h:2614
///
int MetricsRenderWindows
///
///
[FieldOffset(204)]
public int MetricsRenderWindows;
///
///
/// Number of active windows
///
///
/// C++:
/// imgui.h:2615
///
int MetricsActiveWindows
///
///
[FieldOffset(208)]
public int MetricsActiveWindows;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2616
///
ImVec2 MouseDelta
///
///
[FieldOffset(212)]
public float2 MouseDelta;
///
///
/// Parent UI context (needs to be set explicitly by parent).
///
///
/// C++:
/// imgui.h:2622
///
ImGuiContext* Ctx
///
///
[FieldOffset(224)]
public ImGuiContextPtr Ctx;
///
///
/// Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen,
/// etc.)
///
///
/// C++:
/// imgui.h:2627
///
ImVec2 MousePos
///
///
///
///
/// 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)
///
///
[FieldOffset(232)]
public float2 MousePos;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2628
///
bool MouseDown[5]
///
///
///
///
/// 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)
///
///
[FieldOffset(240)]
public Bool8_5 MouseDown;
///
///
/// Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold
/// SHIFT to turn vertical scroll into horizontal scroll.
///
///
/// C++:
/// imgui.h:2629
///
float MouseWheel
///
///
///
///
/// 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)
///
///
[FieldOffset(248)]
public float MouseWheel;
///
///
/// Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a
/// horizontal wheel, may not be filled by all backends.
///
///
/// C++:
/// imgui.h:2630
///
float MouseWheelH
///
///
///
///
/// 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)
///
///
[FieldOffset(252)]
public float MouseWheelH;
///
///
/// Mouse actual input peripheral (Mouse/TouchScreen/Pen).
///
///
/// C++:
/// imgui.h:2631
///
ImGuiMouseSource MouseSource
///
///
///
///
/// 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)
///
///
[FieldOffset(256)]
public ImGuiMouseSource MouseSource;
///
///
/// (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).
///
///
/// C++:
/// imgui.h:2632
///
ImGuiID MouseHoveredViewport
///
///
///
///
/// 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)
///
///
[FieldOffset(260)]
public ImGuiID MouseHoveredViewport;
///
///
/// Keyboard modifier down: Ctrl (non-macOS), Cmd (macOS)
///
///
/// C++:
/// imgui.h:2633
///
bool KeyCtrl
///
///
///
///
/// 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)
///
///
[FieldOffset(264)]
public Bool8 KeyCtrl;
///
///
/// Keyboard modifier down: Shift
///
///
/// C++:
/// imgui.h:2634
///
bool KeyShift
///
///
///
///
/// 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)
///
///
[FieldOffset(265)]
public Bool8 KeyShift;
///
///
/// Keyboard modifier down: Alt
///
///
/// C++:
/// imgui.h:2635
///
bool KeyAlt
///
///
///
///
/// 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)
///
///
[FieldOffset(266)]
public Bool8 KeyAlt;
///
///
/// Keyboard modifier down: Windows/Super (non-macOS), Ctrl (macOS)
///
///
/// C++:
/// imgui.h:2636
///
bool KeySuper
///
///
///
///
/// 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)
///
///
[FieldOffset(267)]
public Bool8 KeySuper;
///
///
/// 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()
///
///
/// C++:
/// imgui.h:2639
///
ImGuiKeyChord KeyMods
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(268)]
public ImGuiKeyChord KeyMods;
///
///
/// Key state for all known keys. MUST use 'key - ImGuiKey_NamedKey_BEGIN' as index. Use IsKeyXXX()
/// functions to access this.
///
///
/// C++:
/// imgui.h:2640
///
ImGuiKeyData KeysData[ImGuiKey_NamedKey_COUNT]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(272)]
public ImGuiKeyData_155 KeysData;
///
///
/// Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose
/// == false) when a click over void is expected to close a popup.
///
///
/// C++:
/// imgui.h:2641
///
bool WantCaptureMouseUnlessPopupClose
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2752)]
public Bool8 WantCaptureMouseUnlessPopupClose;
///
///
/// Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either
/// position is invalid)
///
///
/// C++:
/// imgui.h:2642
///
ImVec2 MousePosPrev
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2756)]
public float2 MousePosPrev;
///
///
/// Position at time of clicking
///
///
/// C++:
/// imgui.h:2643
///
ImVec2 MouseClickedPos[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2764)]
public float2_5 MouseClickedPos;
///
/// Time of last click (used to figure out double-click)
///
[FieldOffset(2808)]
public fixed double MouseClickedTime[5];
///
///
/// Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0)
///
///
/// C++:
/// imgui.h:2645
///
bool MouseClicked[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2848)]
public Bool8_5 MouseClicked;
///
///
/// Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2)
///
///
/// C++:
/// imgui.h:2646
///
bool MouseDoubleClicked[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2853)]
public Bool8_5 MouseDoubleClicked;
///
///
/// == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc.
/// when going from !Down to Down
///
///
/// C++:
/// imgui.h:2647
///
ImU16 MouseClickedCount[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2858)]
public ushort_5 MouseClickedCount;
///
///
/// Count successive number of clicks. Stays valid after mouse release. Reset after another click is done.
///
///
/// C++:
/// imgui.h:2648
///
ImU16 MouseClickedLastCount[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2868)]
public ushort_5 MouseClickedLastCount;
///
///
/// Mouse button went from Down to !Down
///
///
/// C++:
/// imgui.h:2649
///
bool MouseReleased[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2878)]
public Bool8_5 MouseReleased;
///
/// Time of last released (rarely used! but useful to handle delayed single-click when trying to disambiguate
/// them from double-click).
///
[FieldOffset(2888)]
public fixed double MouseReleasedTime[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.
///
///
/// C++:
/// imgui.h:2651
///
bool MouseDownOwned[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2928)]
public Bool8_5 MouseDownOwned;
///
///
/// Track if button was clicked inside a dear imgui window.
///
///
/// C++:
/// imgui.h:2652
///
bool MouseDownOwnedUnlessPopupClose[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2933)]
public Bool8_5 MouseDownOwnedUnlessPopupClose;
///
///
/// On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac
/// system this is already enforced by the system.
///
///
/// C++:
/// imgui.h:2653
///
bool MouseWheelRequestAxisSwap
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2938)]
public Bool8 MouseWheelRequestAxisSwap;
///
///
/// (OSX) Set to true when the current click was a Ctrl+click that spawned a simulated right click
///
///
/// C++:
/// imgui.h:2654
///
bool MouseCtrlLeftAsRightClick
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2939)]
public Bool8 MouseCtrlLeftAsRightClick;
///
/// Duration the mouse button has been down (0.0f == just clicked)
///
[FieldOffset(2940)]
public fixed float MouseDownDuration[5];
///
/// Previous time the mouse button has been down
///
[FieldOffset(2960)]
public fixed float MouseDownDurationPrev[5];
///
///
/// Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point
///
///
/// C++:
/// imgui.h:2657
///
ImVec2 MouseDragMaxDistanceAbs[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(2980)]
public float2_5 MouseDragMaxDistanceAbs;
///
/// Squared maximum distance of how much mouse has traveled from the clicking point (used for moving
/// thresholds)
///
[FieldOffset(3020)]
public fixed float MouseDragMaxDistanceSqr[5];
///
///
/// Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage
/// currently unused by Dear ImGui.
///
///
/// C++:
/// imgui.h:2659
///
float PenPressure
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(3040)]
public float PenPressure;
///
///
/// Only modify via AddFocusEvent()
///
///
/// C++:
/// imgui.h:2660
///
bool AppFocusLost
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(3044)]
public Bool8 AppFocusLost;
///
///
/// Only modify via SetAppAcceptingEvents()
///
///
/// C++:
/// imgui.h:2661
///
bool AppAcceptingEvents
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(3045)]
public Bool8 AppAcceptingEvents;
///
///
/// For AddInputCharacterUTF16()
///
///
/// C++:
/// imgui.h:2662
///
ImWchar16 InputQueueSurrogate
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(3046)]
public ushort InputQueueSurrogate;
///
///
/// Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper.
///
///
/// C++:
/// imgui.h:2663
///
ImVector<ImWchar> InputQueueCharacters
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
[FieldOffset(3048)]
public ImVector InputQueueCharacters;
}
///
///
/// Main configuration and I/O between your application and ImGui (also see: ImGuiPlatformIO)
///
///
/// C++:
/// imgui.h:196
///
struct ImGuiIO
///
///
///
///
/// Forward declarations: ImGui layer
///
///
public unsafe partial struct ImGuiIOPtr(ImGuiIO* ptr) : INullable
{
private ImGuiIO* _ptr = ptr;
public ImGuiIO* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImGuiIOPtr(ImGuiIO* ptr) => new(ptr);
public static implicit operator ImGuiIO*(ImGuiIOPtr wrapper) => wrapper.Ptr;
///
///
/// = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Keyboard/Gamepad navigation
/// options, etc.
///
///
/// C++:
/// imgui.h:2444
///
ImGuiConfigFlags ConfigFlags
///
///
public ref ImGuiConfigFlags ConfigFlags => ref Unsafe.AsRef(&_ptr->ConfigFlags);
///
///
/// = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend)
/// to communicate features supported by the backend.
///
///
/// C++:
/// imgui.h:2445
///
ImGuiBackendFlags BackendFlags
///
///
public ref ImGuiBackendFlags BackendFlags => ref Unsafe.AsRef(&_ptr->BackendFlags);
///
///
/// <unset> // Main display size, in pixels (== GetMainViewport()->Size). May change every
/// frame.
///
///
/// C++:
/// imgui.h:2446
///
ImVec2 DisplaySize
///
///
public ref float2 DisplaySize => ref Unsafe.AsRef(&_ptr->DisplaySize);
///
///
/// = (1, 1) // Main display density. For retina display where window coordinates are different from
/// framebuffer coordinates. This will affect font density + will end up in ImDrawData::FramebufferScale.
///
///
/// C++:
/// imgui.h:2447
///
ImVec2 DisplayFramebufferScale
///
///
public ref float2 DisplayFramebufferScale => ref Unsafe.AsRef(&_ptr->DisplayFramebufferScale);
///
///
/// = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame.
///
///
/// C++:
/// imgui.h:2448
///
float DeltaTime
///
///
public ref float DeltaTime => ref Unsafe.AsRef(&_ptr->DeltaTime);
///
///
/// = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds.
///
///
/// C++:
/// imgui.h:2449
///
float IniSavingRate
///
///
public ref float IniSavingRate => ref Unsafe.AsRef(&_ptr->IniSavingRate);
///
///
/// = "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.
///
///
/// C++:
/// imgui.h:2450
///
const char* IniFilename
///
///
public ref Ptr IniFilename => ref Unsafe.AsRef>(&_ptr->IniFilename);
///
///
/// = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified).
///
///
/// C++:
/// imgui.h:2451
///
const char* LogFilename
///
///
public ref Ptr LogFilename => ref Unsafe.AsRef>(&_ptr->LogFilename);
///
///
/// = NULL // Store your own data.
///
///
/// C++:
/// imgui.h:2452
///
void* UserData
///
///
public ref nint UserData => ref Unsafe.AsRef(&_ptr->UserData);
///
///
/// <auto> // Font atlas: load, rasterize and pack one or more fonts into a single texture.
///
///
/// C++:
/// imgui.h:2455
///
ImFontAtlas*Fonts
///
///
///
///
/// Font system
///
///
public ref ImFontAtlasPtr Fonts => ref Unsafe.AsRef(&_ptr->Fonts);
///
///
/// = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0].
///
///
/// C++:
/// imgui.h:2456
///
ImFont* FontDefault
///
///
///
///
/// Font system
///
///
public ref ImFontPtr FontDefault => ref Unsafe.AsRef(&_ptr->FontDefault);
///
///
/// = false // [OBSOLETE] Allow user scaling text of individual window with CTRL+Wheel.
///
///
/// C++:
/// imgui.h:2457
///
bool FontAllowUserScaling
///
///
///
///
/// Font system
///
///
public ref bool FontAllowUserScaling => ref Unsafe.AsRef(&_ptr->FontAllowUserScaling);
///
///
/// = false // Swap Activate<>Cancel (A<>B) buttons, matching typical
/// "Nintendo/Japanese style" gamepad layout.
///
///
/// C++:
/// imgui.h:2460
///
bool ConfigNavSwapGamepadButtons
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavSwapGamepadButtons => ref Unsafe.AsRef(&_ptr->ConfigNavSwapGamepadButtons);
///
///
/// = false // Directional/tabbing navigation teleports the mouse cursor. May be useful on
/// TV/console systems where moving a virtual mouse is difficult. Will update io.MousePos and set
/// io.WantSetMousePos=true.
///
///
/// C++:
/// imgui.h:2461
///
bool ConfigNavMoveSetMousePos
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavMoveSetMousePos => ref Unsafe.AsRef(&_ptr->ConfigNavMoveSetMousePos);
///
///
/// = true // Sets io.WantCaptureKeyboard when io.NavActive is set.
///
///
/// C++:
/// imgui.h:2462
///
bool ConfigNavCaptureKeyboard
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavCaptureKeyboard => ref Unsafe.AsRef(&_ptr->ConfigNavCaptureKeyboard);
///
///
/// = true // Pressing Escape can clear focused item + navigation id/highlight. Set to false if
/// you want to always keep highlight on.
///
///
/// C++:
/// imgui.h:2463
///
bool ConfigNavEscapeClearFocusItem
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavEscapeClearFocusItem => ref Unsafe.AsRef(&_ptr->ConfigNavEscapeClearFocusItem);
///
///
/// = false // Pressing Escape can clear focused window as well (super set of
/// io.ConfigNavEscapeClearFocusItem).
///
///
/// C++:
/// imgui.h:2464
///
bool ConfigNavEscapeClearFocusWindow
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavEscapeClearFocusWindow =>
ref Unsafe.AsRef(&_ptr->ConfigNavEscapeClearFocusWindow);
///
///
/// = true // Using directional navigation key makes the cursor visible. Mouse click hides the
/// cursor.
///
///
/// C++:
/// imgui.h:2465
///
bool ConfigNavCursorVisibleAuto
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavCursorVisibleAuto => ref Unsafe.AsRef(&_ptr->ConfigNavCursorVisibleAuto);
///
///
/// = false // Navigation cursor is always visible.
///
///
/// C++:
/// imgui.h:2466
///
bool ConfigNavCursorVisibleAlways
///
///
///
///
/// Keyboard/Gamepad Navigation options
///
///
public ref bool ConfigNavCursorVisibleAlways => ref Unsafe.AsRef(&_ptr->ConfigNavCursorVisibleAlways);
///
///
/// = false // Simplified docking mode: disable window splitting, so docking is limited to merging
/// multiple windows together into tab-bars.
///
///
/// C++:
/// imgui.h:2469
///
bool ConfigDockingNoSplit
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
public ref bool ConfigDockingNoSplit => ref Unsafe.AsRef(&_ptr->ConfigDockingNoSplit);
///
///
/// = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider
/// space)
///
///
/// C++:
/// imgui.h:2470
///
bool ConfigDockingWithShift
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
public ref bool ConfigDockingWithShift => ref Unsafe.AsRef(&_ptr->ConfigDockingWithShift);
///
///
/// = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general
/// overhead] Make every single floating window display within a docking node.
///
///
/// C++:
/// imgui.h:2471
///
bool ConfigDockingAlwaysTabBar
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
public ref bool ConfigDockingAlwaysTabBar => ref Unsafe.AsRef(&_ptr->ConfigDockingAlwaysTabBar);
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2472
///
bool ConfigDockingTransparentPayload
///
///
///
///
/// Docking options (when ImGuiConfigFlags_DockingEnable is set)
///
///
public ref bool ConfigDockingTransparentPayload =>
ref Unsafe.AsRef(&_ptr->ConfigDockingTransparentPayload);
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2475
///
bool ConfigViewportsNoAutoMerge
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
public ref bool ConfigViewportsNoAutoMerge => ref Unsafe.AsRef(&_ptr->ConfigViewportsNoAutoMerge);
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2476
///
bool ConfigViewportsNoTaskBarIcon
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
public ref bool ConfigViewportsNoTaskBarIcon => ref Unsafe.AsRef(&_ptr->ConfigViewportsNoTaskBarIcon);
///
///
/// = 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).
///
///
/// C++:
/// imgui.h:2477
///
bool ConfigViewportsNoDecoration
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
public ref bool ConfigViewportsNoDecoration => ref Unsafe.AsRef(&_ptr->ConfigViewportsNoDecoration);
///
///
/// = false // Disable default OS parenting to main viewport for secondary viewports. By default,
/// viewports are marked with ParentViewportId = <main_viewport>, 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.
///
///
/// C++:
/// imgui.h:2478
///
bool ConfigViewportsNoDefaultParent
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
public ref bool ConfigViewportsNoDefaultParent => ref Unsafe.AsRef(&_ptr->ConfigViewportsNoDefaultParent);
///
///
/// = true // When a platform window is focused (e.g. using Alt+Tab, clicking Platform Title Bar), apply
/// corresponding focus on imgui windows (may clear focus/active id from imgui windows location in other
/// platform windows). In principle this is better enabled but we provide an opt-out, because some Linux
/// window managers tend to eagerly focus windows (e.g. on mouse hover, or even a simple window pos/size
/// change).
///
///
/// C++:
/// imgui.h:2479
///
bool ConfigViewportPlatformFocusSetsImGuiFocus
///
///
///
///
/// Viewport options (when ImGuiConfigFlags_ViewportsEnable is set)
///
///
public ref bool ConfigViewportPlatformFocusSetsImGuiFocus =>
ref Unsafe.AsRef(&_ptr->ConfigViewportPlatformFocusSetsImGuiFocus);
///
///
/// = false // [EXPERIMENTAL] Automatically overwrite style.FontScaleDpi when Monitor DPI changes.
/// This will scale fonts but _NOT_ scale sizes/padding for now.
///
///
/// C++:
/// imgui.h:2483
///
bool ConfigDpiScaleFonts
///
///
///
///
/// DPI/Scaling options
/// This may keep evolving during 1.92.x releases. Expect some turbulence.
///
///
public ref bool ConfigDpiScaleFonts => ref Unsafe.AsRef(&_ptr->ConfigDpiScaleFonts);
///
///
/// = false // [EXPERIMENTAL] Scale Dear ImGui and Platform Windows when Monitor DPI changes.
///
///
/// C++:
/// imgui.h:2484
///
bool ConfigDpiScaleViewports
///
///
///
///
/// DPI/Scaling options
/// This may keep evolving during 1.92.x releases. Expect some turbulence.
///
///
public ref bool ConfigDpiScaleViewports => ref Unsafe.AsRef(&_ptr->ConfigDpiScaleViewports);
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2488
///
bool MouseDrawCursor
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool MouseDrawCursor => ref Unsafe.AsRef(&_ptr->MouseDrawCursor);
///
///
/// = defined(__APPLE__) // Swap Cmd<>Ctrl keys + 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.
///
///
/// C++:
/// imgui.h:2489
///
bool ConfigMacOSXBehaviors
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigMacOSXBehaviors => ref Unsafe.AsRef(&_ptr->ConfigMacOSXBehaviors);
///
///
/// = 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.
///
///
/// C++:
/// imgui.h:2490
///
bool ConfigInputTrickleEventQueue
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigInputTrickleEventQueue => ref Unsafe.AsRef(&_ptr->ConfigInputTrickleEventQueue);
///
///
/// = true // Enable blinking cursor (optional as some users consider it to be distracting).
///
///
/// C++:
/// imgui.h:2491
///
bool ConfigInputTextCursorBlink
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigInputTextCursorBlink => ref Unsafe.AsRef(&_ptr->ConfigInputTextCursorBlink);
///
///
/// = false // [BETA] Pressing Enter will keep item active and select contents (single-line only).
///
///
/// C++:
/// imgui.h:2492
///
bool ConfigInputTextEnterKeepActive
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigInputTextEnterKeepActive => ref Unsafe.AsRef(&_ptr->ConfigInputTextEnterKeepActive);
///
///
/// = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse
/// click-release (without moving). Not desirable on devices without a keyboard.
///
///
/// C++:
/// imgui.h:2493
///
bool ConfigDragClickToInputText
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigDragClickToInputText => ref Unsafe.AsRef(&_ptr->ConfigDragClickToInputText);
///
///
/// = true // Enable resizing of windows from their edges and from the lower-left corner. This
/// requires ImGuiBackendFlags_HasMouseCursors for better mouse cursor feedback. (This used to be a
/// per-window ImGuiWindowFlags_ResizeFromAnySide flag)
///
///
/// C++:
/// imgui.h:2494
///
bool ConfigWindowsResizeFromEdges
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigWindowsResizeFromEdges => ref Unsafe.AsRef(&_ptr->ConfigWindowsResizeFromEdges);
///
///
/// = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to
/// windows without a title bar.
///
///
/// C++:
/// imgui.h:2495
///
bool ConfigWindowsMoveFromTitleBarOnly
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigWindowsMoveFromTitleBarOnly =>
ref Unsafe.AsRef(&_ptr->ConfigWindowsMoveFromTitleBarOnly);
///
///
/// = false // [EXPERIMENTAL] CTRL+C copy the contents of focused window into the clipboard.
/// Experimental because: (1) has known issues with nested Begin/End pairs (2) text output quality varies
/// (3) text output is in submission order rather than spatial order.
///
///
/// C++:
/// imgui.h:2496
///
bool ConfigWindowsCopyContentsWithCtrlC
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigWindowsCopyContentsWithCtrlC =>
ref Unsafe.AsRef(&_ptr->ConfigWindowsCopyContentsWithCtrlC);
///
///
/// = true // Enable scrolling page by page when clicking outside the scrollbar grab. When
/// disabled, always scroll to clicked location. When enabled, Shift+Click scrolls to clicked location.
///
///
/// C++:
/// imgui.h:2497
///
bool ConfigScrollbarScrollByPage
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref bool ConfigScrollbarScrollByPage => ref Unsafe.AsRef(&_ptr->ConfigScrollbarScrollByPage);
///
///
/// = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set
/// to -1.0f to disable.
///
///
/// C++:
/// imgui.h:2498
///
float ConfigMemoryCompactTimer
///
///
///
///
/// Miscellaneous options
/// (you can visualize and interact with all options in 'Demo->Configuration')
///
///
public ref float ConfigMemoryCompactTimer => ref Unsafe.AsRef(&_ptr->ConfigMemoryCompactTimer);
///
///
/// = 0.30f // Time for a double-click, in seconds.
///
///
/// C++:
/// imgui.h:2502
///
float MouseDoubleClickTime
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
public ref float MouseDoubleClickTime => ref Unsafe.AsRef(&_ptr->MouseDoubleClickTime);
///
///
/// = 6.0f // Distance threshold to stay in to validate a double-click, in pixels.
///
///
/// C++:
/// imgui.h:2503
///
float MouseDoubleClickMaxDist
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef(&_ptr->MouseDoubleClickMaxDist);
///
///
/// = 6.0f // Distance threshold before considering we are dragging.
///
///
/// C++:
/// imgui.h:2504
///
float MouseDragThreshold
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
public ref float MouseDragThreshold => ref Unsafe.AsRef(&_ptr->MouseDragThreshold);
///
///
/// = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons
/// in Repeat mode, etc.).
///
///
/// C++:
/// imgui.h:2505
///
float KeyRepeatDelay
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
public ref float KeyRepeatDelay => ref Unsafe.AsRef(&_ptr->KeyRepeatDelay);
///
///
/// = 0.050f // When holding a key/button, rate at which it repeats, in seconds.
///
///
/// C++:
/// imgui.h:2506
///
float KeyRepeatRate
///
///
///
///
/// Inputs Behaviors
/// (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle)
///
///
public ref float KeyRepeatRate => ref Unsafe.AsRef(&_ptr->KeyRepeatRate);
///
///
/// = true // Enable error recovery support. Some errors won't be detected and lead to direct crashes
/// if recovery is disabled.
///
///
/// C++:
/// imgui.h:2526
///
bool ConfigErrorRecovery
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
public ref bool ConfigErrorRecovery => ref Unsafe.AsRef(&_ptr->ConfigErrorRecovery);
///
///
/// = true // Enable asserts on recoverable error. By default call IM_ASSERT() when returning from a
/// failing IM_ASSERT_USER_ERROR()
///
///
/// C++:
/// imgui.h:2527
///
bool ConfigErrorRecoveryEnableAssert
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
public ref bool ConfigErrorRecoveryEnableAssert =>
ref Unsafe.AsRef(&_ptr->ConfigErrorRecoveryEnableAssert);
///
///
/// = true // Enable debug log output on recoverable errors.
///
///
/// C++:
/// imgui.h:2528
///
bool ConfigErrorRecoveryEnableDebugLog
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
public ref bool ConfigErrorRecoveryEnableDebugLog =>
ref Unsafe.AsRef(&_ptr->ConfigErrorRecoveryEnableDebugLog);
///
///
/// = true // Enable tooltip on recoverable errors. The tooltip include a way to enable asserts if
/// they were disabled.
///
///
/// C++:
/// imgui.h:2529
///
bool ConfigErrorRecoveryEnableTooltip
///
///
///
///
/// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]
/// - Error recovery is provided as a way to facilitate:
/// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).
/// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.
/// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.
/// You not are not supposed to rely on it in the course of a normal application run.
/// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().
/// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!
/// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!
/// Otherwise it would severely hinder your ability to catch and correct mistakes!
/// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.
/// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)
/// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)
/// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings.
///
///
public ref bool ConfigErrorRecoveryEnableTooltip =>
ref Unsafe.AsRef(&_ptr->ConfigErrorRecoveryEnableTooltip);
///
///
/// = false // Enable various tools calling IM_DEBUG_BREAK().
///
///
/// C++:
/// imgui.h:2535
///
bool ConfigDebugIsDebuggerPresent
///
///
///
///
/// Option to enable various debug tools showing buttons that will call the IM_DEBUG_BREAK() macro.
/// - The Item Picker tool will be available regardless of this being enabled, in order to maximize its discoverability.
/// - Requires a debugger being attached, otherwise IM_DEBUG_BREAK() options will appear to crash your application.
/// e.g. io.ConfigDebugIsDebuggerPresent = ::IsDebuggerPresent() on Win32, or refer to ImOsIsDebuggerPresent() imgui_test_engine/imgui_te_utils.cpp for a Unix compatible version).
///
///
public ref bool ConfigDebugIsDebuggerPresent => ref Unsafe.AsRef(&_ptr->ConfigDebugIsDebuggerPresent);
///
///
/// = true // Highlight and show an error message popup when multiple items have conflicting
/// identifiers.
///
///
/// C++:
/// imgui.h:2541
///
bool ConfigDebugHighlightIdConflicts
///
///
///
///
/// Tools to detect code submitting items with conflicting/duplicate IDs
/// - Code should use PushID()/PopID() in loops, or append "##xx" to same-label identifiers.
/// - Empty label e.g. Button("") == same ID as parent widget/node. Use Button("##xx") instead!
/// - See FAQ https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system
///
///
public ref bool ConfigDebugHighlightIdConflicts =>
ref Unsafe.AsRef(&_ptr->ConfigDebugHighlightIdConflicts);
///
///
/// =true // Show "Item Picker" button in aforementioned popup.
///
///
/// C++:
/// imgui.h:2542
///
bool ConfigDebugHighlightIdConflictsShowItemPicker
///
///
///
///
/// Tools to detect code submitting items with conflicting/duplicate IDs
/// - Code should use PushID()/PopID() in loops, or append "##xx" to same-label identifiers.
/// - Empty label e.g. Button("") == same ID as parent widget/node. Use Button("##xx") instead!
/// - See FAQ https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system
///
///
public ref bool ConfigDebugHighlightIdConflictsShowItemPicker =>
ref Unsafe.AsRef(&_ptr->ConfigDebugHighlightIdConflictsShowItemPicker);
///
///
/// = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT
/// APPLICATION BOOT TIME if you don't want to miss windows.
///
///
/// C++:
/// imgui.h:2548
///
bool ConfigDebugBeginReturnValueOnce
///
///
///
///
/// Tools to test correct Begin/End and BeginChild/EndChild behaviors.
/// - Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX()
/// - This is inconsistent with other BeginXXX functions and create confusion for many users.
/// - We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior.
///
///
public ref bool ConfigDebugBeginReturnValueOnce =>
ref Unsafe.AsRef(&_ptr->ConfigDebugBeginReturnValueOnce);
///
///
/// = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window
/// depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop
/// then occasionally press SHIFT. Windows should be flickering while running.
///
///
/// C++:
/// imgui.h:2549
///
bool ConfigDebugBeginReturnValueLoop
///
///
///
///
/// Tools to test correct Begin/End and BeginChild/EndChild behaviors.
/// - Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX()
/// - This is inconsistent with other BeginXXX functions and create confusion for many users.
/// - We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior.
///
///
public ref bool ConfigDebugBeginReturnValueLoop =>
ref Unsafe.AsRef(&_ptr->ConfigDebugBeginReturnValueLoop);
///
///
/// = false // Ignore io.AddFocusEvent(false), consequently not calling
/// io.ClearInputKeys()/io.ClearInputMouse() in input processing.
///
///
/// C++:
/// imgui.h:2554
///
bool ConfigDebugIgnoreFocusLoss
///
///
///
///
/// Option to deactivate io.AddFocusEvent(false) handling.
/// - May facilitate interactions with a debugger when focus loss leads to clearing inputs data.
/// - Backends may have other side-effects on focus loss, so this will reduce side-effects but not necessary remove all of them.
///
///
public ref bool ConfigDebugIgnoreFocusLoss => ref Unsafe.AsRef(&_ptr->ConfigDebugIgnoreFocusLoss);
///
///
/// = false // Save .ini data with extra comments (particularly helpful for Docking, but makes
/// saving slower)
///
///
/// C++:
/// imgui.h:2557
///
bool ConfigDebugIniSettings
///
///
///
///
/// Option to audit .ini data
///
///
public ref bool ConfigDebugIniSettings => ref Unsafe.AsRef(&_ptr->ConfigDebugIniSettings);
///
///
/// = NULL
///
///
/// C++:
/// imgui.h:2566
///
const char* BackendPlatformName
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
public ref Ptr BackendPlatformName => ref Unsafe.AsRef>(&_ptr->BackendPlatformName);
///
///
/// = NULL
///
///
/// C++:
/// imgui.h:2567
///
const char* BackendRendererName
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
public ref Ptr BackendRendererName => ref Unsafe.AsRef>(&_ptr->BackendRendererName);
///
///
/// = NULL // User data for platform backend
///
///
/// C++:
/// imgui.h:2568
///
void* BackendPlatformUserData
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
public ref nint BackendPlatformUserData => ref Unsafe.AsRef(&_ptr->BackendPlatformUserData);
///
///
/// = NULL // User data for renderer backend
///
///
/// C++:
/// imgui.h:2569
///
void* BackendRendererUserData
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
public ref nint BackendRendererUserData => ref Unsafe.AsRef(&_ptr->BackendRendererUserData);
///
///
/// = NULL // User data for non C++ programming language backend
///
///
/// C++:
/// imgui.h:2570
///
void* BackendLanguageUserData
///
///
///
///
/// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.
/// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff.
///
///
public ref nint BackendLanguageUserData => ref Unsafe.AsRef(&_ptr->BackendLanguageUserData);
///
///
/// 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.).
///
///
/// C++:
/// imgui.h:2604
///
bool WantCaptureMouse
///
///
public ref bool WantCaptureMouse => ref Unsafe.AsRef(&_ptr->WantCaptureMouse);
///
///
/// 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.).
///
///
/// C++:
/// imgui.h:2605
///
bool WantCaptureKeyboard
///
///
public ref bool WantCaptureKeyboard => ref Unsafe.AsRef(&_ptr->WantCaptureKeyboard);
///
///
/// 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).
///
///
/// C++:
/// imgui.h:2606
///
bool WantTextInput
///
///
public ref bool WantTextInput => ref Unsafe.AsRef(&_ptr->WantTextInput);
///
///
/// MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when
/// io.ConfigNavMoveSetMousePos is enabled.
///
///
/// C++:
/// imgui.h:2607
///
bool WantSetMousePos
///
///
public ref bool WantSetMousePos => ref Unsafe.AsRef(&_ptr->WantSetMousePos);
///
///
/// 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!
///
///
/// C++:
/// imgui.h:2608
///
bool WantSaveIniSettings
///
///
public ref bool WantSaveIniSettings => ref Unsafe.AsRef(&_ptr->WantSaveIniSettings);
///
///
/// Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is
/// focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag.
///
///
/// C++:
/// imgui.h:2609
///
bool NavActive
///
///
public ref bool NavActive => ref Unsafe.AsRef(&_ptr->NavActive);
///
///
/// Keyboard/Gamepad navigation highlight is visible and allowed (will handle ImGuiKey_NavXXX events).
///
///
/// C++:
/// imgui.h:2610
///
bool NavVisible
///
///
public ref bool NavVisible => ref Unsafe.AsRef(&_ptr->NavVisible);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2611
///
float Framerate
///
///
public ref float Framerate => ref Unsafe.AsRef(&_ptr->Framerate);
///
///
/// Vertices output during last call to Render()
///
///
/// C++:
/// imgui.h:2612
///
int MetricsRenderVertices
///
///
public ref int MetricsRenderVertices => ref Unsafe.AsRef(&_ptr->MetricsRenderVertices);
///
///
/// Indices output during last call to Render() = number of triangles * 3
///
///
/// C++:
/// imgui.h:2613
///
int MetricsRenderIndices
///
///
public ref int MetricsRenderIndices => ref Unsafe.AsRef(&_ptr->MetricsRenderIndices);
///
///
/// Number of visible windows
///
///
/// C++:
/// imgui.h:2614
///
int MetricsRenderWindows
///
///
public ref int MetricsRenderWindows => ref Unsafe.AsRef(&_ptr->MetricsRenderWindows);
///
///
/// Number of active windows
///
///
/// C++:
/// imgui.h:2615
///
int MetricsActiveWindows
///
///
public ref int MetricsActiveWindows => ref Unsafe.AsRef(&_ptr->MetricsActiveWindows);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2616
///
ImVec2 MouseDelta
///
///
public ref float2 MouseDelta => ref Unsafe.AsRef(&_ptr->MouseDelta);
///
///
/// Parent UI context (needs to be set explicitly by parent).
///
///
/// C++:
/// imgui.h:2622
///
ImGuiContext* Ctx
///
///
public ref ImGuiContextPtr Ctx => ref Unsafe.AsRef(&_ptr->Ctx);
///
///
/// Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen,
/// etc.)
///
///
/// C++:
/// imgui.h:2627
///
ImVec2 MousePos
///
///
///
///
/// 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)
///
///
public ref float2 MousePos => ref Unsafe.AsRef(&_ptr->MousePos);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:2628
///
bool MouseDown[5]
///
///
///
///
/// 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)
///
///
public ref Bool8_5 MouseDown => ref Unsafe.AsRef(&_ptr->MouseDown);
///
///
/// Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold
/// SHIFT to turn vertical scroll into horizontal scroll.
///
///
/// C++:
/// imgui.h:2629
///
float MouseWheel
///
///
///
///
/// 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)
///
///
public ref float MouseWheel => ref Unsafe.AsRef(&_ptr->MouseWheel);
///
///
/// Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a
/// horizontal wheel, may not be filled by all backends.
///
///
/// C++:
/// imgui.h:2630
///
float MouseWheelH
///
///
///
///
/// 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)
///
///
public ref float MouseWheelH => ref Unsafe.AsRef(&_ptr->MouseWheelH);
///
///
/// Mouse actual input peripheral (Mouse/TouchScreen/Pen).
///
///
/// C++:
/// imgui.h:2631
///
ImGuiMouseSource MouseSource
///
///
///
///
/// 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)
///
///
public ref ImGuiMouseSource MouseSource => ref Unsafe.AsRef(&_ptr->MouseSource);
///
///
/// (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).
///
///
/// C++:
/// imgui.h:2632
///
ImGuiID MouseHoveredViewport
///
///
///
///
/// 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)
///
///
public ref ImGuiID MouseHoveredViewport => ref Unsafe.AsRef(&_ptr->MouseHoveredViewport);
///
///
/// Keyboard modifier down: Ctrl (non-macOS), Cmd (macOS)
///
///
/// C++:
/// imgui.h:2633
///
bool KeyCtrl
///
///
///
///
/// 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)
///
///
public ref bool KeyCtrl => ref Unsafe.AsRef(&_ptr->KeyCtrl);
///
///
/// Keyboard modifier down: Shift
///
///
/// C++:
/// imgui.h:2634
///
bool KeyShift
///
///
///
///
/// 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)
///
///
public ref bool KeyShift => ref Unsafe.AsRef(&_ptr->KeyShift);
///
///
/// Keyboard modifier down: Alt
///
///
/// C++:
/// imgui.h:2635
///
bool KeyAlt
///
///
///
///
/// 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)
///
///
public ref bool KeyAlt => ref Unsafe.AsRef(&_ptr->KeyAlt);
///
///
/// Keyboard modifier down: Windows/Super (non-macOS), Ctrl (macOS)
///
///
/// C++:
/// imgui.h:2636
///
bool KeySuper
///
///
///
///
/// 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)
///
///
public ref bool KeySuper => ref Unsafe.AsRef(&_ptr->KeySuper);
///
///
/// 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()
///
///
/// C++:
/// imgui.h:2639
///
ImGuiKeyChord KeyMods
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref ImGuiKeyChord KeyMods => ref Unsafe.AsRef(&_ptr->KeyMods);
///
///
/// Key state for all known keys. MUST use 'key - ImGuiKey_NamedKey_BEGIN' as index. Use IsKeyXXX()
/// functions to access this.
///
///
/// C++:
/// imgui.h:2640
///
ImGuiKeyData KeysData[ImGuiKey_NamedKey_COUNT]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref ImGuiKeyData_155 KeysData => ref Unsafe.AsRef(&_ptr->KeysData);
///
///
/// Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose
/// == false) when a click over void is expected to close a popup.
///
///
/// C++:
/// imgui.h:2641
///
bool WantCaptureMouseUnlessPopupClose
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref bool WantCaptureMouseUnlessPopupClose =>
ref Unsafe.AsRef(&_ptr->WantCaptureMouseUnlessPopupClose);
///
///
/// Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either
/// position is invalid)
///
///
/// C++:
/// imgui.h:2642
///
ImVec2 MousePosPrev
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref float2 MousePosPrev => ref Unsafe.AsRef(&_ptr->MousePosPrev);
///
///
/// Position at time of clicking
///
///
/// C++:
/// imgui.h:2643
///
ImVec2 MouseClickedPos[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref float2_5 MouseClickedPos => ref Unsafe.AsRef(&_ptr->MouseClickedPos);
///
/// Time of last click (used to figure out double-click)
///
public Span MouseClickedTime => MemoryMarshal.CreateSpan(ref _ptr->MouseClickedTime[0], 5);
///
///
/// Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0)
///
///
/// C++:
/// imgui.h:2645
///
bool MouseClicked[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref Bool8_5 MouseClicked => ref Unsafe.AsRef(&_ptr->MouseClicked);
///
///
/// Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2)
///
///
/// C++:
/// imgui.h:2646
///
bool MouseDoubleClicked[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref Bool8_5 MouseDoubleClicked => ref Unsafe.AsRef(&_ptr->MouseDoubleClicked);
///
///
/// == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc.
/// when going from !Down to Down
///
///
/// C++:
/// imgui.h:2647
///
ImU16 MouseClickedCount[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref ushort_5 MouseClickedCount => ref Unsafe.AsRef(&_ptr->MouseClickedCount);
///
///
/// Count successive number of clicks. Stays valid after mouse release. Reset after another click is done.
///
///
/// C++:
/// imgui.h:2648
///
ImU16 MouseClickedLastCount[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref ushort_5 MouseClickedLastCount => ref Unsafe.AsRef(&_ptr->MouseClickedLastCount);
///
///
/// Mouse button went from Down to !Down
///
///
/// C++:
/// imgui.h:2649
///
bool MouseReleased[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref Bool8_5 MouseReleased => ref Unsafe.AsRef(&_ptr->MouseReleased);
///
/// Time of last released (rarely used! but useful to handle delayed single-click when trying to disambiguate
/// them from double-click).
///
public Span MouseReleasedTime => MemoryMarshal.CreateSpan(ref _ptr->MouseReleasedTime[0], 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.
///
///
/// C++:
/// imgui.h:2651
///
bool MouseDownOwned[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref Bool8_5 MouseDownOwned => ref Unsafe.AsRef(&_ptr->MouseDownOwned);
///
///
/// Track if button was clicked inside a dear imgui window.
///
///
/// C++:
/// imgui.h:2652
///
bool MouseDownOwnedUnlessPopupClose[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref Bool8_5 MouseDownOwnedUnlessPopupClose =>
ref Unsafe.AsRef(&_ptr->MouseDownOwnedUnlessPopupClose);
///
///
/// On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac
/// system this is already enforced by the system.
///
///
/// C++:
/// imgui.h:2653
///
bool MouseWheelRequestAxisSwap
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref bool MouseWheelRequestAxisSwap => ref Unsafe.AsRef(&_ptr->MouseWheelRequestAxisSwap);
///
///
/// (OSX) Set to true when the current click was a Ctrl+click that spawned a simulated right click
///
///
/// C++:
/// imgui.h:2654
///
bool MouseCtrlLeftAsRightClick
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref bool MouseCtrlLeftAsRightClick => ref Unsafe.AsRef(&_ptr->MouseCtrlLeftAsRightClick);
///
/// Duration the mouse button has been down (0.0f == just clicked)
///
public Span MouseDownDuration => MemoryMarshal.CreateSpan(ref _ptr->MouseDownDuration[0], 5);
///
/// Previous time the mouse button has been down
///
public Span MouseDownDurationPrev => MemoryMarshal.CreateSpan(ref _ptr->MouseDownDurationPrev[0], 5);
///
///
/// Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point
///
///
/// C++:
/// imgui.h:2657
///
ImVec2 MouseDragMaxDistanceAbs[5]
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref float2_5 MouseDragMaxDistanceAbs => ref Unsafe.AsRef(&_ptr->MouseDragMaxDistanceAbs);
///
/// Squared maximum distance of how much mouse has traveled from the clicking point (used for moving
/// thresholds)
///
public Span MouseDragMaxDistanceSqr => MemoryMarshal.CreateSpan(ref _ptr->MouseDragMaxDistanceSqr[0], 5);
///
///
/// Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage
/// currently unused by Dear ImGui.
///
///
/// C++:
/// imgui.h:2659
///
float PenPressure
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref float PenPressure => ref Unsafe.AsRef(&_ptr->PenPressure);
///
///
/// Only modify via AddFocusEvent()
///
///
/// C++:
/// imgui.h:2660
///
bool AppFocusLost
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref bool AppFocusLost => ref Unsafe.AsRef(&_ptr->AppFocusLost);
///
///
/// Only modify via SetAppAcceptingEvents()
///
///
/// C++:
/// imgui.h:2661
///
bool AppAcceptingEvents
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref bool AppAcceptingEvents => ref Unsafe.AsRef(&_ptr->AppAcceptingEvents);
///
///
/// For AddInputCharacterUTF16()
///
///
/// C++:
/// imgui.h:2662
///
ImWchar16 InputQueueSurrogate
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref ushort InputQueueSurrogate => ref Unsafe.AsRef(&_ptr->InputQueueSurrogate);
///
///
/// Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper.
///
///
/// C++:
/// imgui.h:2663
///
ImVector<ImWchar> InputQueueCharacters
///
///
///
///
/// Other state maintained from data above + IO function calls
///
///
public ref ImVector InputQueueCharacters => ref Unsafe.AsRef>(&_ptr->InputQueueCharacters);
}
}