Path Tracing
Loading...
Searching...
No Matches
imgui_internal.h
Go to the documentation of this file.
1// dear imgui, v1.92.8 WIP
2// (internal structures/api)
3
4// You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility.
5
6/*
7
8Index of this file:
9
10// [SECTION] Header mess
11// [SECTION] Forward declarations
12// [SECTION] Context pointer
13// [SECTION] STB libraries includes
14// [SECTION] Macros
15// [SECTION] Generic helpers
16// [SECTION] ImDrawList support
17// [SECTION] Style support
18// [SECTION] Data types support
19// [SECTION] Widgets support: flags, enums, data structures
20// [SECTION] Popup support
21// [SECTION] Inputs support
22// [SECTION] Clipper support
23// [SECTION] Navigation support
24// [SECTION] Typing-select support
25// [SECTION] Columns support
26// [SECTION] Box-select support
27// [SECTION] Multi-select support
28// [SECTION] Docking support
29// [SECTION] Viewport support
30// [SECTION] Settings support
31// [SECTION] Localization support
32// [SECTION] Error handling, State recovery support
33// [SECTION] Metrics, Debug tools
34// [SECTION] Generic context hooks
35// [SECTION] ImGuiContext (main imgui context)
36// [SECTION] ImGuiWindowTempData, ImGuiWindow
37// [SECTION] Tab bar, Tab item support
38// [SECTION] Table support
39// [SECTION] ImGui internal API
40// [SECTION] ImFontLoader
41// [SECTION] ImFontAtlas internal API
42// [SECTION] Test Engine specific hooks (imgui_test_engine)
43
44*/
45
46#pragma once
47#ifndef IMGUI_DISABLE
48
49//-----------------------------------------------------------------------------
50// [SECTION] Header mess
51//-----------------------------------------------------------------------------
52
53#ifndef IMGUI_VERSION
54#include "imgui.h"
55#endif
56
57#include <stdio.h> // FILE*, sscanf
58#include <stdlib.h> // NULL, malloc, free, qsort, atoi, atof
59#include <math.h> // sqrtf, fabsf, fmodf, powf, floorf, ceilf, cosf, sinf
60#include <limits.h> // INT_MIN, INT_MAX
61
62// Enable SSE intrinsics if available
63#if (defined __SSE__ || defined __x86_64__ || defined _M_X64 || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))) && !defined(IMGUI_DISABLE_SSE) && !defined(_M_ARM64) && !defined(_M_ARM64EC)
64#define IMGUI_ENABLE_SSE
65#include <immintrin.h>
66#if (defined __AVX__ || defined __SSE4_2__)
67#define IMGUI_ENABLE_SSE4_2
68#include <nmmintrin.h>
69#endif
70#endif
71// Emscripten has partial SSE 4.2 support where _mm_crc32_u32 is not available. See https://emscripten.org/docs/porting/simd.html#id11 and #8213
72#if defined(IMGUI_ENABLE_SSE4_2) && !defined(IMGUI_USE_LEGACY_CRC32_ADLER) && !defined(__EMSCRIPTEN__)
73#define IMGUI_ENABLE_SSE4_2_CRC
74#endif
75
76// Visual Studio warnings
77#ifdef _MSC_VER
78#pragma warning (push)
79#pragma warning (disable: 4251) // class 'xxx' needs to have dll-interface to be used by clients of struct 'xxx' // when IMGUI_API is set to__declspec(dllexport)
80#pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6).
81#pragma warning (disable: 26812) // [Static Analyzer] The enum type 'xxx' is unscoped. Prefer 'enum class' over 'enum' (Enum.3).
82#if defined(_MSC_VER) && _MSC_VER >= 1922 // MSVC 2019 16.2 or later
83#pragma warning (disable: 5054) // operator '|': deprecated between enumerations of different types
84#endif
85#endif
86
87// Clang/GCC warnings with -Weverything
88#if defined(__clang__)
89#pragma clang diagnostic push
90#if __has_warning("-Wunknown-warning-option")
91#pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx'
92#endif
93#pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx'
94#pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe // storing and comparing against same constants ok, for ImFloor()
95#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast
96#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant
97#pragma clang diagnostic ignored "-Wdouble-promotion" // warning: implicit conversion from 'float' to 'double' when passing argument to function
98#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion" // warning: implicit conversion from 'xxx' to 'float' may lose precision
99#pragma clang diagnostic ignored "-Wmissing-noreturn" // warning: function 'xxx' could be declared with attribute 'noreturn'
100#pragma clang diagnostic ignored "-Wdeprecated-enum-enum-conversion"// warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated
101#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" // warning: 'xxx' is an unsafe pointer used for buffer access
102#pragma clang diagnostic ignored "-Wnontrivial-memaccess" // warning: first argument in call to 'memset' is a pointer to non-trivially copyable type
103#elif defined(__GNUC__)
104#pragma GCC diagnostic push
105#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind
106#pragma GCC diagnostic ignored "-Wfloat-equal" // warning: comparing floating-point with '==' or '!=' is unsafe
107#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead
108#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // warning: bitwise operation between different enumeration types ('XXXFlags_' and 'XXXFlagsPrivate_') is deprecated
109#pragma GCC diagnostic ignored "-Wsign-conversion" // warning: conversion to 'xxxx' from 'xxxx' may change the sign of the result
110#endif
111
112// In 1.89.4, we moved the implementation of "courtesy maths operators" from imgui_internal.h in imgui.h
113// As they are frequently requested, we do not want to encourage to many people using imgui_internal.h
114#if defined(IMGUI_DEFINE_MATH_OPERATORS) && !defined(IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED)
115#error Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_ including imgui.h!
116#endif
117
118// Legacy defines
119#ifdef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS // Renamed in 1.74
120#error Use IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
121#endif
122#ifdef IMGUI_DISABLE_MATH_FUNCTIONS // Renamed in 1.74
123#error Use IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS
124#endif
125
126// Enable stb_truetype by default unless FreeType is enabled.
127// You can compile with both by defining both IMGUI_ENABLE_FREETYPE and IMGUI_ENABLE_STB_TRUETYPE together.
128#ifndef IMGUI_ENABLE_FREETYPE
129#define IMGUI_ENABLE_STB_TRUETYPE
130#endif
131
132//-----------------------------------------------------------------------------
133// [SECTION] Forward declarations
134//-----------------------------------------------------------------------------
135
136// Utilities
137// (other types which are not forwarded declared are: ImBitArray<>, ImSpan<>, ImSpanAllocator<>, ImStableVector<>, ImPool<>, ImChunkStream<>)
138struct ImBitVector; // Store 1-bit per value
139struct ImRect; // An axis-aligned rectangle (2 points)
140struct ImGuiTextIndex; // Maintain a line index for a text buffer.
141
142// ImDrawList/ImFontAtlas
143struct ImDrawDataBuilder; // Helper to build a ImDrawData instance
144struct ImDrawListSharedData; // Data shared between all ImDrawList instances
145struct ImFontAtlasBuilder; // Internal storage for incrementally packing and building a ImFontAtlas
146struct ImFontAtlasPostProcessData; // Data available to potential texture post-processing functions
147struct ImFontAtlasRectEntry; // Packed rectangle lookup entry
148
149// ImGui
150struct ImGuiBoxSelectState; // Box-selection state (currently used by multi-selection, could potentially be used by others)
151struct ImGuiColorMod; // Stacked color modifier, backup of modified data so we can restore it
152struct ImGuiContext; // Main Dear ImGui context
153struct ImGuiContextHook; // Hook for extensions like ImGuiTestEngine
154struct ImGuiDataTypeInfo; // Type information associated to a ImGuiDataType enum
155struct ImGuiDeactivatedItemData; // Data for IsItemDeactivated()/IsItemDeactivatedAfterEdit() function.
156struct ImGuiErrorRecoveryState; // Storage of stack sizes for error handling and recovery
157struct ImGuiGroupData; // Stacked storage data for BeginGroup()/EndGroup()
158struct ImGuiInputTextState; // Internal state of the currently focused/edited text input box
159struct ImGuiInputTextDeactivateData;// Short term storage to backup text of a deactivating InputText() while another is stealing active id
160struct ImGuiLastItemData; // Status storage for last submitted items
161struct ImGuiLocEntry; // A localization entry.
162struct ImGuiMenuColumns; // Simple column measurement, currently used for MenuItem() only
163struct ImGuiMultiSelectState; // Multi-selection persistent state (for focused selection).
164struct ImGuiMultiSelectTempData; // Multi-selection temporary state (while traversing).
165struct ImGuiNavItemData; // Result of a keyboard/gamepad directional navigation move query result
166struct ImGuiMetricsConfig; // Storage for ShowMetricsWindow() and DebugNodeXXX() functions
167struct ImGuiNextWindowData; // Storage for SetNextWindow** functions
168struct ImGuiNextItemData; // Storage for SetNextItem** functions
169struct ImGuiOldColumnData; // Storage data for a single column for legacy Columns() api
170struct ImGuiOldColumns; // Storage data for a columns set for legacy Columns() api
171struct ImGuiPopupData; // Storage for current popup stack
172struct ImGuiSettingsHandler; // Storage for one type registered in the .ini file
173struct ImGuiStyleMod; // Stacked style modifier, backup of modified data so we can restore it
174struct ImGuiStyleVarInfo; // Style variable information (e.g. to access style variables from an enum)
175struct ImGuiTabBar; // Storage for a tab bar
176struct ImGuiTabItem; // Storage for a tab item (within a tab bar)
177struct ImGuiTable; // Storage for a table
178struct ImGuiTableHeaderData; // Storage for TableAngledHeadersRow()
179struct ImGuiTableColumn; // Storage for one column of a table
180struct ImGuiTableInstanceData; // Storage for one instance of a same table
181struct ImGuiTableTempData; // Temporary storage for one table (one per table in the stack), shared between tables.
182struct ImGuiTableSettings; // Storage for a table .ini settings
183struct ImGuiTableColumnsSettings; // Storage for a column .ini settings
184struct ImGuiTreeNodeStackData; // Temporary storage for TreeNode().
185struct ImGuiTypingSelectState; // Storage for GetTypingSelectRequest()
186struct ImGuiTypingSelectRequest; // Storage for GetTypingSelectRequest() (aimed to be public)
187struct ImGuiWindow; // Storage for one window
188struct ImGuiWindowTempData; // Temporary storage for one window (that's the data which in theory we could ditch at the end of the frame, in practice we currently keep it for each window)
189struct ImGuiWindowSettings; // Storage for a window .ini settings (we keep one of those even if the actual window wasn't instanced during this session)
190
191// Enumerations
192// Use your programming IDE "Go to definition" facility on the names of the center columns to find the actual flags/enum lists.
193enum ImGuiLocKey : int; // -> enum ImGuiLocKey // Enum: a localization entry for translation.
194typedef int ImGuiLayoutType; // -> enum ImGuiLayoutType_ // Enum: Horizontal or vertical
195
196// Flags
197typedef int ImDrawTextFlags; // -> enum ImDrawTextFlags_ // Flags: for ImTextCalcWordWrapPositionEx()
198typedef int ImGuiActivateFlags; // -> enum ImGuiActivateFlags_ // Flags: for navigation/focus function (will be for ActivateItem() later)
199typedef int ImGuiDebugLogFlags; // -> enum ImGuiDebugLogFlags_ // Flags: for ShowDebugLogWindow(), g.DebugLogFlags
200typedef int ImGuiFocusRequestFlags; // -> enum ImGuiFocusRequestFlags_ // Flags: for FocusWindow()
201typedef int ImGuiItemStatusFlags; // -> enum ImGuiItemStatusFlags_ // Flags: for g.LastItemData.StatusFlags
202typedef int ImGuiOldColumnFlags; // -> enum ImGuiOldColumnFlags_ // Flags: for BeginColumns()
203typedef int ImGuiLogFlags; // -> enum ImGuiLogFlags_ // Flags: for LogBegin() text capturing function
204typedef int ImGuiNavRenderCursorFlags; // -> enum ImGuiNavRenderCursorFlags_//Flags: for RenderNavCursor()
205typedef int ImGuiNavMoveFlags; // -> enum ImGuiNavMoveFlags_ // Flags: for navigation requests
206typedef int ImGuiNextItemDataFlags; // -> enum ImGuiNextItemDataFlags_ // Flags: for SetNextItemXXX() functions
207typedef int ImGuiNextWindowDataFlags; // -> enum ImGuiNextWindowDataFlags_// Flags: for SetNextWindowXXX() functions
208typedef int ImGuiScrollFlags; // -> enum ImGuiScrollFlags_ // Flags: for ScrollToItem() and navigation requests
209typedef int ImGuiSeparatorFlags; // -> enum ImGuiSeparatorFlags_ // Flags: for SeparatorEx()
210typedef int ImGuiTextFlags; // -> enum ImGuiTextFlags_ // Flags: for TextEx()
211typedef int ImGuiTooltipFlags; // -> enum ImGuiTooltipFlags_ // Flags: for BeginTooltipEx()
212typedef int ImGuiTypingSelectFlags; // -> enum ImGuiTypingSelectFlags_ // Flags: for GetTypingSelectRequest()
213typedef int ImGuiWindowBgClickFlags; // -> enum ImGuiWindowBgClickFlags_ // Flags: for overriding behavior of clicking on window background/void.
214typedef int ImGuiWindowRefreshFlags; // -> enum ImGuiWindowRefreshFlags_ // Flags: for SetNextWindowRefreshPolicy()
215
216// Table column indexing
219
220//-----------------------------------------------------------------------------
221// [SECTION] Context pointer
222// See implementation of this variable in imgui.cpp for comments and details.
223//-----------------------------------------------------------------------------
224
225#ifndef GImGui
226extern IMGUI_API ImGuiContext* GImGui; // Current implicit context pointer
227#endif
228
229//-----------------------------------------------------------------------------
230// [SECTION] Macros
231//-----------------------------------------------------------------------------
232
233// Debug Printing Into TTY
234// (since IMGUI_VERSION_NUM >= 18729: IMGUI_DEBUG_LOG was reworked into IMGUI_DEBUG_PRINTF (and removed framecount from it). If you were using a #define IMGUI_DEBUG_LOG please rename)
235#ifndef IMGUI_DEBUG_PRINTF
236#ifndef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
237#define IMGUI_DEBUG_PRINTF(_FMT,...) printf(_FMT, __VA_ARGS__)
238#else
239#define IMGUI_DEBUG_PRINTF(_FMT,...) ((void)0)
240#endif
241#endif
242
243// Debug Logging for ShowDebugLogWindow(). This is designed for relatively rare events so please don't spam.
244#define IMGUI_DEBUG_LOG_ERROR(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventError) IMGUI_DEBUG_LOG(__VA_ARGS__); else g.DebugLogSkippedErrors++; } while (0)
245#define IMGUI_DEBUG_LOG_ACTIVEID(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventActiveId) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
246#define IMGUI_DEBUG_LOG_FOCUS(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventFocus) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
247#define IMGUI_DEBUG_LOG_POPUP(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
248#define IMGUI_DEBUG_LOG_NAV(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventNav) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
249#define IMGUI_DEBUG_LOG_SELECTION(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventSelection) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
250#define IMGUI_DEBUG_LOG_CLIPPER(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventClipper) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
251#define IMGUI_DEBUG_LOG_IO(...) do { if (g.DebugLogFlags & ImGuiDebugLogFlags_EventIO) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
252#define IMGUI_DEBUG_LOG_FONT(...) do { ImGuiContext* g2 = GImGui; if (g2 && g2->DebugLogFlags & ImGuiDebugLogFlags_EventFont) IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0) // Called from ImFontAtlas function which may operate without a context.
253#define IMGUI_DEBUG_LOG_INPUTROUTING(...) do{if (g.DebugLogFlags & ImGuiDebugLogFlags_EventInputRouting)IMGUI_DEBUG_LOG(__VA_ARGS__); } while (0)
254
255// Debug options (also see ones on top of imgui.cpp)
256//#define IMGUI_DEBUG_BOXSELECT
257
258// Static Asserts
259#define IM_STATIC_ASSERT(_COND) static_assert(_COND, "")
260
261// "Paranoid" Debug Asserts are meant to only be enabled during specific debugging/work, otherwise would slow down the code too much.
262// We currently don't have many of those so the effect is currently negligible, but onward intent to add more aggressive ones in the code.
263//#define IMGUI_DEBUG_PARANOID
264#ifdef IMGUI_DEBUG_PARANOID
265#define IM_ASSERT_PARANOID(_EXPR) IM_ASSERT(_EXPR)
266#else
267#define IM_ASSERT_PARANOID(_EXPR)
268#endif
269
270// Misc Macros
271#define IM_PI 3.14159265358979323846f
272#ifdef _WIN32
273#define IM_NEWLINE "\r\n" // Play it nice with Windows users (Update: since 2018-05, Notepad finally appears to support Unix-style carriage returns!)
274#else
275#define IM_NEWLINE "\n"
276#endif
277#ifndef IM_TABSIZE // Until we move this to runtime and/or add proper tab support, at least allow users to compile-time override
278#define IM_TABSIZE (4)
279#endif
280#define IM_MEMALIGN(_OFF,_ALIGN) (((_OFF) + ((_ALIGN) - 1)) & ~((_ALIGN) - 1)) // Memory align e.g. IM_ALIGN(0,4)=0, IM_ALIGN(1,4)=4, IM_ALIGN(4,4)=4, IM_ALIGN(5,4)=8
281#define IM_F32_TO_INT8_UNBOUND(_VAL) ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f))) // Unsaturated, for display purpose
282#define IM_F32_TO_INT8_SAT(_VAL) ((int)(ImSaturate(_VAL) * 255.0f + 0.5f)) // Saturated, always output 0..255
283#define IM_TRUNC(_VAL) ((float)(int)(_VAL)) // Positive values only! ImTrunc() is not inlined in MSVC debug builds
284#define IM_ROUND(_VAL) ((float)(int)((_VAL) + 0.5f)) // Positive values only!
285//#define IM_FLOOR IM_TRUNC // [OBSOLETE] Renamed in 1.90.0 (Sept 2023)
286
287// Hint for branch prediction
288#if (defined(__cplusplus) && (__cplusplus >= 202002L)) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 202002L))
289#define IM_LIKELY [[likely]]
290#define IM_UNLIKELY [[unlikely]]
291#else
292#define IM_LIKELY
293#define IM_UNLIKELY
294#endif
295
296// Enforce cdecl calling convention for functions called by the standard library, in case compilation settings changed the default to e.g. __vectorcall
297#ifdef _MSC_VER
298#define IMGUI_CDECL __cdecl
299#else
300#define IMGUI_CDECL
301#endif
302
303// Warnings
304#if defined(_MSC_VER) && !defined(__clang__)
305#define IM_MSVC_WARNING_SUPPRESS(XXXX) __pragma(warning(suppress: XXXX))
306#else
307#define IM_MSVC_WARNING_SUPPRESS(XXXX)
308#endif
309
310// Debug Tools
311// Use 'Metrics/Debugger->Tools->Item Picker' to break into the call-stack of a specific item.
312// This will call IM_DEBUG_BREAK() which you may redefine yourself. See https://github.com/scottt/debugbreak for more reference.
313#ifndef IM_DEBUG_BREAK
314#if defined (_MSC_VER)
315#define IM_DEBUG_BREAK() __debugbreak()
316#elif defined(__clang__)
317#define IM_DEBUG_BREAK() __builtin_debugtrap()
318#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
319#define IM_DEBUG_BREAK() __asm__ volatile("int3;nop")
320#elif defined(__GNUC__) && defined(__thumb__)
321#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xde01")
322#elif defined(__GNUC__) && defined(__arm__) && !defined(__thumb__)
323#define IM_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0")
324#else
325#define IM_DEBUG_BREAK() IM_ASSERT(0) // It is expected that you define IM_DEBUG_BREAK() into something that will break nicely in a debugger!
326#endif
327#endif // #ifndef IM_DEBUG_BREAK
328
329// Format specifiers, printing 64-bit hasn't been decently standardized...
330// In a real application you should be using PRId64 and PRIu64 from <inttypes.h> (non-windows) and on Windows define them yourself.
331#if defined(_MSC_VER) && !defined(__clang__)
332#define IM_PRId64 "I64d"
333#define IM_PRIu64 "I64u"
334#define IM_PRIX64 "I64X"
335#else
336#define IM_PRId64 "lld"
337#define IM_PRIu64 "llu"
338#define IM_PRIX64 "llX"
339#endif
340
341//-----------------------------------------------------------------------------
342// [SECTION] Generic helpers
343// Note that the ImXXX helpers functions are lower-level than ImGui functions.
344// ImGui functions or the ImGui context are never called/used from other ImXXX functions.
345//-----------------------------------------------------------------------------
346// - Helpers: Hashing
347// - Helpers: Sorting
348// - Helpers: Bit manipulation
349// - Helpers: String
350// - Helpers: Formatting
351// - Helpers: UTF-8 <> wchar conversions
352// - Helpers: ImVec2/ImVec4 operators
353// - Helpers: Maths
354// - Helpers: Geometry
355// - Helper: ImVec1
356// - Helper: ImVec2ih
357// - Helper: ImRect
358// - Helper: ImBitArray
359// - Helper: ImBitVector
360// - Helper: ImSpan<>, ImSpanAllocator<>
361// - Helper: ImStableVector<>
362// - Helper: ImPool<>
363// - Helper: ImChunkStream<>
364// - Helper: ImGuiTextIndex
365// - Helper: ImGuiStorage
366//-----------------------------------------------------------------------------
367
368// Helpers: Hashing
369IMGUI_API ImGuiID ImHashData(const void* data, size_t data_size, ImGuiID seed = 0);
370IMGUI_API ImGuiID ImHashStr(const char* data, size_t data_size = 0, ImGuiID seed = 0);
371IMGUI_API const char* ImHashSkipUncontributingPrefix(const char* label);
372
373// Helpers: Sorting
374#ifndef ImQsort
375inline void ImQsort(void* base, size_t count, size_t size_of_element, int(IMGUI_CDECL *compare_func)(void const*, void const*)) { if (count > 1) qsort(base, count, size_of_element, compare_func); }
376#endif
377
378// Helpers: Color Blending
380
381// Helpers: Bit manipulation
382inline bool ImIsPowerOfTwo(int v) { return v != 0 && (v & (v - 1)) == 0; }
383inline bool ImIsPowerOfTwo(ImU64 v) { return v != 0 && (v & (v - 1)) == 0; }
384inline int ImUpperPowerOfTwo(int v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; }
385inline unsigned int ImCountSetBits(unsigned int v) { unsigned int count = 0; while (v > 0) { v = v & (v - 1); count++; } return count; }
386
387// Helpers: String
388#define ImStrlen strlen
389#define ImMemchr memchr
390IMGUI_API int ImStricmp(const char* str1, const char* str2); // Case insensitive compare.
391IMGUI_API int ImStrnicmp(const char* str1, const char* str2, size_t count); // Case insensitive compare to a certain count.
392IMGUI_API void ImStrncpy(char* dst, const char* src, size_t count); // Copy to a certain count and always zero terminate (strncpy doesn't).
393IMGUI_API char* ImStrdup(const char* str); // Duplicate a string.
394IMGUI_API void* ImMemdup(const void* src, size_t size); // Duplicate a chunk of memory.
395IMGUI_API char* ImStrdupcpy(char* dst, size_t* p_dst_size, const char* str); // Copy in provided buffer, recreate buffer if needed.
396IMGUI_API const char* ImStrchrRange(const char* str_begin, const char* str_end, char c); // Find first occurrence of 'c' in string range.
397IMGUI_API const char* ImStreolRange(const char* str, const char* str_end); // End end-of-line
398IMGUI_API const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end); // Find a substring in a string range.
399IMGUI_API void ImStrTrimBlanks(char* str); // Remove leading and trailing blanks from a buffer.
400IMGUI_API const char* ImStrSkipBlank(const char* str); // Find first non-blank character.
401IMGUI_API int ImStrlenW(const ImWchar* str); // Computer string length (ImWchar string)
402IMGUI_API const char* ImStrbol(const char* buf_mid_line, const char* buf_begin); // Find beginning-of-line
404inline char ImToUpper(char c) { return (c >= 'a' && c <= 'z') ? c &= ~32 : c; }
405inline bool ImCharIsBlankA(char c) { return c == ' ' || c == '\t'; }
406inline bool ImCharIsBlankW(unsigned int c) { return c == ' ' || c == '\t' || c == 0x3000; }
407inline bool ImCharIsXdigitA(char c) { return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f'); }
409
410// Helpers: Formatting
411IMGUI_API int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...) IM_FMTARGS(3);
412IMGUI_API int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args) IM_FMTLIST(3);
413IMGUI_API void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...) IM_FMTARGS(3);
414IMGUI_API void ImFormatStringToTempBufferV(const char** out_buf, const char** out_buf_end, const char* fmt, va_list args) IM_FMTLIST(3);
415IMGUI_API const char* ImParseFormatFindStart(const char* format);
416IMGUI_API const char* ImParseFormatFindEnd(const char* format);
417IMGUI_API const char* ImParseFormatTrimDecorations(const char* format, char* buf, size_t buf_size);
418IMGUI_API void ImParseFormatSanitizeForPrinting(const char* fmt_in, char* fmt_out, size_t fmt_out_size);
419IMGUI_API const char* ImParseFormatSanitizeForScanning(const char* fmt_in, char* fmt_out, size_t fmt_out_size);
420IMGUI_API int ImParseFormatPrecision(const char* format, int default_value);
421
422// Helpers: UTF-8 <> wchar conversions
423IMGUI_API int ImTextCharToUtf8(char out_buf[5], unsigned int c); // return output UTF-8 bytes count
424IMGUI_API int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end); // return output UTF-8 bytes count
425IMGUI_API int ImTextCharFromUtf8(unsigned int* out_char, const char* in_text, const char* in_text_end); // read one character. return input UTF-8 bytes count
426IMGUI_API int ImTextStrFromUtf8(ImWchar* out_buf, int out_buf_size, const char* in_text, const char* in_text_end, const char** in_remaining = NULL); // return input UTF-8 bytes count
427IMGUI_API int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end); // return number of UTF-8 code-points (NOT bytes count)
428IMGUI_API int ImTextCountUtf8BytesFromChar(const char* in_text, const char* in_text_end); // return number of bytes to express one char in UTF-8
429IMGUI_API int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end); // return number of bytes to express string in UTF-8
430IMGUI_API const char* ImTextFindPreviousUtf8Codepoint(const char* in_text_start, const char* in_p); // return previous UTF-8 code-point.
431IMGUI_API const char* ImTextFindValidUtf8CodepointEnd(const char* in_text_start, const char* in_text_end, const char* in_p); // return previous UTF-8 code-point if 'in_p' is not the end of a valid one.
432IMGUI_API int ImTextCountLines(const char* in_text, const char* in_text_end); // return number of lines taken by text. trailing carriage return doesn't count as an extra line.
433
434// Helpers: High-level text functions (DO NOT USE!!! THIS IS A MINIMAL SUBSET OF LARGER UPCOMING CHANGES)
436{
438 ImDrawTextFlags_CpuFineClip = 1 << 0, // Must be == 1/true for legacy with 'bool cpu_fine_clip' arg to RenderText()
441};
442IMGUI_API ImVec2 ImFontCalcTextSizeEx(ImFont* font, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end_display, const char* text_end, const char** out_remaining, ImVec2* out_offset, ImDrawTextFlags flags);
443IMGUI_API const char* ImFontCalcWordWrapPositionEx(ImFont* font, float size, const char* text, const char* text_end, float wrap_width, ImDrawTextFlags flags = 0);
444IMGUI_API const char* ImTextCalcWordWrapNextLineStart(const char* text, const char* text_end, ImDrawTextFlags flags = 0); // trim trailing space and find beginning of next line
445
446// Character classification for word-wrapping logic
452IMGUI_API void ImTextClassifierClear(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class);
453IMGUI_API void ImTextClassifierSetCharClass(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, unsigned int c);
454IMGUI_API void ImTextClassifierSetCharClassFromStr(ImU32* bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, const char* s);
455
456// Helpers: File System
457#ifdef IMGUI_DISABLE_FILE_FUNCTIONS
458#define IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS
459typedef void* ImFileHandle;
460inline ImFileHandle ImFileOpen(const char*, const char*) { return NULL; }
461inline bool ImFileClose(ImFileHandle) { return false; }
462inline ImU64 ImFileGetSize(ImFileHandle) { return (ImU64)-1; }
463inline ImU64 ImFileRead(void*, ImU64, ImU64, ImFileHandle) { return 0; }
464inline ImU64 ImFileWrite(const void*, ImU64, ImU64, ImFileHandle) { return 0; }
465#endif
466#ifndef IMGUI_DISABLE_DEFAULT_FILE_FUNCTIONS
467typedef FILE* ImFileHandle;
468IMGUI_API ImFileHandle ImFileOpen(const char* filename, const char* mode);
473#else
474#define IMGUI_DISABLE_TTY_FUNCTIONS // Can't use stdout, fflush if we are not using default file functions
475#endif
476IMGUI_API void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size = NULL, int padding_bytes = 0);
477
478// Helpers: Maths
480// - Wrapper for standard libs functions. (Note that imgui_demo.cpp does _not_ use them to keep the code easy to copy)
481#ifndef IMGUI_DISABLE_DEFAULT_MATH_FUNCTIONS
482#define ImFabs(X) fabsf(X)
483#define ImSqrt(X) sqrtf(X)
484#define ImFmod(X, Y) fmodf((X), (Y))
485#define ImCos(X) cosf(X)
486#define ImSin(X) sinf(X)
487#define ImAcos(X) acosf(X)
488#define ImAtan2(Y, X) atan2f((Y), (X))
489#define ImAtof(STR) atof(STR)
490#define ImCeil(X) ceilf(X)
491inline float ImPow(float x, float y) { return powf(x, y); } // DragBehaviorT/SliderBehaviorT uses ImPow with either float/double and need the precision
492inline double ImPow(double x, double y) { return pow(x, y); }
493inline float ImLog(float x) { return logf(x); } // DragBehaviorT/SliderBehaviorT uses ImLog with either float/double and need the precision
494inline double ImLog(double x) { return log(x); }
495inline int ImAbs(int x) { return x < 0 ? -x : x; }
496inline float ImAbs(float x) { return fabsf(x); }
497inline double ImAbs(double x) { return fabs(x); }
498inline float ImSign(float x) { return (x < 0.0f) ? -1.0f : (x > 0.0f) ? 1.0f : 0.0f; } // Sign operator - returns -1, 0 or 1 based on sign of argument
499inline double ImSign(double x) { return (x < 0.0) ? -1.0 : (x > 0.0) ? 1.0 : 0.0; }
500#ifdef IMGUI_ENABLE_SSE
501inline float ImRsqrt(float x) { return _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(x))); }
502#else
503inline float ImRsqrt(float x) { return 1.0f / sqrtf(x); }
504#endif
505inline double ImRsqrt(double x) { return 1.0 / sqrt(x); }
506#endif
507// - ImMin/ImMax/ImClamp/ImLerp/ImSwap are used by widgets which support variety of types: signed/unsigned int/long long float/double
508// (Exceptionally using templates here but we could also redefine them for those types)
509template<typename T> T ImMin(T lhs, T rhs) { return lhs < rhs ? lhs : rhs; }
510template<typename T> T ImMax(T lhs, T rhs) { return lhs >= rhs ? lhs : rhs; }
511template<typename T> T ImClamp(T v, T mn, T mx) { return (v < mn) ? mn : (v > mx) ? mx : v; }
512template<typename T> T ImLerp(double a, double b, float t) { return (T)(a + (b - a) * (double)t); }
513template<typename T> T ImLerp(T a, T b, float t) { return (T)((float)a + (float)(b - a) * t); }
514template<typename T> void ImSwap(T& a, T& b) { T tmp = a; a = b; b = tmp; }
515template<typename T> T ImAddClampOverflow(T a, T b, T mn, T mx) { if (b < 0 && (a < mn - b)) return mn; if (b > 0 && (a > mx - b)) return mx; return a + b; }
516template<typename T> T ImSubClampOverflow(T a, T b, T mn, T mx) { if (b > 0 && (a < mn + b)) return mn; if (b < 0 && (a > mx + b)) return mx; return a - b; }
517// - Misc maths helpers
518inline ImVec2 ImMin(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x < rhs.x ? lhs.x : rhs.x, lhs.y < rhs.y ? lhs.y : rhs.y); }
519inline ImVec2 ImMax(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x >= rhs.x ? lhs.x : rhs.x, lhs.y >= rhs.y ? lhs.y : rhs.y); }
520inline ImVec2 ImClamp(const ImVec2& v, const ImVec2&mn, const ImVec2&mx){ return ImVec2((v.x < mn.x) ? mn.x : (v.x > mx.x) ? mx.x : v.x, (v.y < mn.y) ? mn.y : (v.y > mx.y) ? mx.y : v.y); }
521inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, float t) { return ImVec2(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t); }
522inline ImVec2 ImLerp(const ImVec2& a, const ImVec2& b, const ImVec2& t) { return ImVec2(a.x + (b.x - a.x) * t.x, a.y + (b.y - a.y) * t.y); }
523inline ImVec4 ImLerp(const ImVec4& a, const ImVec4& b, float t) { return ImVec4(a.x + (b.x - a.x) * t, a.y + (b.y - a.y) * t, a.z + (b.z - a.z) * t, a.w + (b.w - a.w) * t); }
524inline float ImSaturate(float f) { return (f < 0.0f) ? 0.0f : (f > 1.0f) ? 1.0f : f; }
525inline float ImLengthSqr(const ImVec2& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y); }
526inline float ImLengthSqr(const ImVec4& lhs) { return (lhs.x * lhs.x) + (lhs.y * lhs.y) + (lhs.z * lhs.z) + (lhs.w * lhs.w); }
527inline float ImInvLength(const ImVec2& lhs, float fail_value) { float d = (lhs.x * lhs.x) + (lhs.y * lhs.y); if (d > 0.0f) return ImRsqrt(d); return fail_value; }
528inline float ImTrunc(float f) { return (float)(int)(f); }
529inline ImVec2 ImTrunc(const ImVec2& v) { return ImVec2((float)(int)(v.x), (float)(int)(v.y)); }
530inline float ImFloor(float f) { return (float)((f >= 0 || (float)(int)f == f) ? (int)f : (int)f - 1); } // Decent replacement for floorf()
531inline ImVec2 ImFloor(const ImVec2& v) { return ImVec2(ImFloor(v.x), ImFloor(v.y)); }
532inline float ImTrunc64(float f) { return (float)(ImS64)(f); }
533inline float ImRound64(float f) { return (float)(ImS64)(f + 0.5f); } // FIXME: Positive values only.
534inline int ImModPositive(int a, int b) { return (a + b) % b; }
535inline float ImDot(const ImVec2& a, const ImVec2& b) { return a.x * b.x + a.y * b.y; }
536inline ImVec2 ImRotate(const ImVec2& v, float cos_a, float sin_a) { return ImVec2(v.x * cos_a - v.y * sin_a, v.x * sin_a + v.y * cos_a); }
537inline float ImLinearSweep(float current, float target, float speed) { if (current < target) return ImMin(current + speed, target); if (current > target) return ImMax(current - speed, target); return current; }
538inline float ImLinearRemapClamp(float s0, float s1, float d0, float d1, float x) { return ImSaturate((x - s0) / (s1 - s0)) * (d1 - d0) + d0; }
539inline ImVec2 ImMul(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); }
540inline bool ImIsFloatAboveGuaranteedIntegerPrecision(float f) { return f <= -16777216 || f >= 16777216; }
541inline float ImExponentialMovingAverage(float avg, float sample, int n){ avg -= avg / (float)n; avg += sample / (float)n; return avg; }
543
544// Helpers: Geometry
545IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, float t);
546IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments); // For curves with explicit number of segments
547IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol);// For auto-tessellated curves you can use tess_tol = style.CurveTessellationTol
548IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, float t);
549IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p);
550IMGUI_API bool ImTriangleContainsPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p);
551IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p);
552IMGUI_API void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w);
553inline float ImTriangleArea(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ImFabs((a.x * (b.y - c.y)) + (b.x * (c.y - a.y)) + (c.x * (a.y - b.y))) * 0.5f; }
554inline bool ImTriangleIsClockwise(const ImVec2& a, const ImVec2& b, const ImVec2& c) { return ((b.x - a.x) * (c.y - b.y)) - ((c.x - b.x) * (b.y - a.y)) > 0.0f; }
555
556// Helper: ImVec1 (1D vector)
557// (this odd construct is used to facilitate the transition between 1D and 2D, and the maintenance of some branches/patches)
559struct ImVec1
560{
561 float x;
562 constexpr ImVec1() : x(0.0f) { }
563 constexpr ImVec1(float _x) : x(_x) { }
564};
565
566// Helper: ImVec2i (2D vector, integer)
568{
569 int x, y;
570 constexpr ImVec2i() : x(0), y(0) {}
571 constexpr ImVec2i(int _x, int _y) : x(_x), y(_y) {}
572};
573
574// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)
576{
577 short x, y;
578 constexpr ImVec2ih() : x(0), y(0) {}
579 constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {}
580 constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {}
581};
582
583// Helper: ImRect (2D axis aligned bounding-box)
584// NB: we can't rely on ImVec2 math operators being available here!
586{
587 ImVec2 Min; // Upper-left
588 ImVec2 Max; // Lower-right
589
590 constexpr ImRect() : Min(0.0f, 0.0f), Max(0.0f, 0.0f) {}
591 constexpr ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {}
592 constexpr ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {}
593 constexpr ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {}
594
595 ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + Max.y) * 0.5f); }
596 ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); }
597 float GetWidth() const { return Max.x - Min.x; }
598 float GetHeight() const { return Max.y - Min.y; }
599 float GetArea() const { return (Max.x - Min.x) * (Max.y - Min.y); }
600 ImVec2 GetTL() const { return Min; } // Top-left
601 ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right
602 ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left
603 ImVec2 GetBR() const { return Max; } // Bottom-right
604 bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p.x < Max.x && p.y < Max.y; }
605 bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r.Max.x <= Max.x && r.Max.y <= Max.y; }
606 bool ContainsWithPad(const ImVec2& p, const ImVec2& pad) const { return p.x >= Min.x - pad.x && p.y >= Min.y - pad.y && p.x < Max.x + pad.x && p.y < Max.y + pad.y; }
607 bool Overlaps(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && r.Max.x > Min.x; }
608 void Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) Min.y = p.y; if (Max.x < p.x) Max.x = p.x; if (Max.y < p.y) Max.y = p.y; }
609 void Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) Min.y = r.Min.y; if (Max.x < r.Max.x) Max.x = r.Max.x; if (Max.y < r.Max.y) Max.y = r.Max.y; }
610 void AddX(float x) { if (Min.x > x) Min.x = x; if (Max.x < x) Max.x = x; }
611 void AddY(float y) { if (Min.y > y) Min.y = y; if (Max.y < y) Max.y = y; }
612 void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += amount; Max.y += amount; }
613 void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += amount.x; Max.y += amount.y; }
614 void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y += d.y; }
615 void TranslateX(float dx) { Min.x += dx; Max.x += dx; }
616 void TranslateY(float dy) { Min.y += dy; Max.y += dy; }
617 void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max); } // Simple version, may lead to an inverted rectangle, which is fine for Contains/Overlaps test but not for display.
618 void ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max, r.Min, r.Max); } // Full version, ensure both points are fully clipped.
619 bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; }
620 ImVec4 ToVec4() const { return ImVec4(Min.x, Min.y, Max.x, Max.y); }
621 const ImVec4& AsVec4() const { return *(const ImVec4*)&Min.x; }
622};
623
624// Helper: ImBitArray
625#define IM_BITARRAY_TESTBIT(_ARRAY, _N) ((_ARRAY[(_N) >> 5] & ((ImU32)1 << ((_N) & 31))) != 0) // Macro version of ImBitArrayTestBit(): ensure args have side-effect or are costly!
626#define IM_BITARRAY_CLEARBIT(_ARRAY, _N) ((_ARRAY[(_N) >> 5] &= ~((ImU32)1 << ((_N) & 31)))) // Macro version of ImBitArrayClearBit(): ensure args have side-effect or are costly!
627inline size_t ImBitArrayGetStorageSizeInBytes(int bitcount) { return (size_t)((bitcount + 31) >> 5) << 2; }
628inline void ImBitArrayClearAllBits(ImU32* arr, int bitcount){ memset(arr, 0, ImBitArrayGetStorageSizeInBytes(bitcount)); }
629inline bool ImBitArrayTestBit(const ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); return (arr[n >> 5] & mask) != 0; }
630inline void ImBitArrayClearBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] &= ~mask; }
631inline void ImBitArraySetBit(ImU32* arr, int n) { ImU32 mask = (ImU32)1 << (n & 31); arr[n >> 5] |= mask; }
632inline void ImBitArraySetBitRange(ImU32* arr, int n, int n2) // Works on range [n..n2)
633{
634 n2--;
635 while (n <= n2)
636 {
637 int a_mod = (n & 31);
638 int b_mod = (n2 > (n | 31) ? 31 : (n2 & 31)) + 1;
639 ImU32 mask = (ImU32)(((ImU64)1 << b_mod) - 1) & ~(ImU32)(((ImU64)1 << a_mod) - 1);
640 arr[n >> 5] |= mask;
641 n = (n + 32) & ~31;
642 }
643}
644
645typedef ImU32* ImBitArrayPtr; // Name for use in structs
646
647// Helper: ImBitArray class (wrapper over ImBitArray functions)
648// Store 1-bit per value.
649template<int BITCOUNT, int OFFSET = 0>
651{
652 ImU32 Data[(BITCOUNT + 31) >> 5];
654 void ClearAllBits() { memset(Data, 0, sizeof(Data)); }
655 void SetAllBits() { memset(Data, 255, sizeof(Data)); }
656 bool TestBit(int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return IM_BITARRAY_TESTBIT(Data, n); }
657 void SetBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArraySetBit(Data, n); }
658 void ClearBit(int n) { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); ImBitArrayClearBit(Data, n); }
659 void SetBitRange(int n, int n2) { n += OFFSET; n2 += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT && n2 > n && n2 <= BITCOUNT); ImBitArraySetBitRange(Data, n, n2); } // Works on range [n..n2)
660 bool operator[](int n) const { n += OFFSET; IM_ASSERT(n >= 0 && n < BITCOUNT); return IM_BITARRAY_TESTBIT(Data, n); }
661};
662
663// Helper: ImBitVector
664// Store 1-bit per value.
666{
668 void Create(int sz) { Storage.resize((sz + 31) >> 5); memset(Storage.Data, 0, (size_t)Storage.Size * sizeof(Storage.Data[0])); }
669 void Clear() { Storage.clear(); }
670 bool TestBit(int n) const { IM_ASSERT(n < (Storage.Size << 5)); return IM_BITARRAY_TESTBIT(Storage.Data, n); }
671 void SetBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArraySetBit(Storage.Data, n); }
672 void ClearBit(int n) { IM_ASSERT(n < (Storage.Size << 5)); ImBitArrayClearBit(Storage.Data, n); }
673};
675
676// Helper: ImSpan<>
677// Pointing to a span of data we don't own.
678template<typename T>
679struct ImSpan
680{
683
684 // Constructors, destructor
685 inline ImSpan() { Data = DataEnd = NULL; }
686 inline ImSpan(T* data, int size) { Data = data; DataEnd = data + size; }
687 inline ImSpan(T* data, T* data_end) { Data = data; DataEnd = data_end; }
688
689 inline void set(T* data, int size) { Data = data; DataEnd = data + size; }
690 inline void set(T* data, T* data_end) { Data = data; DataEnd = data_end; }
691 inline int size() const { return (int)(ptrdiff_t)(DataEnd - Data); }
692 inline int size_in_bytes() const { return (int)(ptrdiff_t)(DataEnd - Data) * (int)sizeof(T); }
693 inline T& operator[](int i) { T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; }
694 inline const T& operator[](int i) const { const T* p = Data + i; IM_ASSERT(p >= Data && p < DataEnd); return *p; }
695
696 inline T* begin() { return Data; }
697 inline const T* begin() const { return Data; }
698 inline T* end() { return DataEnd; }
699 inline const T* end() const { return DataEnd; }
700
701 // Utilities
702 inline int index_from_ptr(const T* it) const { IM_ASSERT(it >= Data && it < DataEnd); const ptrdiff_t off = it - Data; return (int)off; }
703};
704
705// Helper: ImSpanAllocator<>
706// Facilitate storing multiple chunks into a single large block (the "arena")
707// - Usage: call Reserve() N times, allocate GetArenaSizeInBytes() worth, pass it to SetArenaBasePtr(), call GetSpan() N times to retrieve the aligned ranges.
708template<int CHUNKS>
710{
711 char* BasePtr;
714 int Offsets[CHUNKS];
715 int Sizes[CHUNKS];
716
717 ImSpanAllocator() { memset((void*)this, 0, sizeof(*this)); }
718 inline void Reserve(int n, size_t sz, int a=4) { IM_ASSERT(n == CurrIdx && n < CHUNKS); CurrOff = IM_MEMALIGN(CurrOff, a); Offsets[n] = CurrOff; Sizes[n] = (int)sz; CurrIdx++; CurrOff += (int)sz; }
719 inline int GetArenaSizeInBytes() { return CurrOff; }
720 inline void SetArenaBasePtr(void* base_ptr) { BasePtr = (char*)base_ptr; }
721 inline void* GetSpanPtrBegin(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n]); }
722 inline void* GetSpanPtrEnd(int n) { IM_ASSERT(n >= 0 && n < CHUNKS && CurrIdx == CHUNKS); return (void*)(BasePtr + Offsets[n] + Sizes[n]); }
723 template<typename T>
724 inline void GetSpan(int n, ImSpan<T>* span) { span->set((T*)GetSpanPtrBegin(n), (T*)GetSpanPtrEnd(n)); }
725};
726
727// Helper: ImStableVector<>
728// Allocating chunks of BLOCKSIZE items. Objects pointers are never invalidated when growing, only by clear().
729// Important: does not destruct anything!
730// Implemented only the minimum set of functions we need for it.
731template<typename T, int BLOCKSIZE>
733{
734 int Size = 0;
735 int Capacity = 0;
737
738 // Functions
739 inline ~ImStableVector() { for (T* block : Blocks) IM_FREE(block); }
740
741 inline void clear() { Size = Capacity = 0; Blocks.clear_delete(); }
742 inline void resize(int new_size) { if (new_size > Capacity) reserve(new_size); Size = new_size; }
743 inline void reserve(int new_cap)
744 {
745 new_cap = IM_MEMALIGN(new_cap, BLOCKSIZE);
746 int old_count = Capacity / BLOCKSIZE;
747 int new_count = new_cap / BLOCKSIZE;
748 if (new_count <= old_count)
749 return;
750 Blocks.resize(new_count);
751 for (int n = old_count; n < new_count; n++)
752 Blocks[n] = (T*)IM_ALLOC(sizeof(T) * BLOCKSIZE);
753 Capacity = new_cap;
754 }
755 inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Blocks[i / BLOCKSIZE][i % BLOCKSIZE]; }
756 inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Blocks[i / BLOCKSIZE][i % BLOCKSIZE]; }
757 inline T* push_back(const T& v) { int i = Size; IM_ASSERT(i >= 0); if (Size == Capacity) reserve(Capacity + BLOCKSIZE); void* ptr = &Blocks[i / BLOCKSIZE][i % BLOCKSIZE]; memcpy(ptr, &v, sizeof(v)); Size++; return (T*)ptr; }
758};
759
760// Helper: ImPool<>
761// Basic keyed storage for contiguous instances, slow/amortized insertion, O(1) indexable, O(Log N) queries by ID over a dense/hot buffer,
762// Honor constructor/destructor. Add/remove invalidate all pointers. Indexes have the same lifetime as the associated object.
763typedef int ImPoolIdx;
764template<typename T>
765struct ImPool
766{
767 ImVector<T> Buf; // Contiguous data
768 ImGuiStorage Map; // ID->Index
769 ImPoolIdx FreeIdx; // Next free idx to use
770 ImPoolIdx AliveCount; // Number of active/alive items (for display purpose)
771
773 ~ImPool() { Clear(); }
774 T* GetByKey(ImGuiID key) { int idx = Map.GetInt(key, -1); return (idx != -1) ? &Buf[idx] : NULL; }
775 T* GetByIndex(ImPoolIdx n) { return &Buf[n]; }
776 ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Buf.Data && p < Buf.Data + Buf.Size); return (ImPoolIdx)(p - Buf.Data); }
777 T* GetOrAddByKey(ImGuiID key) { int* p_idx = Map.GetIntRef(key, -1); if (*p_idx != -1) return &Buf[*p_idx]; *p_idx = FreeIdx; return Add(); }
778 bool Contains(const T* p) const { return (p >= Buf.Data && p < Buf.Data + Buf.Size); }
779 void Clear() { for (int n = 0; n < Map.Data.Size; n++) { int idx = Map.Data[n].val_i; if (idx != -1) Buf[idx].~T(); } Map.Clear(); Buf.clear(); FreeIdx = AliveCount = 0; }
780 T* Add() { int idx = FreeIdx; if (idx == Buf.Size) { Buf.resize(Buf.Size + 1); FreeIdx++; } else { FreeIdx = *(int*)&Buf[idx]; } IM_PLACEMENT_NEW(&Buf[idx]) T(); AliveCount++; return &Buf[idx]; }
781 void Remove(ImGuiID key, const T* p) { Remove(key, GetIndex(p)); }
782 void Remove(ImGuiID key, ImPoolIdx idx) { Buf[idx].~T(); *(int*)&Buf[idx] = FreeIdx; FreeIdx = idx; Map.SetInt(key, -1); AliveCount--; }
783 void Reserve(int capacity) { Buf.reserve(capacity); Map.Data.reserve(capacity); }
784
785 // To iterate a ImPool: for (int n = 0; n < pool.GetMapSize(); n++) if (T* t = pool.TryGetMapData(n)) { ... }
786 // Can be avoided if you know .Remove() has never been called on the pool, or AliveCount == GetMapSize()
787 int GetAliveCount() const { return AliveCount; } // Number of active/alive items in the pool (for display purpose)
788 int GetBufSize() const { return Buf.Size; }
789 int GetMapSize() const { return Map.Data.Size; } // It is the map we need iterate to find valid items, since we don't have "alive" storage anywhere
790 T* TryGetMapData(ImPoolIdx n) { int idx = Map.Data[n].val_i; if (idx == -1) return NULL; return GetByIndex(idx); }
791};
792
793// Helper: ImChunkStream<>
794// Build and iterate a contiguous stream of variable-sized structures.
795// This is used by Settings to store persistent data while reducing allocation count.
796// We store the chunk size first, and align the final size on 4 bytes boundaries.
797// The tedious/zealous amount of casting is to avoid -Wcast-align warnings.
798template<typename T>
800{
802
803 void clear() { Buf.clear(); }
804 bool empty() const { return Buf.Size == 0; }
805 int size() const { return Buf.Size; }
806 T* alloc_chunk(size_t sz) { size_t HDR_SZ = 4; sz = IM_MEMALIGN(HDR_SZ + sz, 4u); int off = Buf.Size; Buf.resize(off + (int)sz); ((int*)(void*)(Buf.Data + off))[0] = (int)sz; return (T*)(void*)(Buf.Data + off + (int)HDR_SZ); }
807 T* begin() { size_t HDR_SZ = 4; if (!Buf.Data) return NULL; return (T*)(void*)(Buf.Data + HDR_SZ); }
808 T* next_chunk(T* p) { size_t HDR_SZ = 4; IM_ASSERT(p >= begin() && p < end()); p = (T*)(void*)((char*)(void*)p + chunk_size(p)); if (p == (T*)(void*)((char*)end() + HDR_SZ)) return (T*)0; IM_ASSERT(p < end()); return p; }
809 int chunk_size(const T* p) { return ((const int*)p)[-1]; }
810 T* end() { return (T*)(void*)(Buf.Data + Buf.Size); }
811 int offset_from_ptr(const T* p) { IM_ASSERT(p >= begin() && p < end()); const ptrdiff_t off = (const char*)p - Buf.Data; return (int)off; }
812 T* ptr_from_offset(int off) { IM_ASSERT(off >= 4 && off < Buf.Size); return (T*)(void*)(Buf.Data + off); }
813 void swap(ImChunkStream<T>& rhs) { rhs.Buf.swap(Buf); }
814};
815
816// Helper: ImGuiTextIndex
817// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API.
819{
821 int EndOffset = 0; // Because we don't own text buffer we need to maintain EndOffset (may bake in LineOffsets?)
822
823 void clear() { Offsets.clear(); EndOffset = 0; }
824 int size() { return Offsets.Size; }
825 const char* get_line_begin(const char* base, int n) { return base + (Offsets.Size != 0 ? Offsets[n] : 0); }
826 const char* get_line_end(const char* base, int n) { return base + (n + 1 < Offsets.Size ? (Offsets[n + 1] - 1) : EndOffset); }
827 void append(const char* base, int old_size, int new_size);
828};
829
830// Helper: ImGuiStorage
832
833//-----------------------------------------------------------------------------
834// [SECTION] ImDrawList support
835//-----------------------------------------------------------------------------
836
837// ImDrawList: Helper function to calculate a circle's segment count given its radius and a "maximum error" value.
838// Estimation of number of circle segment based on error is derived using method described in https://stackoverflow.com/a/2244088/15194693
839// Number of segments (N) is calculated using equation:
840// N = ceil ( pi / acos(1 - error / r) ) where r > 0, error <= r
841// Our equation is significantly simpler that one in the post thanks for choosing segment that is
842// perpendicular to X axis. Follow steps in the article from this starting condition and you will
843// will get this result.
844//
845// Rendering circles with an odd number of segments, while mathematically correct will produce
846// asymmetrical results on the raster grid. Therefore we're rounding N to next even number (7->8, 8->8, 9->10 etc.)
847#define IM_ROUNDUP_TO_EVEN(_V) ((((_V) + 1) / 2) * 2)
848#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN 4
849#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX 512
850#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC(_RAD,_MAXERROR) ImClamp(IM_ROUNDUP_TO_EVEN((int)ImCeil(IM_PI / ImAcos(1 - ImMin((_MAXERROR), (_RAD)) / (_RAD)))), IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MIN, IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_MAX)
851
852// Raw equation from IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC rewritten for 'r' and 'error'.
853#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_R(_N,_MAXERROR) ((_MAXERROR) / (1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI))))
854#define IM_DRAWLIST_CIRCLE_AUTO_SEGMENT_CALC_ERROR(_N,_RAD) ((1 - ImCos(IM_PI / ImMax((float)(_N), IM_PI))) / (_RAD))
855
856// ImDrawList: Lookup table size for adaptive arc drawing, cover full circle.
857#ifndef IM_DRAWLIST_ARCFAST_TABLE_SIZE
858#define IM_DRAWLIST_ARCFAST_TABLE_SIZE 48 // Number of samples in lookup table.
859#endif
860#define IM_DRAWLIST_ARCFAST_SAMPLE_MAX IM_DRAWLIST_ARCFAST_TABLE_SIZE // Sample index _PathArcToFastEx() for 360 angle.
861
862// Data shared between all ImDrawList instances
863// Conceptually this could have been called e.g. ImDrawListSharedContext
864// Typically one ImGui context would create and maintain one of this.
865// You may want to create your own instance of you try to ImDrawList completely without ImGui. In that case, watch out for future changes to this structure.
867{
868 ImVec2 TexUvWhitePixel; // UV of white pixel in the atlas (== FontAtlas->TexUvWhitePixel)
869 const ImVec4* TexUvLines; // UV of anti-aliased lines in the atlas (== FontAtlas->TexUvLines)
870 ImFontAtlas* FontAtlas; // Current font atlas
871 ImFont* Font; // Current font (used for simplified AddText overload)
872 float FontSize; // Current font size (used for for simplified AddText overload)
873 float FontScale; // Current font scale (== FontSize / Font->FontSize)
874 float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo()
875 float CircleSegmentMaxError; // Number of circle segments to use per pixel of radius for AddCircle() etc
876 float InitialFringeScale; // Initial scale to apply to AA fringe
877 ImDrawListFlags InitialFlags; // Initial flags at the beginning of the frame (it is possible to alter flags on a per-drawlist basis afterwards)
878 ImVec4 ClipRectFullscreen; // Value for PushClipRectFullscreen()
879 ImVector<ImVec2> TempBuffer; // Temporary write buffer
880 ImVector<ImDrawList*> DrawLists; // All draw lists associated to this ImDrawListSharedData
881 ImGuiContext* Context; // [OPTIONAL] Link to Dear ImGui context. 99% of ImDrawList/ImFontAtlas can function without an ImGui context, but this facilitate handling one legacy edge case.
882
883 // Lookup tables
884 ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]; // Sample points on the quarter of the circle.
885 float ArcFastRadiusCutoff; // Cutoff radius after which arc drawing will fallback to slower PathArcTo()
886 ImU8 CircleSegmentCounts[64]; // Precomputed segment count for given radius before we calculate it dynamically (to avoid calculation overhead)
887
890 void SetCircleTessellationMaxError(float max_error);
891};
892
894{
895 ImVector<ImDrawList*>* Layers[2]; // Pointers to global layers for: regular, tooltip. LayersP[0] is owned by DrawData.
897
898 ImDrawDataBuilder() { memset((void*)this, 0, sizeof(*this)); }
899};
900
902{
904 float FontSizeBeforeScaling; // ~~ style.FontSizeBase
905 float FontSizeAfterScaling; // ~~ g.FontSize
906};
907
908//-----------------------------------------------------------------------------
909// [SECTION] Style support
910//-----------------------------------------------------------------------------
911
913{
914 ImU32 Count : 8; // 1+
916 ImU32 Offset : 16; // Offset in parent structure
917 void* GetVarPtr(void* parent) const { return (void*)((unsigned char*)parent + Offset); }
918};
919
920// Stacked color modifier, backup of modified data so we can restore it
926
927// Stacked style modifier, backup of modified data so we can restore it. Data type inferred from the variable.
929{
931 union { int BackupInt[2]; float BackupFloat[2]; };
932 ImGuiStyleMod(ImGuiStyleVar idx, int v) { VarIdx = idx; BackupInt[0] = v; }
933 ImGuiStyleMod(ImGuiStyleVar idx, float v) { VarIdx = idx; BackupFloat[0] = v; }
935};
936
937//-----------------------------------------------------------------------------
938// [SECTION] Data types support
939//-----------------------------------------------------------------------------
940
942{
943 ImU8 Data[8]; // Opaque storage to fit any data up to ImGuiDataType_COUNT
944};
945
946// Type information associated to one ImGuiDataType. Retrieve with DataTypeGetInfo().
948{
949 size_t Size; // Size in bytes
950 const char* Name; // Short descriptive name for the type, for debugging
951 const char* PrintFmt; // Default printf format for the type
952 const char* ScanFmt; // Default scanf format for the type
953};
954
955// Extend ImGuiDataType_
961
962//-----------------------------------------------------------------------------
963// [SECTION] Widgets support: flags, enums, data structures
964//-----------------------------------------------------------------------------
965
966// Extend ImGuiItemFlags
967// - input: PushItemFlag() manipulates g.CurrentItemFlags, g.NextItemData.ItemFlags, ItemAdd() calls may add extra flags too.
968// - output: stored in g.LastItemData.ItemFlags
970{
971 // Controlled by user
972 ImGuiItemFlags_ReadOnly = 1 << 11, // false // [ALPHA] Allow hovering interactions but underlying value is not changed.
973 ImGuiItemFlags_MixedValue = 1 << 12, // false // [BETA] Represent a mixed/indeterminate value, generally multi-selection where values differ. Currently only supported by Checkbox() (later should support all sorts of widgets)
974 ImGuiItemFlags_NoWindowHoverableCheck = 1 << 13, // false // Disable hoverable check in ItemHoverable()
975 ImGuiItemFlags_AllowOverlap = 1 << 14, // false // Allow being overlapped by another widget. Not-hovered to Hovered transition deferred by a frame.
976 ImGuiItemFlags_NoNavDisableMouseHover = 1 << 15, // false // Nav keyboard/gamepad mode doesn't disable hover highlight (behave as if NavHighlightItemUnderNav==false).
977 ImGuiItemFlags_NoMarkEdited = 1 << 16, // false // Skip calling MarkItemEdited()
978 ImGuiItemFlags_NoFocus = 1 << 17, // false // [EXPERIMENTAL: Not very well specced] Clicking doesn't take focus. Automatically sets ImGuiButtonFlags_NoFocus + ImGuiButtonFlags_NoNavFocus in ButtonBehavior().
979
980 // Controlled by widget code
981 ImGuiItemFlags_Inputable = 1 << 20, // false // [WIP] Auto-activate input mode when tab focused. Currently only used and supported by a few items before it becomes a generic feature.
982 ImGuiItemFlags_HasSelectionUserData = 1 << 21, // false // Set by SetNextItemSelectionUserData()
983 ImGuiItemFlags_IsMultiSelect = 1 << 22, // false // Set by SetNextItemSelectionUserData()
984
985 ImGuiItemFlags_Default_ = ImGuiItemFlags_AutoClosePopups, // Please don't change, use PushItemFlag() instead.
986
987 // Obsolete
988 //ImGuiItemFlags_SelectableDontClosePopup = !ImGuiItemFlags_AutoClosePopups, // Can't have a redirect as we inverted the behavior
989};
990
991// Status flags for an already submitted item
992// - output: stored in g.LastItemData.StatusFlags
994{
996 ImGuiItemStatusFlags_HoveredRect = 1 << 0, // Mouse position is within item rectangle (does NOT mean that the window is in correct z-order and can be hovered!, this is only one part of the most-common IsItemHovered test)
997 ImGuiItemStatusFlags_HasDisplayRect = 1 << 1, // g.LastItemData.DisplayRect is valid
998 ImGuiItemStatusFlags_Edited = 1 << 2, // Value exposed by item was edited in the current frame (should match the bool return value of most widgets)
999 ImGuiItemStatusFlags_ToggledSelection = 1 << 3, // Set when Selectable(), TreeNode() reports toggling a selection. We can't report "Selected", only state changes, in order to easily handle clipping with less issues.
1000 ImGuiItemStatusFlags_ToggledOpen = 1 << 4, // Set when TreeNode() reports toggling their open state.
1001 ImGuiItemStatusFlags_HasDeactivated = 1 << 5, // Set if the widget/group is able to provide data for the ImGuiItemStatusFlags_Deactivated flag.
1002 ImGuiItemStatusFlags_Deactivated = 1 << 6, // Only valid if ImGuiItemStatusFlags_HasDeactivated is set.
1003 ImGuiItemStatusFlags_HoveredWindow = 1 << 7, // Override the HoveredWindow test to allow cross-window hover testing.
1004 ImGuiItemStatusFlags_Visible = 1 << 8, // [WIP] Set when item is overlapping the current clipping rectangle (Used internally. Please don't use yet: API/system will change as we refactor Itemadd()).
1005 ImGuiItemStatusFlags_HasClipRect = 1 << 9, // g.LastItemData.ClipRect is valid.
1006 ImGuiItemStatusFlags_HasShortcut = 1 << 10, // g.LastItemData.Shortcut valid. Set by SetNextItemShortcut() -> ItemAdd().
1007 //ImGuiItemStatusFlags_FocusedByTabbing = 1 << 8, // Removed IN 1.90.1 (Dec 2023). The trigger is part of g.NavActivateId. See commit 54c1bdeceb.
1008 ImGuiItemStatusFlags_EditedInternal = 1 << 11, // Similar to ImGuiItemStatusFlags_Edited but bypassing ImGuiItemFlags_NoMarkEdited.
1009
1010 // Additional status + semantic for ImGuiTestEngine
1011#ifdef IMGUI_ENABLE_TEST_ENGINE
1012 ImGuiItemStatusFlags_Openable = 1 << 20, // Item is an openable (e.g. TreeNode)
1013 ImGuiItemStatusFlags_Opened = 1 << 21, // Opened status
1014 ImGuiItemStatusFlags_Checkable = 1 << 22, // Item is a checkable (e.g. CheckBox, MenuItem)
1015 ImGuiItemStatusFlags_Checked = 1 << 23, // Checked status
1016 ImGuiItemStatusFlags_Inputable = 1 << 24, // Item is a text-inputable (e.g. InputText, SliderXXX, DragXXX)
1017#endif
1018};
1019
1020// Extend ImGuiHoveredFlags_
1027
1028// Extend ImGuiInputTextFlags_
1030{
1031 // [Internal]
1032 ImGuiInputTextFlags_Multiline = 1 << 26, // For internal use by InputTextMultiline()
1033 ImGuiInputTextFlags_TempInput = 1 << 27, // For internal use by TempInputText(), will skip calling ItemAdd(). Require bounding-box to strictly match.
1034 ImGuiInputTextFlags_LocalizeDecimalPoint= 1 << 28, // For internal use by InputScalar() and TempInputScalar()
1035};
1036
1037// Extend ImGuiButtonFlags_
1039{
1040 ImGuiButtonFlags_PressedOnClick = 1 << 4, // return true on click (mouse down event)
1041 ImGuiButtonFlags_PressedOnClickRelease = 1 << 5, // [Default] return true on click + release on same item <-- this is what the majority of Button are using
1042 ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 1 << 6, // return true on click + release even if the release event is not done while hovering the item
1043 ImGuiButtonFlags_PressedOnRelease = 1 << 7, // return true on release (default requires click+release). Prior to 2026/03/20 this implied ImGuiButtonFlags_NoHoldingActiveId but they are separate now.
1044 ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8, // return true on double-click (default requires click+release)
1045 ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9, // return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers)
1046 //ImGuiButtonFlags_Repeat = 1 << 10, // hold to repeat -> use ImGuiItemFlags_ButtonRepeat instead.
1047 ImGuiButtonFlags_FlattenChildren = 1 << 11, // allow interactions even if a child window is overlapping
1048 //ImGuiButtonFlags_DontClosePopups = 1 << 13, // disable automatically closing parent popup on press
1049 //ImGuiButtonFlags_Disabled = 1 << 14, // disable interactions -> use BeginDisabled() or ImGuiItemFlags_Disabled
1050 ImGuiButtonFlags_AlignTextBaseLine = 1 << 15, // vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine
1051 ImGuiButtonFlags_NoKeyModsAllowed = 1 << 16, // disable mouse interaction if a key modifier is held
1052 ImGuiButtonFlags_NoHoldingActiveId = 1 << 17, // don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only)
1053 ImGuiButtonFlags_NoNavFocus = 1 << 18, // don't override navigation focus when activated (FIXME: this is essentially used every time an item uses ImGuiItemFlags_NoNav, but because legacy specs don't requires LastItemData to be set ButtonBehavior(), we can't poll g.LastItemData.ItemFlags)
1054 ImGuiButtonFlags_NoHoveredOnFocus = 1 << 19, // don't report as hovered when nav focus is on this item
1055 ImGuiButtonFlags_NoSetKeyOwner = 1 << 20, // don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!)
1056 ImGuiButtonFlags_NoTestKeyOwner = 1 << 21, // don't test key/input owner when polling the key (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!)
1057 ImGuiButtonFlags_NoFocus = 1 << 22, // [EXPERIMENTAL: Not very well specced]. Don't focus parent window when clicking.
1060 //ImGuiButtonFlags_NoKeyModifiers = ImGuiButtonFlags_NoKeyModsAllowed, // Renamed in 1.91.4
1061};
1062
1063// Extend ImGuiComboFlags_
1065{
1066 ImGuiComboFlags_CustomPreview = 1 << 20, // enable BeginComboPreview()
1067};
1068
1069// Extend ImGuiSliderFlags_
1071{
1072 ImGuiSliderFlags_Vertical = 1 << 20, // Should this slider be orientated vertically?
1073 ImGuiSliderFlags_ReadOnly = 1 << 21, // Consider using g.NextItemData.ItemFlags |= ImGuiItemFlags_ReadOnly instead.
1074};
1075
1076// Extend ImGuiSelectableFlags_
1078{
1079 // NB: need to be in sync with last value of ImGuiSelectableFlags_
1081 ImGuiSelectableFlags_SelectOnClick = 1 << 22, // Override button behavior to react on Click (default is Click+Release)
1082 ImGuiSelectableFlags_SelectOnRelease = 1 << 23, // Override button behavior to react on Release (default is Click+Release)
1083 ImGuiSelectableFlags_SpanAvailWidth = 1 << 24, // Span all avail width even if we declared less for layout purpose. FIXME: We may be able to remove this (added in 6251d379, 2bcafc86 for menus)
1084 ImGuiSelectableFlags_SetNavIdOnHover = 1 << 25, // Set Nav/Focus ID on mouse hover (used by MenuItem)
1085 ImGuiSelectableFlags_NoPadWithHalfSpacing = 1 << 26, // Disable padding each side with ItemSpacing * 0.5f
1086 ImGuiSelectableFlags_NoSetKeyOwner = 1 << 27, // Don't set key/input owner on the initial click (note: mouse buttons are keys! often, the key in question will be ImGuiKey_MouseLeft!)
1087};
1088
1089// Extend ImGuiTreeNodeFlags_
1098
1100{
1102 ImGuiSeparatorFlags_Horizontal = 1 << 0, // Axis default to current layout type, so generally Horizontal unless e.g. in a menu bar
1104 ImGuiSeparatorFlags_SpanAllColumns = 1 << 2, // Make separator cover all columns of a legacy Columns() set.
1105};
1106
1107// Flags for FocusWindow(). This is not called ImGuiFocusFlags to avoid confusion with public-facing ImGuiFocusedFlags.
1108// FIXME: Once we finishing replacing more uses of GetTopMostPopupModal()+IsWindowWithinBeginStackOf()
1109// and FindBlockingModal() with this, we may want to change the flag to be opt-out instead of opt-in.
1111{
1113 ImGuiFocusRequestFlags_RestoreFocusedChild = 1 << 0, // Find last focused child (if any) and focus it instead.
1114 ImGuiFocusRequestFlags_UnlessBelowModal = 1 << 1, // Do not set focus if the window is below a modal.
1115};
1116
1122
1124{
1126 ImGuiTooltipFlags_OverridePrevious = 1 << 1, // Clear/ignore previously submitted tooltip (defaults to append)
1127};
1128
1129// FIXME: this is in development, not exposed/functional as a generic feature yet.
1130// Horizontal/Vertical enums are fixed to 0/1 so they may be used to index ImVec2
1136
1137// Flags for LogBegin() text capturing function
1148
1149// X/Y enums are fixed to 0/1 so they may be used to index ImVec2
1156
1162
1163// Storage data for BeginComboPreview()/EndComboPreview()
1175
1176// Stacked storage data for BeginGroup()/EndGroup()
1194
1195// Simple column measurement, currently used for MenuItem() only.. This is very short-sighted/throw-away code and NOT a generic helper.
1197{
1201 ImU16 OffsetIcon; // Always zero for now
1202 ImU16 OffsetLabel; // Offsets are locked in Update()
1205 ImU16 Widths[4]; // Width of: Icon, Label, Shortcut, Mark (accumulators for current frame)
1206
1207 ImGuiMenuColumns() { memset((void*)this, 0, sizeof(*this)); }
1208 void Update(float spacing, bool window_reappearing);
1209 float DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark);
1210 void CalcNextTotalWidth(bool update_offsets);
1211};
1212
1213// Internal temporary state for deactivating InputText() instances.
1215{
1216 ImGuiID ID; // widget id owning the text state (which just got deactivated)
1217 ImVector<char> TextA; // text buffer
1218
1219 ImGuiInputTextDeactivatedState() { memset((void*)this, 0, sizeof(*this)); }
1220 void ClearFreeMemory() { ID = 0; TextA.clear(); }
1221};
1222
1223// Forward declare imstb_textedit.h structure + make its main configuration define accessible
1224#undef IMSTB_TEXTEDIT_STRING
1225#undef IMSTB_TEXTEDIT_CHARTYPE
1226#define IMSTB_TEXTEDIT_STRING ImGuiInputTextState
1227#define IMSTB_TEXTEDIT_CHARTYPE char
1228#define IMSTB_TEXTEDIT_GETWIDTH_NEWLINE (-1.0f)
1229#define IMSTB_TEXTEDIT_UNDOSTATECOUNT 99
1230#define IMSTB_TEXTEDIT_UNDOCHARCOUNT 999
1231namespace ImStb { struct STB_TexteditState; }
1233
1234// Internal state of the currently focused/edited text input box
1235// For a given item ID, access with ImGui::GetInputTextState()
1237{
1238 ImGuiContext* Ctx; // parent UI context (needs to be set explicitly by parent).
1239 ImStbTexteditState* Stb; // State for stb_textedit.h
1240 ImGuiInputTextFlags Flags; // copy of InputText() flags. may be used to check if e.g. ImGuiInputTextFlags_Password is set.
1241 ImGuiID ID; // widget id owning the text state
1242 int TextLen; // UTF-8 length of the string in TextA (in bytes)
1243 const char* TextSrc; // == TextA.Data unless read-only, in which case == buf passed to InputText(). For _ReadOnly fields, pointer will be null outside the InputText() call.
1244 ImVector<char> TextA; // main UTF8 buffer. TextA.Size is a buffer size! Should always be >= buf_size passed by user (and of course >= CurLenA + 1).
1245 ImVector<char> TextToRevertTo; // value to revert to when pressing Escape = backup of end-user buffer at the time of focus (in UTF-8, unaltered)
1246 ImVector<char> CallbackTextBackup; // temporary storage for callback to support automatic reconcile of undo-stack
1247 int BufCapacity; // end-user buffer capacity (include zero terminator)
1248 ImVec2 Scroll; // horizontal offset (managed manually) + vertical scrolling (pulled from child window's own Scroll.y)
1249 int LineCount; // last line count (solely for debugging)
1250 float WrapWidth; // word-wrapping width
1251 float CursorAnim; // timer for cursor blink, reset on every user action so the cursor reappears immediately
1252 bool CursorFollow; // set when we want scrolling to follow the current cursor position (not always!)
1253 bool CursorCenterY; // set when we want scrolling to be centered over the cursor position (while resizing a word-wrapping field)
1254 bool SelectedAllMouseLock; // after a double-click to select all, we ignore further mouse drags to update selection
1255 bool EditedBefore; // edited since activated
1256 bool EditedThisFrame; // edited this frame
1257 bool WantReloadUserBuf; // force a reload of user buf so it may be modified externally. may be automatic in future version.
1258 ImS8 LastMoveDirectionLR; // ImGuiDir_Left or ImGuiDir_Right. track last movement direction so when cursor cross over a word-wrapping boundaries we can display it on either line depending on last move.s
1261
1264 void ClearText() { TextLen = 0; TextA[0] = 0; CursorClamp(); }
1265 void ClearFreeMemory() { TextA.clear(); TextToRevertTo.clear(); }
1266 void OnKeyPressed(int key); // Cannot be inline because we call in code in stb_textedit.h implementation
1267 void OnCharPressed(unsigned int c);
1268 float GetPreferredOffsetX() const;
1269 const char* GetText() { return TextA.Data ? TextA.Data : ""; }
1270
1271 // Cursor & Selection
1272 void CursorAnimReset();
1273 void CursorClamp();
1274 bool HasSelection() const;
1275 void ClearSelection();
1276 int GetCursorPos() const;
1277 int GetSelectionStart() const;
1278 int GetSelectionEnd() const;
1279 void SetSelection(int start, int end);
1280 void SelectAll();
1281
1282 // Reload user buf (WIP #2890)
1283 // If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this)
1284 // strcpy(my_buf, "hello");
1285 // if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item
1286 // state->ReloadUserBufAndSelectAll();
1287 void ReloadUserBufAndSelectAll();
1288 void ReloadUserBufAndKeepSelection();
1289 void ReloadUserBufAndMoveToEnd();
1290};
1291
1293{
1295 ImGuiWindowRefreshFlags_TryToAvoidRefresh = 1 << 0, // [EXPERIMENTAL] Try to keep existing contents, USER MUST NOT HONOR BEGIN() RETURNING FALSE AND NOT APPEND.
1296 ImGuiWindowRefreshFlags_RefreshOnHover = 1 << 1, // [EXPERIMENTAL] Always refresh on hover
1297 ImGuiWindowRefreshFlags_RefreshOnFocus = 1 << 2, // [EXPERIMENTAL] Always refresh on focus
1298 // Refresh policy/frequency, Load Balancing etc.
1299};
1300
1302{
1304 ImGuiWindowBgClickFlags_Move = 1 << 0, // Click on bg/void + drag to move window. Cleared by default when using io.ConfigWindowsMoveFromTitleBarOnly.
1305};
1306
1322
1323// Storage for SetNexWindow** functions
1325{
1327
1328 // Members below are NOT cleared. Always rely on HasFlags.
1337 ImGuiWindowFlags WindowFlags; // Only honored by BeginTable()
1343 float BgAlphaVal; // Override background alpha
1344 ImVec2 MenuBarOffsetMinVal; // (Always on) This is not exposed publicly, so we don't clear it and it doesn't have a corresponding flag (could we? for consistency?)
1346
1347 ImGuiNextWindowData() { memset((void*)this, 0, sizeof(*this)); }
1349};
1350
1361
1363{
1364 ImGuiNextItemDataFlags HasFlags; // Called HasFlags instead of Flags to avoid mistaking this
1365 ImGuiItemFlags ItemFlags; // Currently only tested/used for ImGuiItemFlags_AllowOverlap and ImGuiItemFlags_HasSelectionUserData.
1366
1367 // Members below are NOT cleared by ItemAdd() meaning they are still valid during e.g. NavProcessItem(). Always rely on HasFlags.
1368 ImGuiID FocusScopeId; // Set by SetNextItemSelectionUserData()
1369 ImGuiSelectionUserData SelectionUserData; // Set by SetNextItemSelectionUserData() (note that NULL/0 is a valid value, we use -1 == ImGuiSelectionUserData_Invalid to mark invalid values)
1370 float Width; // Set by SetNextItemWidth()
1371 ImGuiKeyChord Shortcut; // Set by SetNextItemShortcut()
1372 ImGuiInputFlags ShortcutFlags; // Set by SetNextItemShortcut()
1373 bool OpenVal; // Set by SetNextItemOpen()
1374 ImU8 OpenCond; // Set by SetNextItemOpen()
1375 ImGuiDataTypeStorage RefVal; // Not exposed yet, for ImGuiInputTextFlags_ParseEmptyAsRefVal
1376 ImGuiID StorageId; // Set by SetNextItemStorageID()
1377 ImU32 ColorMarker; // Set by SetNextItemColorMarker(). Not exposed yet, supported by DragScalar,SliderScalar and for ImGuiSliderFlags_ColorMarkers.
1378
1379 ImGuiNextItemData() { memset((void*)this, 0, sizeof(*this)); SelectionUserData = -1; }
1380 inline void ClearFlags() { HasFlags = ImGuiNextItemDataFlags_None; ItemFlags = ImGuiItemFlags_None; } // Also cleared manually by ItemAdd()!
1381};
1382
1383// Status storage for the last submitted item
1385{
1387 ImGuiItemFlags ItemFlags; // See ImGuiItemFlags_ (called 'InFlags' before v1.91.4).
1388 ImGuiItemStatusFlags StatusFlags; // See ImGuiItemStatusFlags_
1389 ImRect Rect; // Full rectangle
1390 ImRect NavRect; // Navigation scoring rectangle (not displayed)
1391 // Rarely used fields are not explicitly cleared, only valid when the corresponding ImGuiItemStatusFlags are set.
1392 ImRect DisplayRect; // Display rectangle. ONLY VALID IF (StatusFlags & ImGuiItemStatusFlags_HasDisplayRect) is set.
1393 ImRect ClipRect; // Clip rectangle at the time of submitting item. ONLY VALID IF (StatusFlags & ImGuiItemStatusFlags_HasClipRect) is set..
1394 ImGuiKeyChord Shortcut; // Shortcut at the time of submitting item. ONLY VALID IF (StatusFlags & ImGuiItemStatusFlags_HasShortcut) is set..
1395
1396 ImGuiLastItemData() { memset((void*)this, 0, sizeof(*this)); }
1397};
1398
1399// Store data emitted by TreeNode() for usage by TreePop()
1400// - To implement ImGuiTreeNodeFlags_NavLeftJumpsToParent: store the minimum amount of data
1401// which we can't infer in TreePop(), to perform the equivalent of NavApplyItemToResult().
1402// Only stored when the node is a potential candidate for landing on a Left arrow jump.
1413
1414// sizeof() = 20
1431
1432// Data saved for each window pushed into the stack
1441
1443{
1445 float Width;
1447};
1448
1450{
1451 void* Ptr; // Either field can be set, not both. e.g. Dock node tab bars are loose while BeginTabBar() ones are in a pool.
1452 int Index; // Usually index in a main pool.
1453
1454 ImGuiPtrOrIndex(void* ptr) { Ptr = ptr; Index = -1; }
1456};
1457
1458// Data used by IsItemDeactivated()/IsItemDeactivatedAfterEdit() functions
1466
1467//-----------------------------------------------------------------------------
1468// [SECTION] Popup support
1469//-----------------------------------------------------------------------------
1470
1477
1478// Storage for popup stacks (g.OpenPopupStack and g.BeginPopupStack)
1480{
1481 ImGuiID PopupId; // Set on OpenPopup()
1482 ImGuiWindow* Window; // Resolved on BeginPopup() - may stay unresolved if user never calls OpenPopup()
1483 ImGuiWindow* RestoreNavWindow;// Set on OpenPopup(), a NavWindow that will be restored on popup close
1484 int ParentNavLayer; // Resolved on BeginPopup(). Actually a ImGuiNavLayer type (declared down below), initialized to -1 which is not part of an enum, but serves well-enough as "not any of layers" value
1485 int OpenFrameCount; // Set on OpenPopup()
1486 ImGuiID OpenParentId; // Set on OpenPopup(), we need this to differentiate multiple menu sets from each others (e.g. inside menu bar vs loose menu items)
1487 ImVec2 OpenPopupPos; // Set on OpenPopup(), preferred popup position (typically == OpenMousePos when using mouse)
1488 ImVec2 OpenMousePos; // Set on OpenPopup(), copy of mouse position at the time of opening popup
1489
1490 ImGuiPopupData() { memset((void*)this, 0, sizeof(*this)); ParentNavLayer = OpenFrameCount = -1; }
1491};
1492
1493//-----------------------------------------------------------------------------
1494// [SECTION] Inputs support
1495//-----------------------------------------------------------------------------
1496
1497// Bit array for named keys
1499
1500// [Internal] Key ranges
1501#define ImGuiKey_LegacyNativeKey_BEGIN 0
1502#define ImGuiKey_LegacyNativeKey_END 512
1503#define ImGuiKey_Keyboard_BEGIN (ImGuiKey_NamedKey_BEGIN)
1504#define ImGuiKey_Keyboard_END (ImGuiKey_GamepadStart)
1505#define ImGuiKey_Gamepad_BEGIN (ImGuiKey_GamepadStart)
1506#define ImGuiKey_Gamepad_END (ImGuiKey_GamepadRStickDown + 1)
1507#define ImGuiKey_Mouse_BEGIN (ImGuiKey_MouseLeft)
1508#define ImGuiKey_Mouse_END (ImGuiKey_MouseWheelY + 1)
1509#define ImGuiKey_Aliases_BEGIN (ImGuiKey_Mouse_BEGIN)
1510#define ImGuiKey_Aliases_END (ImGuiKey_Mouse_END)
1511
1512// [Internal] Named shortcuts for Navigation
1513#define ImGuiKey_NavKeyboardTweakSlow ImGuiMod_Ctrl
1514#define ImGuiKey_NavKeyboardTweakFast ImGuiMod_Shift
1515#define ImGuiKey_NavGamepadTweakSlow ImGuiKey_GamepadL1
1516#define ImGuiKey_NavGamepadTweakFast ImGuiKey_GamepadR1
1517#define ImGuiKey_NavGamepadActivate (g.IO.ConfigNavSwapGamepadButtons ? ImGuiKey_GamepadFaceRight : ImGuiKey_GamepadFaceDown)
1518#define ImGuiKey_NavGamepadCancel (g.IO.ConfigNavSwapGamepadButtons ? ImGuiKey_GamepadFaceDown : ImGuiKey_GamepadFaceRight)
1519#define ImGuiKey_NavGamepadMenu ImGuiKey_GamepadFaceLeft // Toggle menu layer. Hold to enable Windowing.
1520#define ImGuiKey_NavGamepadContextMenu ImGuiKey_GamepadFaceUp // Open context menu (same as Shift+F10)
1521
1533
1535{
1537 ImGuiInputSource_Mouse, // Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them.
1541};
1542
1543// FIXME: Structures in the union below need to be declared as anonymous unions appears to be an extension?
1544// Using ImVec2() would fail on Clang 'union member 'MousePos' has a non-trivial default constructor'
1549struct ImGuiInputEventText { unsigned int Char; };
1551
1553{
1556 ImU32 EventId; // Unique, sequential increasing integer to identify an event (if you need to correlate them to other data).
1557 union
1558 {
1559 ImGuiInputEventMousePos MousePos; // if Type == ImGuiInputEventType_MousePos
1560 ImGuiInputEventMouseWheel MouseWheel; // if Type == ImGuiInputEventType_MouseWheel
1561 ImGuiInputEventMouseButton MouseButton; // if Type == ImGuiInputEventType_MouseButton
1562 ImGuiInputEventKey Key; // if Type == ImGuiInputEventType_Key
1563 ImGuiInputEventText Text; // if Type == ImGuiInputEventType_Text
1564 ImGuiInputEventAppFocused AppFocused; // if Type == ImGuiInputEventType_Focus
1565 };
1567
1568 ImGuiInputEvent() { memset((void*)this, 0, sizeof(*this)); }
1569};
1570
1571// Input function taking an 'ImGuiID owner_id' argument defaults to (ImGuiKeyOwner_Any == 0) aka don't test ownership, which matches legacy behavior.
1572#define ImGuiKeyOwner_Any ((ImGuiID)0) // Accept key that have an owner, UNLESS a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
1573#define ImGuiKeyOwner_NoOwner ((ImGuiID)-1) // Require key to have no owner.
1574//#define ImGuiKeyOwner_None ImGuiKeyOwner_NoOwner // We previously called this 'ImGuiKeyOwner_None' but it was inconsistent with our pattern that _None values == 0 and quite dangerous. Also using _NoOwner makes the IsKeyPressed() calls more explicit.
1575
1577
1578// Routing table entry (sizeof() == 16 bytes)
1580{
1582 ImU16 Mods; // Technically we'd only need 4-bits but for simplify we store ImGuiMod_ values which need 16-bits.
1583 ImU16 RoutingCurrScore; // [DEBUG] For debug display
1584 ImU16 RoutingNextScore; // Lower is better (0: perfect score)
1587
1589};
1590
1591// Routing table: maintain a desired owner for each possible key-chord (key + mods), and setup owner in NewFrame() when mods are matching.
1592// Stored in main context (1 instance)
1594{
1595 ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]; // Index of first entry in Entries[]
1597 ImVector<ImGuiKeyRoutingData> EntriesNext; // Double-buffer to avoid reallocation (could use a shared buffer)
1598
1600 void Clear() { for (int n = 0; n < IM_COUNTOF(Index); n++) Index[n] = -1; Entries.clear(); EntriesNext.clear(); }
1601};
1602
1603// This extends ImGuiKeyData but only for named keys (legacy keys don't support the new features)
1604// Stored in main context (1 per named key). In the future it might be merged into ImGuiKeyData.
1606{
1609 bool LockThisFrame; // Reading this key requires explicit owner id (until end of frame). Set by ImGuiInputFlags_LockThisFrame.
1610 bool LockUntilRelease; // Reading this key requires explicit owner id (until key is released). Set by ImGuiInputFlags_LockUntilRelease. When this is true LockThisFrame is always true as well.
1611
1613};
1614
1615// Extend ImGuiInputFlags_
1616// Flags for extended versions of IsKeyPressed(), IsMouseClicked(), Shortcut(), SetKeyOwner(), SetItemKeyOwner()
1617// Don't mistake with ImGuiInputTextFlags! (which is for ImGui::InputText() function)
1619{
1620 // Flags for IsKeyPressed(), IsKeyChordPressed(), IsMouseClicked(), Shortcut()
1621 // - Repeat mode: Repeat rate selection
1622 ImGuiInputFlags_RepeatRateDefault = 1 << 1, // Repeat rate: Regular (default)
1623 ImGuiInputFlags_RepeatRateNavMove = 1 << 2, // Repeat rate: Fast
1624 ImGuiInputFlags_RepeatRateNavTweak = 1 << 3, // Repeat rate: Faster
1625 // - Repeat mode: Specify when repeating key pressed can be interrupted.
1626 // - In theory ImGuiInputFlags_RepeatUntilOtherKeyPress may be a desirable default, but it would break too many behavior so everything is opt-in.
1627 ImGuiInputFlags_RepeatUntilRelease = 1 << 4, // Stop repeating when released (default for all functions except Shortcut). This only exists to allow overriding Shortcut() default behavior.
1628 ImGuiInputFlags_RepeatUntilKeyModsChange = 1 << 5, // Stop repeating when released OR if keyboard mods are changed (default for Shortcut)
1629 ImGuiInputFlags_RepeatUntilKeyModsChangeFromNone = 1 << 6, // Stop repeating when released OR if keyboard mods are leaving the None state. Allows going from Mod+Key to Key by releasing Mod.
1630 ImGuiInputFlags_RepeatUntilOtherKeyPress = 1 << 7, // Stop repeating when released OR if any other keyboard key is pressed during the repeat
1631
1632 // Flags for SetKeyOwner(), SetItemKeyOwner()
1633 // - Locking key away from non-input aware code. Locking is useful to make input-owner-aware code steal keys from non-input-owner-aware code. If all code is input-owner-aware locking would never be necessary.
1634 ImGuiInputFlags_LockThisFrame = 1 << 20, // Further accesses to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared at end of frame.
1635 ImGuiInputFlags_LockUntilRelease = 1 << 21, // Further accesses to key data will require EXPLICIT owner ID (ImGuiKeyOwner_Any/0 will NOT accepted for polling). Cleared when the key is released or at end of each frame if key is released.
1636
1637 // - Condition for SetItemKeyOwner()
1638 ImGuiInputFlags_CondHovered = 1 << 22, // Only set if item is hovered (default to both)
1639 ImGuiInputFlags_CondActive = 1 << 23, // Only set if item is active (default to both)
1641
1642 // [Internal] Mask of which function support which flags
1655};
1656
1657//-----------------------------------------------------------------------------
1658// [SECTION] Clipper support
1659//-----------------------------------------------------------------------------
1660
1661// Note that Max is exclusive, so perhaps should be using a Begin/End convention.
1663{
1664 int Min;
1665 int Max;
1666 bool PosToIndexConvert; // Begin/End are absolute position (will be converted to indices later)
1667 ImS8 PosToIndexOffsetMin; // Add to Min after converting to indices
1668 ImS8 PosToIndexOffsetMax; // Add to Min after converting to indices
1669
1670 static ImGuiListClipperRange FromIndices(int min, int max) { ImGuiListClipperRange r = { min, max, false, 0, 0 }; return r; }
1671 static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max) { ImGuiListClipperRange r = { (int)y1, (int)y2, true, (ImS8)off_min, (ImS8)off_max }; return r; }
1672};
1673
1674// Temporary clipper data, buffers shared/reused between instances
1686
1687//-----------------------------------------------------------------------------
1688// [SECTION] Navigation support
1689//-----------------------------------------------------------------------------
1690
1692{
1694 ImGuiActivateFlags_PreferInput = 1 << 0, // Favor activation that requires keyboard text input (e.g. for Slider/Drag). Default for Enter key.
1695 ImGuiActivateFlags_PreferTweak = 1 << 1, // Favor activation for tweaking with arrows or gamepad (e.g. for Slider/Drag). Default for Space key and if keyboard is not used.
1696 ImGuiActivateFlags_TryToPreserveState = 1 << 2, // Request widget to preserve state if it can (e.g. InputText will try to preserve cursor/selection)
1697 ImGuiActivateFlags_FromTabbing = 1 << 3, // Activation requested by a tabbing request (ImGuiNavMoveFlags_IsTabbing)
1698 ImGuiActivateFlags_FromShortcut = 1 << 4, // Activation requested by an item shortcut via SetNextItemShortcut() function.
1699 ImGuiActivateFlags_FromFocusApi = 1 << 5, // Activation requested by an api request (ImGuiNavMoveFlags_FocusApi)
1700};
1701
1702// Early work-in-progress API for ScrollToItem()
1704{
1706 ImGuiScrollFlags_KeepVisibleEdgeX = 1 << 0, // If item is not visible: scroll as little as possible on X axis to bring item back into view [default for X axis]
1707 ImGuiScrollFlags_KeepVisibleEdgeY = 1 << 1, // If item is not visible: scroll as little as possible on Y axis to bring item back into view [default for Y axis for windows that are already visible]
1708 ImGuiScrollFlags_KeepVisibleCenterX = 1 << 2, // If item is not visible: scroll to make the item centered on X axis [rarely used]
1709 ImGuiScrollFlags_KeepVisibleCenterY = 1 << 3, // If item is not visible: scroll to make the item centered on Y axis
1710 ImGuiScrollFlags_AlwaysCenterX = 1 << 4, // Always center the result item on X axis [rarely used]
1711 ImGuiScrollFlags_AlwaysCenterY = 1 << 5, // Always center the result item on Y axis [default for Y axis for appearing window)
1712 ImGuiScrollFlags_NoScrollParent = 1 << 6, // Disable forwarding scrolling to parent window if required to keep item/rect visible (only scroll window the function was applied to).
1715};
1716
1718{
1720 ImGuiNavRenderCursorFlags_Compact = 1 << 1, // Compact highlight, no padding/distance from focused item
1721 ImGuiNavRenderCursorFlags_AlwaysDraw = 1 << 2, // Draw rectangular highlight if (g.NavId == id) even when g.NavCursorVisible == false, aka even when using the mouse.
1723#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1728 //ImGuiNavHighlightFlags_TypeThin = ImGuiNavRenderCursorFlags_Compact, // Renamed in 1.90.2
1729#endif
1730};
1731
1733{
1735 ImGuiNavMoveFlags_LoopX = 1 << 0, // On failed request, restart from opposite side
1737 ImGuiNavMoveFlags_WrapX = 1 << 2, // On failed request, request from opposite side one line down (when NavDir==right) or one line up (when NavDir==left)
1738 ImGuiNavMoveFlags_WrapY = 1 << 3, // This is not super useful but provided for completeness
1740 ImGuiNavMoveFlags_AllowCurrentNavId = 1 << 4, // Allow scoring and considering the current NavId as a move target candidate. This is used when the move source is offset (e.g. pressing PageDown actually needs to send a Up move request, if we are pressing PageDown from the bottom-most item we need to stay in place)
1741 ImGuiNavMoveFlags_AlsoScoreVisibleSet = 1 << 5, // Store alternate result in NavMoveResultLocalVisible that only comprise elements that are already fully visible (used by PageUp/PageDown)
1742 ImGuiNavMoveFlags_ScrollToEdgeY = 1 << 6, // Force scrolling to min/max (used by Home/End) // FIXME-NAV: Aim to remove or reword as ImGuiScrollFlags
1744 ImGuiNavMoveFlags_DebugNoResult = 1 << 8, // Dummy scoring for debug purpose, don't apply result
1745 ImGuiNavMoveFlags_FocusApi = 1 << 9, // Requests from focus API can land/focus/activate items even if they are marked with _NoTabStop (see NavProcessItemForTabbingRequest() for details)
1746 ImGuiNavMoveFlags_IsTabbing = 1 << 10, // == Focus + Activate if item is Inputable + DontChangeNavHighlight
1747 ImGuiNavMoveFlags_IsPageMove = 1 << 11, // Identify a PageDown/PageUp request.
1748 ImGuiNavMoveFlags_Activate = 1 << 12, // Activate/select target item.
1749 ImGuiNavMoveFlags_NoSelect = 1 << 13, // Don't trigger selection by not setting g.NavJustMovedTo
1750 ImGuiNavMoveFlags_NoSetNavCursorVisible = 1 << 14, // Do not alter the nav cursor visible state
1751 ImGuiNavMoveFlags_NoClearActiveId = 1 << 15, // (Experimental) Do not clear active id when applying move result
1752};
1753
1755{
1756 ImGuiNavLayer_Main = 0, // Main scrolling layer
1757 ImGuiNavLayer_Menu = 1, // Menu layer (access with Alt)
1759};
1760
1761// Storage for navigation query/results
1763{
1764 ImGuiWindow* Window; // Init,Move // Best candidate window (result->ItemWindow->RootWindowForNav == request->Window)
1765 ImGuiID ID; // Init,Move // Best candidate item ID
1766 ImGuiID FocusScopeId; // Init,Move // Best candidate focus scope ID
1767 ImRect RectRel; // Init,Move // Best candidate bounding box in window relative space
1768 ImGuiItemFlags ItemFlags; // ????,Move // Best candidate item flags
1769 float DistBox; // Move // Best candidate box distance to current NavId
1770 float DistCenter; // Move // Best candidate center distance to current NavId
1771 float DistAxial; // Move // Best candidate axial distance to current NavId
1772 ImGuiSelectionUserData SelectionUserData;//I+Mov // Best candidate SetNextItemSelectionUserData() value. Valid if (ItemFlags & ImGuiItemFlags_HasSelectionUserData)
1773
1775 void Clear() { Window = NULL; ID = FocusScopeId = 0; ItemFlags = 0; SelectionUserData = -1; DistBox = DistCenter = DistAxial = FLT_MAX; }
1776};
1777
1778// Storage for PushFocusScope(), g.FocusScopeStack[], g.NavFocusRoute[]
1784
1785//-----------------------------------------------------------------------------
1786// [SECTION] Typing-select support
1787//-----------------------------------------------------------------------------
1788
1789// Flags for GetTypingSelectRequest()
1791{
1793 ImGuiTypingSelectFlags_AllowBackspace = 1 << 0, // Backspace to delete character inputs. If using: ensure GetTypingSelectRequest() is not called more than once per frame (filter by e.g. focus state)
1794 ImGuiTypingSelectFlags_AllowSingleCharMode = 1 << 1, // Allow "single char" search mode which is activated when pressing the same character multiple times.
1795};
1796
1797// Returned by GetTypingSelectRequest(), designed to eventually be public.
1799{
1800 ImGuiTypingSelectFlags Flags; // Flags passed to GetTypingSelectRequest()
1802 const char* SearchBuffer; // Search buffer contents (use full string. unless SingleCharMode is set, in which case use SingleCharSize).
1803 bool SelectRequest; // Set when buffer was modified this frame, requesting a selection.
1804 bool SingleCharMode; // Notify when buffer contains same character repeated, to implement special mode. In this situation it preferred to not display any on-screen search indication.
1805 ImS8 SingleCharSize; // Length in bytes of first letter codepoint (1 for ascii, 2-4 for UTF-8). If (SearchBufferLen==RepeatCharSize) only 1 letter has been input.
1806};
1807
1808// Storage for GetTypingSelectRequest()
1810{
1812 char SearchBuffer[64]; // Search buffer: no need to make dynamic as this search is very transient.
1815 float LastRequestTime = 0.0f;
1816 bool SingleCharModeLock = false; // After a certain single char repeat count we lock into SingleCharMode. Two benefits: 1) buffer never fill, 2) we can provide an immediate SingleChar mode without timer elapsing.
1817
1818 ImGuiTypingSelectState() { memset((void*)this, 0, sizeof(*this)); }
1819 void Clear() { SearchBuffer[0] = 0; SingleCharModeLock = false; } // We preserve remaining data for easier debugging
1820};
1821
1822//-----------------------------------------------------------------------------
1823// [SECTION] Columns support
1824//-----------------------------------------------------------------------------
1825
1826// Flags for internal's BeginColumns(). This is an obsolete API. Prefer using BeginTable() nowadays!
1828{
1830 ImGuiOldColumnFlags_NoBorder = 1 << 0, // Disable column dividers
1831 ImGuiOldColumnFlags_NoResize = 1 << 1, // Disable resizing columns when clicking on the dividers
1832 ImGuiOldColumnFlags_NoPreserveWidths = 1 << 2, // Disable column width preservation when adjusting columns
1833 ImGuiOldColumnFlags_NoForceWithinWindow = 1 << 3, // Disable forcing columns to fit within window
1834 ImGuiOldColumnFlags_GrowParentContentsSize = 1 << 4, // Restore pre-1.51 behavior of extending the parent window contents size but _without affecting the columns width at all_. Will eventually remove.
1835
1836 // Obsolete names (will be removed)
1837#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1838 //ImGuiColumnsFlags_None = ImGuiOldColumnFlags_None,
1839 //ImGuiColumnsFlags_NoBorder = ImGuiOldColumnFlags_NoBorder,
1840 //ImGuiColumnsFlags_NoResize = ImGuiOldColumnFlags_NoResize,
1841 //ImGuiColumnsFlags_NoPreserveWidths = ImGuiOldColumnFlags_NoPreserveWidths,
1842 //ImGuiColumnsFlags_NoForceWithinWindow = ImGuiOldColumnFlags_NoForceWithinWindow,
1843 //ImGuiColumnsFlags_GrowParentContentsSize = ImGuiOldColumnFlags_GrowParentContentsSize,
1844#endif
1845};
1846
1848{
1849 float OffsetNorm; // Column start offset, normalized 0.0 (far left) -> 1.0 (far right)
1853
1854 ImGuiOldColumnData() { memset((void*)this, 0, sizeof(*this)); }
1855};
1856
1858{
1865 float OffMinX, OffMaxX; // Offsets from HostWorkRect.Min.x
1867 float HostCursorPosY; // Backup of CursorPos at the time of BeginColumns()
1868 float HostCursorMaxPosX; // Backup of CursorMaxPos at the time of BeginColumns()
1869 ImRect HostInitialClipRect; // Backup of ClipRect at the time of BeginColumns()
1870 ImRect HostBackupClipRect; // Backup of ClipRect during PushColumnsBackground()/PopColumnsBackground()
1871 ImRect HostBackupParentWorkRect;//Backup of WorkRect at the time of BeginColumns()
1874
1875 ImGuiOldColumns() { memset((void*)this, 0, sizeof(*this)); }
1876};
1877
1878//-----------------------------------------------------------------------------
1879// [SECTION] Box-select support
1880//-----------------------------------------------------------------------------
1881
1883{
1884 // Active box-selection data (persistent, 1 active at a time)
1888 bool IsStartedFromVoid; // Starting click was not from an item.
1891 ImGuiKeyChord KeyMods : 16; // Latched key-mods for box-select logic.
1892 ImVec2 StartPosRel; // Start position in window-contents relative space (to support scrolling)
1893 ImVec2 EndPosRel; // End position in window-contents relative space
1894 ImVec2 ScrollAccum; // Scrolling accumulator (to behave at high-frame spaces)
1896
1897 // Temporary/Transient data
1898 bool UnclipMode; // (Temp/Transient, here in hot area). Set/cleared by the BeginMultiSelect()/EndMultiSelect() owning active box-select.
1899 ImRect UnclipRect; // Rectangle where ItemAdd() clipping may be temporarily disabled. Need support by multi-select supporting widgets.
1900 ImRect UnclipRects[2]; // Per-axis versions.
1901 ImRect BoxSelectRectPrev; // Selection rectangle in absolute coordinates (derived every frame from BoxSelectStartPosRel and MousePos)
1903
1904 ImGuiBoxSelectState() { memset((void*)this, 0, sizeof(*this)); }
1905};
1906
1907//-----------------------------------------------------------------------------
1908// [SECTION] Multi-select support
1909//-----------------------------------------------------------------------------
1910
1911// We always assume that -1 is an invalid value (which works for indices and pointers)
1912#define ImGuiSelectionUserData_Invalid ((ImGuiSelectionUserData)-1)
1913
1914// Temporary storage for multi-select
1916{
1917 ImGuiMultiSelectIO IO; // MUST BE FIRST FIELD. Requests are set and returned by BeginMultiSelect()/EndMultiSelect() + written to by user during the loop.
1919 ImGuiID FocusScopeId; // Copied from g.CurrentFocusScopeId (unless another selection scope was pushed manually)
1923 //ImGuiSelectionUserData CurrSubmittedItem; // Copy of last submitted item data, used to merge output ranges.
1924 //ImGuiSelectionUserData PrevSubmittedItem; // Copy of previous submitted item data, used to merge output ranges.
1927 ImS8 LoopRequestSetAll; // -1: no operation, 0: clear all, 1: select all.
1928 bool IsEndIO; // Set when switching IO from BeginMultiSelect() to EndMultiSelect() state.
1929 bool IsFocused; // Set if currently focusing the selection scope (any item of the selection). May be used if you have custom shortcut associated to selection.
1930 bool IsKeyboardSetRange; // Set by BeginMultiSelect() when using Shift+Navigation. Because scrolling may be affected we can't afford a frame of lag with Shift+Navigation.
1932 bool RangeSrcPassedBy; // Set by the item that matches RangeSrcItem.
1933 bool RangeDstPassedBy; // Set by the item that matches NavJustMovedToId when IsSetRange is set.
1934
1936 void Clear() { size_t io_sz = sizeof(IO); ClearIO(); memset((void*)(&IO + 1), 0, sizeof(*this) - io_sz); } // Zero-clear except IO as we preserve IO.Requests[] buffer allocation.
1937 void ClearIO() { IO.Requests.resize(0); IO.RangeSrcItem = IO.NavIdItem = ImGuiSelectionUserData_Invalid; IO.NavIdSelected = IO.RangeSrcReset = false; }
1938};
1939
1940// Persistent storage for multi-select (as long as selection is alive)
1942{
1945 int LastFrameActive; // Last used frame-count, for GC.
1946 int LastSelectionSize; // Set by BeginMultiSelect() based on optional info provided by user. May be -1 if unknown.
1947 ImS8 RangeSelected; // -1 (don't have) or true/false
1948 ImS8 NavIdSelected; // -1 (don't have) or true/false
1950 ImGuiSelectionUserData NavIdItem; // SetNextItemSelectionUserData() value for NavId (if part of submitted items)
1951
1953};
1954
1955//-----------------------------------------------------------------------------
1956// [SECTION] Docking support
1957//-----------------------------------------------------------------------------
1958
1959#ifdef IMGUI_HAS_DOCK
1960// <this is filled in 'docking' branch>
1961#endif // #ifdef IMGUI_HAS_DOCK
1962
1963//-----------------------------------------------------------------------------
1964// [SECTION] Viewport support
1965//-----------------------------------------------------------------------------
1966
1967// ImGuiViewport Private/Internals fields (cardinal sin: we are using inheritance!)
1968// Every instance of ImGuiViewport is in fact a ImGuiViewportP.
1970{
1971 float BgFgDrawListsLastTimeActive[2]; // Last frame number the background (0) and foreground (1) draw lists were used
1972 ImDrawList* BgFgDrawLists[2]; // Convenience background (0) and foreground (1) draw lists. We use them to draw software mouser cursor when io.MouseDrawCursor is set and to draw most debug overlays.
1974 ImDrawDataBuilder DrawDataBuilder; // Temporary data while building final ImDrawData
1975
1976 // Per-viewport work area
1977 // - Insets are >= 0.0f values, distance from viewport corners to work area.
1978 // - BeginMainMenuBar() and DockspaceOverViewport() tend to use work area to avoid stepping over existing contents.
1979 // - Generally 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land.
1980 ImVec2 WorkInsetMin; // Work Area inset locked for the frame. GetWorkRect() always fits within GetMainRect().
1982 ImVec2 BuildWorkInsetMin; // Work Area inset accumulator for current frame, to become next frame's WorkInset
1984
1987
1988 // Calculate work rect pos/size given a set of offset (we have 1 pair of offset for rect locked from last frame data, and 1 pair for currently building rect)
1989 ImVec2 CalcWorkRectPos(const ImVec2& inset_min) const { return ImVec2(Pos.x + inset_min.x, Pos.y + inset_min.y); }
1990 ImVec2 CalcWorkRectSize(const ImVec2& inset_min, const ImVec2& inset_max) const { return ImVec2(ImMax(0.0f, Size.x - inset_min.x - inset_max.x), ImMax(0.0f, Size.y - inset_min.y - inset_max.y)); }
1992
1993 // Helpers to retrieve ImRect (we don't need to store BuildWorkRect as every access tend to change it, hence the code asymmetry)
1994 ImRect GetMainRect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); }
1995 ImRect GetWorkRect() const { return ImRect(WorkPos.x, WorkPos.y, WorkPos.x + WorkSize.x, WorkPos.y + WorkSize.y); }
1997};
1998
1999//-----------------------------------------------------------------------------
2000// [SECTION] Settings support
2001//-----------------------------------------------------------------------------
2002
2003// Windows data saved in imgui.ini file
2004// Because we never destroy or rename ImGuiWindowSettings, we can store the names in a separate buffer easily.
2005// (this is designed to be stored in a ImChunkStream buffer, with the variable-length Name following our structure)
2007{
2013 bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
2014 bool WantDelete; // Set to invalidate/delete the settings entry
2015
2016 ImGuiWindowSettings() { memset((void*)this, 0, sizeof(*this)); }
2017 char* GetName() { return (char*)(this + 1); }
2018};
2019
2021{
2022 const char* TypeName; // Short description stored in .ini file. Disallowed characters: '[' ']'
2023 ImGuiID TypeHash; // == ImHashStr(TypeName)
2024 void (*ClearAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Clear all settings data
2025 void (*ReadInitFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called before reading (in registration order)
2026 void* (*ReadOpenFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, const char* name); // Read: Called when entering into a new ini entry e.g. "[Window][Name]"
2027 void (*ReadLineFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, void* entry, const char* line); // Read: Called for every line of text within an ini entry
2028 void (*ApplyAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler); // Read: Called after reading (in registration order)
2029 void (*WriteAllFn)(ImGuiContext* ctx, ImGuiSettingsHandler* handler, ImGuiTextBuffer* out_buf); // Write: Output every entries into 'out_buf'
2031
2032 ImGuiSettingsHandler() { memset((void*)this, 0, sizeof(*this)); }
2033};
2034
2035//-----------------------------------------------------------------------------
2036// [SECTION] Localization support
2037//-----------------------------------------------------------------------------
2038
2039// This is experimental and not officially supported, it'll probably fall short of features, if/when it does we may backtrack.
2054
2056{
2058 const char* Text;
2059};
2060
2061//-----------------------------------------------------------------------------
2062// [SECTION] Error handling, State recovery support
2063//-----------------------------------------------------------------------------
2064
2065// Macros used by Recoverable Error handling
2066// - Only dispatch error if _EXPR: evaluate as assert (similar to an assert macro).
2067// - The message will always be a string literal, in order to increase likelihood of being display by an assert handler.
2068// - See 'Demo->Configuration->Error Handling' and ImGuiIO definitions for details on error handling.
2069// - Read https://github.com/ocornut/imgui/wiki/Error-Handling for details on error handling.
2070#ifndef IM_ASSERT_USER_ERROR
2071#define IM_ASSERT_USER_ERROR(_EXPR,_MSG) do { if (!(_EXPR)) { if (ImGui::ErrorLog(_MSG)) { IM_ASSERT((_EXPR) && _MSG); } } } while (0) // Recoverable User Error
2072#define IM_ASSERT_USER_ERROR_RET(_EXPR,_MSG) do { if (!(_EXPR)) { if (ImGui::ErrorLog(_MSG)) { IM_ASSERT((_EXPR) && _MSG); } return; } } while (0) // Recoverable User Error
2073#define IM_ASSERT_USER_ERROR_RETV(_EXPR,_RETV,_MSG) do { if (!(_EXPR)) { if (ImGui::ErrorLog(_MSG)) { IM_ASSERT((_EXPR) && _MSG); } return _RETV; } } while (0) // Recoverable User Error
2074#endif
2075
2076// The error callback is currently not public, as it is expected that only advanced users will rely on it.
2077typedef void (*ImGuiErrorCallback)(ImGuiContext* ctx, void* user_data, const char* msg); // Function signature for g.ErrorCallback
2078
2079//-----------------------------------------------------------------------------
2080// [SECTION] Metrics, Debug Tools
2081//-----------------------------------------------------------------------------
2082
2083// See IMGUI_DEBUG_LOG() and IMGUI_DEBUG_LOG_XXX() macros.
2106
2113
2115{
2116 int TotalAllocCount; // Number of call to MemAlloc().
2118 ImS16 LastEntriesIdx; // Current index in buffer
2119 ImGuiDebugAllocEntry LastEntriesBuf[6]; // Track last 6 frames that had allocations
2120
2121 ImGuiDebugAllocInfo() { memset((void*)this, 0, sizeof(*this)); }
2122};
2123
2141
2143{
2145 ImS8 QueryFrameCount; // >= 1: Sub-query in progress
2146 bool QuerySuccess; // Sub-query obtained result from DebugHookIdInfo()
2147 ImS8 DataType; // ImGuiDataType
2148 int DescOffset; // -1 or offset into parent's ResultsPathsBuf
2149
2150 ImGuiStackLevelInfo() { memset((void*)this, 0, sizeof(*this)); DataType = -1; DescOffset = -1; }
2151};
2152
2154{
2155 ImGuiID MainID; // ID to query details for.
2156 bool Active; // Used to disambiguate the case when ID == 0 and e.g. some code calls PushOverrideID(0).
2157 bool Complete; // All sub-queries are finished (some may have failed).
2158 ImS8 Step; // -1: query stack + init Results, >= 0: filling individual stack level.
2162
2163 ImGuiDebugItemPathQuery() { memset((void*)this, 0, sizeof(*this)); }
2164};
2165
2166// State for ID Stack tool queries
2176
2177//-----------------------------------------------------------------------------
2178// [SECTION] Generic context hooks
2179//-----------------------------------------------------------------------------
2180
2183
2185{
2186 ImGuiID HookId; // A unique ID assigned by AddContextHook()
2191
2192 ImGuiContextHook() { memset((void*)this, 0, sizeof(*this)); }
2193};
2194
2195typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section);
2196
2197//-----------------------------------------------------------------------------
2198// [SECTION] ImGuiContext (main Dear ImGui context)
2199//-----------------------------------------------------------------------------
2200
2202{
2204 bool WithinFrameScope; // Set by NewFrame(), cleared by EndFrame()
2205 bool WithinFrameScopeWithImplicitWindow; // Set by NewFrame(), cleared by EndFrame() when the implicit debug window has been pushed
2206 bool TestEngineHookItems; // Will call test engine hooks: ImGuiTestEngineHook_ItemAdd(), ImGuiTestEngineHook_ItemInfo(), ImGuiTestEngineHook_Log()
2210 double Time;
2211 char ContextName[16]; // Storage for a context name (to facilitate debugging multi-context setups)
2215 ImVector<ImFontAtlas*> FontAtlases; // List of font atlases used by the context (generally only contains g.IO.Fonts aka the main font atlas)
2216 ImFont* Font; // Currently bound font. (== FontStack.back().Font)
2217 ImFontBaked* FontBaked; // Currently bound font at currently bound size. (== Font->GetFontBaked(FontSize))
2218 float FontSize; // Currently bound font size == line height (== FontSizeBase + externals scales applied in the UpdateCurrentFontSize() function).
2219 float FontSizeBase; // Font size before scaling == style.FontSizeBase == value passed to PushFont() when specified.
2220 float FontBakedScale; // == FontBaked->Size / FontSize. Scale factor over baked size. Rarely used nowadays, very often == 1.0f.
2221 float FontRasterizerDensity; // Current font density. Used by all calls to GetFontBaked().
2222 float CurrentDpiScale; // Current window/viewport DpiScale == CurrentViewport->DpiScale
2224 ImGuiID WithinEndChildID; // Set within EndChild()
2225 ImGuiID WithinEndPopupID; // Set within EndPopup()
2226 void* TestEngine; // Test engine user data
2227
2228 // Inputs
2229 ImVector<ImGuiInputEvent> InputEventsQueue; // Input events which will be trickled/written into IO structure.
2230 ImVector<ImGuiInputEvent> InputEventsTrail; // Past input events processed in NewFrame(). This is to allow domain-specific application to access e.g mouse/pen trail.
2233
2234 // Windows state
2235 ImVector<ImGuiWindow*> Windows; // Windows, sorted in display order, back to front
2236 ImVector<ImGuiWindow*> WindowsFocusOrder; // Root windows, sorted in focus order, back to front.
2237 ImVector<ImGuiWindow*> WindowsTempSortBuffer; // Temporary buffer used in EndFrame() to reorder windows so parents are kept before their child
2239 ImGuiStorage WindowsById; // Map window's ImGuiID to ImGuiWindow*
2240 int WindowsActiveCount; // Number of unique windows submitted by frame
2241 float WindowsBorderHoverPadding; // Padding around resizable windows for which hovering on counts as hovering the window == ImMax(style.TouchExtraPadding, style.WindowBorderHoverPadding). This isn't so multi-dpi friendly.
2242 ImGuiID DebugBreakInWindow; // Set to break in Begin() call.
2243 ImGuiWindow* CurrentWindow; // Window being drawn into
2244 ImGuiWindow* HoveredWindow; // Window the mouse is hovering. Will typically catch mouse inputs.
2245 ImGuiWindow* HoveredWindowUnderMovingWindow; // Hovered window ignoring MovingWindow. Only set if MovingWindow is set.
2246 ImGuiWindow* HoveredWindowBeforeClear; // Window the mouse is hovering. Filled even with _NoMouse. This is currently useful for multi-context compositors.
2247 ImGuiWindow* MovingWindow; // Track the window we clicked on (in order to preserve focus). The actual window that is moved is generally MovingWindow->RootWindow.
2248 ImGuiWindow* WheelingWindow; // Track the window we started mouse-wheeling on. Until a timer elapse or mouse has moved, generally keep scrolling the same window even if during the course of scrolling the mouse ends up hovering a child window.
2250 int WheelingWindowStartFrame; // This may be set one frame before WheelingWindow is != NULL
2255
2256 // Item/widgets state and tracking information
2257 ImGuiID DebugDrawIdConflictsId; // Set when we detect multiple items with the same identifier
2258 ImGuiID DebugHookIdInfoId; // Will call core hooks: DebugHookIdInfo() from GetID functions, used by ID Stack Tool [next HoveredId/ActiveId to not pull in an extra cache-line]
2259 ImGuiID HoveredId; // Hovered widget, filled during the frame
2261 int HoveredIdPreviousFrameItemCount; // Count numbers of items using the same ID as last frame's hovered id
2262 float HoveredIdTimer; // Measure contiguous hovering time
2263 float HoveredIdNotActiveTimer; // Measure contiguous hovering time where the item has not been active
2265 bool HoveredIdIsDisabled; // At least one widget passed the rect test, but has been discarded by disabled flag or popup inhibit. May be true even if HoveredId == 0.
2266 bool ItemUnclipByLog; // Disable ItemAdd() clipping, essentially a memory-locality friendly copy of LogEnabled
2267 ImGuiID ActiveId; // Active widget
2268 ImGuiID ActiveIdIsAlive; // Active widget has been seen this frame (we can't use a bool as the ActiveId may change within the frame)
2270 bool ActiveIdIsJustActivated; // Set at the time of activation for one frame
2271 bool ActiveIdAllowOverlap; // Active widget allows another widget to steal active id (generally for overlapping widgets, but not always)
2272 bool ActiveIdNoClearOnFocusLoss; // Disable losing active id if the active id window gets unfocused.
2273 bool ActiveIdHasBeenPressedBefore; // Track whether the active id led to a press (this is to allow changing between PressOnClick and PressOnRelease without pressing twice). Used by range_select branch.
2274 bool ActiveIdHasBeenEditedBefore; // Was the value associated to the widget Edited over the course of the Active state.
2278 ImGuiID ActiveIdDisabledId; // When clicking a disabled item we set ActiveId=window->MoveId to avoid interference with widget code. Actual item ID is stored here.
2279 ImVec2 ActiveIdClickOffset; // Clicked offset from upper-left corner, if applicable (currently only set by ButtonBehavior)
2280 ImGuiInputSource ActiveIdSource; // Activating source: ImGuiInputSource_Mouse OR ImGuiInputSource_Keyboard OR ImGuiInputSource_Gamepad
2284 ImGuiDataTypeStorage ActiveIdValueOnActivation; // Backup of initial value at the time of activation. ONLY SET BY SPECIFIC WIDGETS: DragXXX and SliderXXX.
2285 ImGuiID LastActiveId; // Store the last non-zero ActiveId, useful for animation.
2286 float LastActiveIdTimer; // Store the last non-zero ActiveId timer since the beginning of activation, useful for animation.
2287
2288 // Key/Input Ownership + Shortcut Routing system
2289 // - The idea is that instead of "eating" a given key, we can link to an owner.
2290 // - Input query can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
2291 // - Routing is requested ahead of time for a given chord (Key + Mods) and granted in NewFrame().
2292 double LastKeyModsChangeTime; // Record the last time key mods changed (affect repeat delay when using shortcut logic)
2293 double LastKeyModsChangeFromNoneTime; // Record the last time key mods changed away from being 0 (affect repeat delay when using shortcut logic)
2294 double LastKeyboardKeyPressTime; // Record the last time a keyboard key (ignore mouse/gamepad ones) was pressed.
2295 ImBitArrayForNamedKeys KeysMayBeCharInput; // Lookup to tell if a key can emit char input, see IsKeyChordPotentiallyCharInput(). sizeof() = 20 bytes
2298 ImU32 ActiveIdUsingNavDirMask; // Active widget will want to read those nav move requests (e.g. can activate a button and move away from it)
2299 bool ActiveIdUsingAllKeyboardKeys; // Active widget will want to read all keyboard keys inputs. (this is a shortcut for not taking ownership of 100+ keys, frequently used by drag operations)
2300 ImGuiKeyChord DebugBreakInShortcutRouting; // Set to break in SetShortcutRouting()/Shortcut() calls.
2301 //ImU32 ActiveIdUsingNavInputMask; // [OBSOLETE] Since (IMGUI_VERSION_NUM >= 18804) : 'g.ActiveIdUsingNavInputMask |= (1 << ImGuiNavInput_Cancel);' becomes --> 'SetKeyOwner(ImGuiKey_Escape, g.ActiveId) and/or SetKeyOwner(ImGuiKey_NavGamepadCancel, g.ActiveId);'
2302
2303 // Next window/item data
2304 ImGuiID CurrentFocusScopeId; // Value for currently appending items == g.FocusScopeStack.back(). Not to be mistaken with g.NavFocusScopeId.
2305 ImGuiItemFlags CurrentItemFlags; // Value for currently appending items == g.ItemFlagsStack.back()
2306 ImGuiID DebugLocateId; // Storage for DebugLocateItemOnHover() feature: this is read by ItemAdd() so we keep it in a hot/cached location
2307 ImGuiNextItemData NextItemData; // Storage for SetNextItem** functions
2308 ImGuiLastItemData LastItemData; // Storage for last submitted item (setup by ItemAdd)
2309 ImGuiNextWindowData NextWindowData; // Storage for SetNextWindow** functions
2311 bool GcCompactAll; // Request full GC
2312
2313 // Shared stacks
2314 ImGuiCol DebugFlashStyleColorIdx; // (Keep close to ColorStack to share cache line)
2315 ImVector<ImGuiColorMod> ColorStack; // Stack for PushStyleColor()/PopStyleColor() - inherited by Begin()
2316 ImVector<ImGuiStyleMod> StyleVarStack; // Stack for PushStyleVar()/PopStyleVar() - inherited by Begin()
2317 ImVector<ImFontStackData> FontStack; // Stack for PushFont()/PopFont() - inherited by Begin()
2318 ImVector<ImGuiFocusScopeData> FocusScopeStack; // Stack for PushFocusScope()/PopFocusScope() - inherited by BeginChild(), pushed into by Begin()
2319 ImVector<ImGuiItemFlags> ItemFlagsStack; // Stack for PushItemFlag()/PopItemFlag() - inherited by Begin()
2320 ImVector<ImGuiGroupData> GroupStack; // Stack for BeginGroup()/EndGroup() - not inherited by Begin()
2321 ImVector<ImGuiPopupData> OpenPopupStack; // Which popups are open (persistent)
2322 ImVector<ImGuiPopupData> BeginPopupStack; // Which level of BeginPopup() we are in (reset every frame)
2324
2325 // Viewports
2326 ImVector<ImGuiViewportP*> Viewports; // Active viewports (Size==1 in 'master' branch). Each viewports hold their copy of ImDrawData.
2327
2328 // Keyboard/Gamepad Navigation
2329 bool NavCursorVisible; // Nav focus cursor/rectangle is visible? We hide it after a mouse click. We show it after a nav move.
2330 bool NavHighlightItemUnderNav; // Disable mouse hovering highlight. Highlight navigation focused item instead of mouse hovered item.
2331 //bool NavDisableHighlight; // Old name for !g.NavCursorVisible before 1.91.4 (2024/10/18). OPPOSITE VALUE (g.NavDisableHighlight == !g.NavCursorVisible)
2332 //bool NavDisableMouseHover; // Old name for g.NavHighlightItemUnderNav before 1.91.1 (2024/10/18) this was called When user starts using keyboard/gamepad, we hide mouse hovering highlight until mouse is touched again.
2333 bool NavMousePosDirty; // When set we will update mouse position if io.ConfigNavMoveSetMousePos is set (not enabled by default)
2334 bool NavIdIsAlive; // Nav widget has been seen this frame ~~ NavRectRel is valid
2335 ImGuiID NavId; // Focused item for navigation
2336 ImGuiWindow* NavWindow; // Focused window for navigation. Could be called 'FocusedWindow'
2337 ImGuiID NavFocusScopeId; // Focused focus scope (e.g. selection code often wants to "clear other items" when landing on an item of the same scope)
2338 ImGuiNavLayer NavLayer; // Focused layer (main scrolling layer, or menu/title bar layer)
2340 ImGuiID NavActivateId; // ~~ (g.ActiveId == 0) && (IsKeyPressed(ImGuiKey_Space) || IsKeyDown(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadActivate)) ? NavId : 0, also set when calling ActivateItemByID()
2341 ImGuiID NavActivateDownId; // ~~ IsKeyDown(ImGuiKey_Space) || IsKeyDown(ImGuiKey_Enter) || IsKeyDown(ImGuiKey_NavGamepadActivate) ? NavId : 0
2342 ImGuiID NavActivatePressedId; // ~~ IsKeyPressed(ImGuiKey_Space) || IsKeyPressed(ImGuiKey_Enter) || IsKeyPressed(ImGuiKey_NavGamepadActivate) ? NavId : 0 (no repeat)
2344 ImVector<ImGuiFocusScopeData> NavFocusRoute; // Reversed copy focus scope stack for NavId (should contains NavFocusScopeId). This essentially follow the window->ParentWindowForFocusRoute chain.
2349 ImGuiID NavNextActivateId; // Set by ActivateItemByID(), queued until next frame.
2351 ImGuiInputSource NavInputSource; // Keyboard or Gamepad mode? THIS CAN ONLY BE ImGuiInputSource_Keyboard or ImGuiInputSource_Gamepad
2352 ImGuiSelectionUserData NavLastValidSelectionUserData; // Last valid data passed to SetNextItemSelectionUser(), or -1. For current window. Not reset when focusing an item that doesn't have selection data.
2354 //ImGuiID NavActivateInputId; // Removed in 1.89.4 (July 2023). This is now part of g.NavActivateId and sets g.NavActivateFlags |= ImGuiActivateFlags_PreferInput. See commit c9a53aa74, issue #5606.
2355
2356 // Navigation: Init & Move Requests
2357 bool NavAnyRequest; // ~~ NavMoveRequest || NavInitRequest this is to perform early out in ItemAdd()
2358 bool NavInitRequest; // Init request for appearing window to select first item
2360 ImGuiNavItemData NavInitResult; // Init request result (first item of the window, or one for which SetItemDefaultFocus() was called)
2361 bool NavMoveSubmitted; // Move request submitted, will process result on next NewFrame()
2362 bool NavMoveScoringItems; // Move request submitted, still scoring incoming items
2367 ImGuiDir NavMoveDir; // Direction of the move request (left/right/up/down)
2369 ImGuiDir NavMoveClipDir; // FIXME-NAV: Describe the purpose of this better. Might want to rename?
2370 ImRect NavScoringRect; // Rectangle used for scoring, in screen space. Based of window->NavRectRel[], modified for directional navigation scoring.
2371 ImRect NavScoringNoClipRect; // Some nav operations (such as PageUp/PageDown) enforce a region which clipper will attempt to always keep submitted. Unset/invalid if inverted.
2372 int NavScoringDebugCount; // Metrics for debugging
2373 int NavTabbingDir; // Generally -1 or +1, 0 when tabbing without a nav id
2374 int NavTabbingCounter; // >0 when counting items for tabbing
2375 ImGuiNavItemData NavMoveResultLocal; // Best move request candidate within NavWindow
2376 ImGuiNavItemData NavMoveResultLocalVisible; // Best move request candidate within NavWindow that are mostly visible (when using ImGuiNavMoveFlags_AlsoScoreVisibleSet flag)
2377 ImGuiNavItemData NavMoveResultOther; // Best move request candidate within NavWindow's flattened hierarchy (when using ImGuiWindowFlags_NavFlattened flag)
2378 ImGuiNavItemData NavTabbingResultFirst; // First tabbing request candidate within NavWindow and flattened hierarchy
2379
2380 // Navigation: record of last move request
2381 ImGuiID NavJustMovedFromFocusScopeId; // Just navigated from this focus scope id (result of a successfully MoveRequest).
2382 ImGuiID NavJustMovedToId; // Just navigated to this id (result of a successfully MoveRequest).
2383 ImGuiID NavJustMovedToFocusScopeId; // Just navigated to this focus scope id (result of a successfully MoveRequest).
2385 bool NavJustMovedToIsTabbing; // Copy of ImGuiNavMoveFlags_IsTabbing. Maybe we should store whole flags.
2386 bool NavJustMovedToHasSelectionData; // Copy of move result's ItemFlags & ImGuiItemFlags_HasSelectionUserData). Maybe we should just store ImGuiNavItemData.
2387
2388 // Navigation: extra config options (will be made public eventually)
2389 // - Tabbing (Tab, Shift+Tab) and Windowing (Ctrl+Tab, Ctrl+Shift+Tab) are enabled REGARDLESS of ImGuiConfigFlags_NavEnableKeyboard being set.
2390 // - Ctrl+Tab is reconfigurable because it is the only shortcut that may be polled when no window are focused. It also doesn't work e.g. Web platforms.
2391 bool ConfigNavEnableTabbing; // = true. Enable tabbing (Tab, Shift+Tab). PLEASE LET ME KNOW IF YOU USE THIS.
2392 bool ConfigNavWindowingWithGamepad; // = true. Enable Ctrl+Tab by holding ImGuiKey_GamepadFaceLeft (== ImGuiKey_NavGamepadMenu). When false, the button may still be used to toggle Menu layer.
2393 ImGuiKeyChord ConfigNavWindowingKeyNext; // = ImGuiMod_Ctrl | ImGuiKey_Tab (or ImGuiMod_Super | ImGuiKey_Tab on OS X). Set to 0 to disable. For reconfiguration (see #4828)
2394 ImGuiKeyChord ConfigNavWindowingKeyPrev; // = ImGuiMod_Ctrl | ImGuiMod_Shift | ImGuiKey_Tab (or ImGuiMod_Super | ImGuiMod_Shift | ImGuiKey_Tab on OS X)
2395
2396 // Navigation: Windowing (Ctrl+Tab for list, or Menu button + keys or directional pads to move/resize)
2397 ImGuiWindow* NavWindowingTarget; // Target window when doing Ctrl+Tab (or Pad Menu + FocusPrev/Next), this window is temporarily displayed top-most!
2398 ImGuiWindow* NavWindowingTargetAnim; // Record of last valid NavWindowingTarget until DimBgRatio and NavWindowingHighlightAlpha becomes 0.0f, so the fade-out can stay on it.
2399 ImGuiWindow* NavWindowingListWindow; // Internal window actually listing the Ctrl+Tab contents
2403 bool NavWindowingToggleLayer; // Set while Alt or GamepadMenu is held, may be cleared by other operations, and processed when releasing the key.
2404 ImGuiKey NavWindowingToggleKey; // Keyboard/gamepad key used when toggling to menu layer.
2407
2408 // Render
2409 float DimBgRatio; // 0.0..1.0 animation when fading in a dimming background (for modal window and Ctrl+Tab list)
2410
2411 // Drag and Drop
2413 bool DragDropWithinSource; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag source.
2414 bool DragDropWithinTarget; // Set when within a BeginDragDropXXX/EndDragDropXXX block for a drag target.
2419 ImRect DragDropTargetRect; // Store rectangle of current target candidate (we favor small targets when overlapping)
2420 ImRect DragDropTargetClipRect; // Store ClipRect at the time of item's drawing
2425 float DragDropAcceptIdCurrRectSurface; // Target item surface (we resolve overlapping targets by prioritizing the smaller surface)
2426 ImGuiID DragDropAcceptIdCurr; // Target item id (set at the time of accepting the payload)
2427 ImGuiID DragDropAcceptIdPrev; // Target item id from previous frame (we need to store this to allow for overlapping drag and drop targets)
2428 int DragDropAcceptFrameCount; // Last time a target expressed a desire to accept the source
2429 ImGuiID DragDropHoldJustPressedId; // Set when holding a payload just made ButtonBehavior() return a press.
2430 ImVector<unsigned char> DragDropPayloadBufHeap; // We don't expose the ImVector<> directly, ImGuiPayload only holds pointer+size
2431 unsigned char DragDropPayloadBufLocal[16]; // Local buffer for small payloads
2432
2433 // Clipper
2436
2437 // Tables
2439 ImGuiID DebugBreakInTable; // Set to break in BeginTable() call.
2440 int TablesTempDataStacked; // Temporary table data size (because we leave previous instances undestructed, we generally don't use TablesTempData.Size)
2441 ImVector<ImGuiTableTempData> TablesTempData; // Temporary table data (buffers reused/shared across instances, support nesting)
2442 ImPool<ImGuiTable> Tables; // Persistent table data
2443 ImVector<float> TablesLastTimeActive; // Last used timestamp of each tables (SOA, for efficient GC)
2445
2446 // Tab bars
2451
2452 // Multi-Select state
2455 int MultiSelectTempDataStacked; // Temporary multi-select data size (because we leave previous instances undestructed, we generally don't use MultiSelectTempData.Size)
2458
2459 // Hover Delay system
2462 float HoverItemDelayTimer; // Currently used by IsItemHovered()
2463 float HoverItemDelayClearTimer; // Currently used by IsItemHovered(): grace time before g.TooltipHoverTimer gets cleared.
2464 ImGuiID HoverItemUnlockedStationaryId; // Mouse has once been stationary on this item. Only reset after departing the item.
2465 ImGuiID HoverWindowUnlockedStationaryId; // Mouse has once been stationary on this window. Only reset after departing the window.
2466
2467 // Mouse state
2469 float MouseStationaryTimer; // Time the mouse has been stationary (with some loose heuristic)
2471
2472 // Widget state
2478 ImGuiID InputTextReactivateId; // ID of InputText to reactivate on next frame (for io.ConfigInputTextEnterKeepActive behavior)
2479 ImGuiID TempInputId; // Temporary text input when using Ctrl+Click on a slider, etc.
2483 ImGuiColorEditFlags ColorEditOptions; // Store user options for color edit widgets
2484 ImGuiID ColorEditCurrentID; // Set temporarily while inside of the parent-most ColorEdit4/ColorPicker4 (because they call each others).
2485 ImGuiID ColorEditSavedID; // ID we are saving/restoring HS for
2486 float ColorEditSavedHue; // Backup of last Hue associated to LastColor, so we can restore Hue in lossy RGB<>HSV round trips
2487 float ColorEditSavedSat; // Backup of last Saturation associated to LastColor, so we can restore Saturation in lossy RGB<>HSV round trips
2488 ImU32 ColorEditSavedColor; // RGB value with alpha set to 0.
2489 ImVec4 ColorPickerRef; // Initial/reference color at the time of opening the color picker.
2491 ImRect WindowResizeBorderExpectedRect; // Expected border rect, switch to relative edit if moving
2493 short ScrollbarSeekMode; // 0: scroll to clicked location, -1/+1: prev/next page.
2494 float ScrollbarClickDeltaToGrabCenter; // When scrolling to mouse location: distance between mouse and center of grab box, normalized in parent space.
2496 float SliderCurrentAccum; // Accumulated slider delta when using navigation controls.
2497 bool SliderCurrentAccumDirty; // Has the accumulated slider delta changed since last time we tried to apply it?
2499 float DragCurrentAccum; // Accumulator for dragging modification. Always high-precision, not rounded by end-user precision settings
2500 float DragSpeedDefaultRatio; // If speed == 0.0f, uses (max-min) * DragSpeedDefaultRatio
2501 float DisabledAlphaBackup; // Backup for style.Alpha for BeginDisabled()
2504 ImGuiWindow* TooltipPreviousWindow; // Window of last tooltip submitted during the frame
2505 ImVector<char> ClipboardHandlerData; // If no custom clipboard handler is defined
2506 ImVector<ImGuiID> MenusIdSubmittedThisFrame; // A list of menu IDs that were rendered at least once
2507 ImGuiTypingSelectState TypingSelectState; // State for GetTypingSelectRequest()
2508
2509 // Platform support
2510 ImGuiPlatformImeData PlatformImeData; // Data updated by current frame. Will be applied at end of the frame. For some backends, this is required to have WantVisible=true in order to receive text message.
2511 ImGuiPlatformImeData PlatformImeDataPrev; // Previous frame data. When changed we call the platform_io.Platform_SetImeDataFn() handler.
2512
2513 // Extensions
2514 // FIXME: We could provide an API to register one slot in an array held in ImGuiContext?
2515 ImVector<ImTextureData*> UserTextures; // List of textures created/managed by user or third-party extension. Automatically appended into platform_io.Textures[].
2516
2517 // Settings
2519 float SettingsDirtyTimer; // Save .ini Settings to memory when time reaches zero
2520 ImGuiTextBuffer SettingsIniData; // In memory .ini settings
2521 ImVector<ImGuiSettingsHandler> SettingsHandlers; // List of .ini settings handlers
2522 ImChunkStream<ImGuiWindowSettings> SettingsWindows; // ImGuiWindow .ini settings entries
2523 ImChunkStream<ImGuiTableSettings> SettingsTables; // ImGuiTable .ini settings entries
2524
2525 // Hooks
2526 ImVector<ImGuiContextHook> Hooks; // Hooks for extensions (e.g. test engine)
2527 ImGuiID HookIdNext; // Next available HookId
2529
2530 // Localization
2532
2533 // Capture/Logging
2534 bool LogEnabled; // Currently capturing
2536 ImGuiLogFlags LogFlags; // Capture flags/type
2538 ImFileHandle LogFile; // If != NULL log to stdout/ file
2539 ImGuiTextBuffer LogBuffer; // Accumulation buffer when log to clipboard. This is pointer so our GImGui static constructor doesn't call heap allocators.
2540 const char* LogNextPrefix; // See comment in LogSetNextTextDecoration(): doesn't copy underlying data, use carefully!
2541 const char* LogNextSuffix;
2545 int LogDepthToExpandDefault; // Default/stored value for LogDepthMaxExpand if not specified in the LogXXX function call.
2546
2547 // Error Handling
2548 ImGuiErrorCallback ErrorCallback; // = NULL. May be exposed in public API eventually.
2549 void* ErrorCallbackUserData; // = NULL
2552 int ErrorCountCurrentFrame; // [Internal] Number of errors submitted this frame.
2555
2556 // Debug Tools
2557 // (some of the highly frequently used data are interleaved in other structures above: DebugBreakXXX fields, DebugHookIdInfo, DebugLocateId etc.)
2558 int DebugDrawIdConflictsCount; // Locked count (preserved when holding Ctrl)
2565 ImU8 DebugLocateFrames; // For DebugLocateItemOnHover(). This is used together with DebugLocateId which is in a hot/cached spot above.
2566 bool DebugBreakInLocateId; // Debug break in ItemAdd() call for g.DebugLocateId.
2568 ImS8 DebugBeginReturnValueCullDepth; // Cycle between 0..9 then wrap around.
2569 bool DebugItemPickerActive; // Item picker is active (started with DebugStartItemPicker())
2571 ImGuiID DebugItemPickerBreakId; // Will call IM_DEBUG_BREAK() when encountering this ID
2578#if defined(IMGUI_DEBUG_HIGHLIGHT_ALL_ID_CONFLICTS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS)
2579 ImGuiStorage DebugDrawIdConflictsAliveCount;
2580 ImGuiStorage DebugDrawIdConflictsHighlightSet;
2581#endif
2582
2583 // Misc
2584 float FramerateSecPerFrame[60]; // Calculate estimate of framerate for user over the last 60 frames..
2588 int WantCaptureMouseNextFrame; // Explicit capture override via SetNextFrameWantCaptureMouse()/SetNextFrameWantCaptureKeyboard(). Default to -1.
2590 int WantTextInputNextFrame; // Copied in EndFrame() from g.PlatformImeData.WantTextInput. Needs to be set for some backends (SDL3) to emit character inputs.
2591 ImVector<char> TempBuffer; // Temporary text buffer
2593
2594 ImGuiContext(ImFontAtlas* shared_font_atlas);
2595 ~ImGuiContext();
2596};
2597
2598//-----------------------------------------------------------------------------
2599// [SECTION] ImGuiWindowTempData, ImGuiWindow
2600//-----------------------------------------------------------------------------
2601
2602#define IMGUI_WINDOW_HARD_MIN_SIZE 4.0f
2603
2604// Transient per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the DC variable name in ImGuiWindow.
2605// (That's theory, in practice the delimitation between ImGuiWindow and ImGuiWindowTempData is quite tenuous and could be reconsidered..)
2606// (This doesn't need a constructor because we zero-clear it as part of ImGuiWindow and all frame-temporary data are setup on Begin)
2608{
2609 // Layout
2610 ImVec2 CursorPos; // Current emitting position, in absolute coordinates.
2612 ImVec2 CursorStartPos; // Initial position after Begin(), generally ~ window position + WindowPadding.
2613 ImVec2 CursorMaxPos; // Used to implicitly calculate ContentSize at the beginning of next frame, for scrolling range and auto-resize. Always growing during the frame.
2614 ImVec2 IdealMaxPos; // Used to implicitly calculate ContentSizeIdeal at the beginning of next frame, for auto-resize only. Always growing during the frame.
2617 float CurrLineTextBaseOffset; // Baseline offset (0.0f by default on a new line, generally == style.FramePadding.y when a framed item has been added).
2621 ImVec1 Indent; // Indentation / start position from left of window (increased by TreePush/TreePop, etc.)
2622 ImVec1 ColumnsOffset; // Offset to the current column (if ColumnsCurrent > 0). FIXME: This and the above should be a stack to allow use cases like Tree->Column->Tree. Need revamp columns API.
2624 ImVec2 CursorStartPosLossyness;// Record the loss of precision of CursorStartPos due to really large scrolling amount. This is used by clipper to compensate and fix the most common use case of large scroll area.
2625
2626 // Keyboard/Gamepad navigation
2627 ImGuiNavLayer NavLayerCurrent; // Current layer, 0..31 (we currently only use 0..1)
2628 short NavLayersActiveMask; // Which layers have been written to (result from previous frame)
2629 short NavLayersActiveMaskNext;// Which layers have been written to (accumulator for current frame)
2630 bool NavIsScrollPushableX; // Set when current work location may be scrolled horizontally when moving left / right. This is generally always true UNLESS within a column.
2632 bool NavWindowHasScrollY; // Set per window when scrolling can be used (== ScrollMax.y > 0.0f)
2633
2634 // Miscellaneous
2635 bool MenuBarAppending; // FIXME: Remove this
2636 ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs.
2637 ImGuiMenuColumns MenuColumns; // Simplified columns storage for menu items measurement
2638 int TreeDepth; // Current tree depth.
2639 ImU32 TreeHasStackDataDepthMask; // Store whether given depth has ImGuiTreeNodeStackData data. Could be turned into a ImU64 if necessary.
2640 ImU32 TreeRecordsClippedNodesY2Mask; // Store whether we should keep recording Y2. Cleared when passing clip max. Equivalent TreeHasStackDataDepthMask value should always be set.
2642 ImGuiStorage* StateStorage; // Current persistent per-window storage (store e.g. tree node open/close state)
2643 ImGuiOldColumns* CurrentColumns; // Current columns set
2644 int CurrentTableIdx; // Current table index (into g.Tables)
2646 ImGuiLayoutType ParentLayoutType; // Layout type of parent window at the time of Begin()
2650
2651 // Local parameters stacks
2652 // We store the current settings outside of the vectors to increase memory locality (reduce cache misses). The vectors are rarely modified. Also it allows us to not heap allocate for short-lived windows which are not using those settings.
2653 float ItemWidth; // Current item width (>0.0: width in pixels, <0.0: align xx pixels to the right of window).
2655 float TextWrapPos; // Current text wrap pos.
2656 ImVector<float> ItemWidthStack; // Store item widths to restore (attention: .back() is not == ItemWidth)
2657 ImVector<float> TextWrapPosStack; // Store text wrap pos to restore (attention: .back() is not == TextWrapPos)
2658};
2659
2660// Storage for one window
2662{
2663 ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent).
2664 char* Name; // Window name, owned by the window.
2665 ImGuiID ID; // == ImHashStr(Name)
2666 ImGuiWindowFlags Flags; // See enum ImGuiWindowFlags_
2667 ImGuiChildFlags ChildFlags; // Set when window is a child window. See enum ImGuiChildFlags_
2668 ImGuiViewportP* Viewport; // Always set in Begin(). Inactive windows may have a NULL value here if their viewport was discarded.
2669 ImVec2 Pos; // Position (always rounded-up to nearest pixel)
2670 ImVec2 Size; // Current size (==SizeFull or collapsed title bar size)
2671 ImVec2 SizeFull; // Size when non collapsed
2672 ImVec2 ContentSize; // Size of contents/scrollable client area (calculated from the extents reach of the cursor) from previous frame. Does not include window decoration or window padding.
2674 ImVec2 ContentSizeExplicit; // Size of contents/scrollable client area explicitly request by the user via SetNextWindowContentSize().
2675 ImVec2 WindowPadding; // Window padding at the time of Begin().
2676 float WindowRounding; // Window rounding at the time of Begin(). May be clamped lower to avoid rendering artifacts with title bar, menu bar etc.
2677 float WindowBorderSize; // Window border size at the time of Begin().
2678 float TitleBarHeight, MenuBarHeight; // Note that those used to be function before 2024/05/28. If you have old code calling TitleBarHeight() you can change it to TitleBarHeight.
2679 float DecoOuterSizeX1, DecoOuterSizeY1; // Left/Up offsets. Sum of non-scrolling outer decorations (X1 generally == 0.0f. Y1 generally = TitleBarHeight + MenuBarHeight). Locked during Begin().
2680 float DecoOuterSizeX2, DecoOuterSizeY2; // Right/Down offsets (X2 generally == ScrollbarSize.x, Y2 == ScrollbarSizes.y).
2681 float DecoInnerSizeX1, DecoInnerSizeY1; // Applied AFTER/OVER InnerRect. Specialized for Tables as they use specialized form of clipping and frozen rows/columns are inside InnerRect (and not part of regular decoration sizes).
2682 int NameBufLen; // Size of buffer storing Name. May be larger than strlen(Name)!
2683 ImGuiID MoveId; // == window->GetID("#MOVE")
2684 ImGuiID ChildId; // ID of corresponding item in parent window (for navigation to return from child window to parent window)
2685 ImGuiID PopupId; // ID in the popup stack when this window is used as a popup/menu (because we use generic Name/ID for recycling)
2688 ImVec2 ScrollTarget; // target scroll position. stored as cursor position with scrolling canceled out, so the highest point is always 0.0f. (FLT_MAX for no change)
2689 ImVec2 ScrollTargetCenterRatio; // 0.0f = scroll so that target position is at top, 0.5f = scroll so that target position is centered
2690 ImVec2 ScrollTargetEdgeSnapDist; // 0.0f = no snapping, >0.0f snapping threshold
2691 ImVec2 ScrollbarSizes; // Size taken by each scrollbars on their smaller axis. Pay attention! ScrollbarSizes.x == width of the vertical scrollbar, ScrollbarSizes.y = height of the horizontal scrollbar.
2692 bool ScrollbarX, ScrollbarY; // Are scrollbars visible?
2693 bool ScrollbarXStabilizeEnabled; // Was ScrollbarX previously auto-stabilized?
2694 ImU8 ScrollbarXStabilizeToggledHistory; // Used to stabilize scrollbar visibility in case of feedback loops
2695 bool Active; // Set to true on Begin(), unless Collapsed
2697 bool WriteAccessed; // Set to true when any widget access the current window
2698 bool Collapsed; // Set when collapsing window to become only title-bar
2700 bool SkipItems; // Set when items can safely be all clipped (e.g. window not visible or collapsed)
2701 bool SkipRefresh; // [EXPERIMENTAL] Reuse previous frame drawn contents, Begin() returns false.
2702 bool Appearing; // Set during the frame where the window is appearing (or re-appearing)
2703 bool Hidden; // Do not display (== HiddenFrames*** > 0)
2704 bool IsFallbackWindow; // Set on the "Debug##Default" window.
2705 bool IsExplicitChild; // Set when passed _ChildWindow, left to false by BeginDocked()
2706 bool HasCloseButton; // Set when the window has a close button (p_open != NULL)
2707 signed char ResizeBorderHovered; // Current border being hovered for resize (-1: none, otherwise 0-3)
2708 signed char ResizeBorderHeld; // Current border being held for resize (-1: none, otherwise 0-3)
2709 short BeginCount; // Number of Begin() during the current frame (generally 0 or 1, 1+ if appending via multiple Begin/End pairs)
2710 short BeginCountPreviousFrame; // Number of Begin() during the previous frame
2711 short BeginOrderWithinParent; // Begin() order within immediate parent window, if we are a child window. Otherwise 0.
2712 short BeginOrderWithinContext; // Begin() order within entire imgui context. This is mostly used for debugging submission order related issues.
2713 short FocusOrder; // Order within WindowsFocusOrder[], altered when windows are focused.
2717 ImS8 HiddenFramesCanSkipItems; // Hide the window for N frames
2718 ImS8 HiddenFramesCannotSkipItems; // Hide the window for N frames while allowing items to be submitted so we can measure their size
2719 ImS8 HiddenFramesForRenderOnly; // Hide the window until frame N at Render() time only
2720 ImS8 DisableInputsFrames; // Disable window interactions for N frames
2721 ImGuiWindowBgClickFlags BgClickFlags : 8; // Configure behavior of click+dragging on window bg/void or over items. Default sets by io.ConfigWindowsMoveFromTitleBarOnly. If you use this please report in #3379.
2722 ImGuiCond SetWindowPosAllowFlags : 8; // store acceptable condition flags for SetNextWindowPos() use.
2723 ImGuiCond SetWindowSizeAllowFlags : 8; // store acceptable condition flags for SetNextWindowSize() use.
2724 ImGuiCond SetWindowCollapsedAllowFlags : 8; // store acceptable condition flags for SetNextWindowCollapsed() use.
2725 ImVec2 SetWindowPosVal; // store window position when using a non-zero Pivot (position set needs to be processed when we know the window size)
2726 ImVec2 SetWindowPosPivot; // store window pivot for positioning. ImVec2(0, 0) when positioning from top-left corner; ImVec2(0.5f, 0.5f) for centering; ImVec2(1, 1) for bottom right.
2727
2728 ImVector<ImGuiID> IDStack; // ID stack. ID are hashes seeded with the value at the top of the stack. (In theory this should be in the TempData structure)
2729 ImGuiWindowTempData DC; // Temporary per-window data, reset at the beginning of the frame. This used to be called ImGuiDrawContext, hence the "DC" variable name.
2730
2731 // The best way to understand what those rectangles are is to use the 'Metrics->Tools->Show Windows Rectangles' viewer.
2732 // The main 'OuterRect', omitted as a field, is window->Rect().
2733 ImRect OuterRectClipped; // == Window->Rect() just after setup in Begin(). == window->Rect() for root window.
2734 ImRect InnerRect; // Inner rectangle (omit title bar, menu bar, scroll bar)
2735 ImRect InnerClipRect; // == InnerRect shrunk by WindowPadding*0.5f on each side, clipped within viewport or parent clip rect.
2736 ImRect WorkRect; // Initially covers the whole scrolling region. Reduced by containers e.g columns/tables when active. Shrunk by WindowPadding*1.0f on each side. This is meant to replace ContentRegionRect over time (from 1.71+ onward).
2737 ImRect ParentWorkRect; // Backup of WorkRect before entering a container such as columns/tables. Used by e.g. SpanAllColumns functions to easily access. Stacked containers are responsible for maintaining this. // FIXME-WORKRECT: Could be a stack?
2738 ImRect ClipRect; // Current clipping/scissoring rectangle, evolve as we are using PushClipRect(), etc. == DrawList->clip_rect_stack.back().
2739 ImRect ContentRegionRect; // FIXME: This is currently confusing/misleading. It is essentially WorkRect but not handling of scrolling. We currently rely on it as right/bottom aligned sizing operation need some size to rely on.
2740 ImVec2ih HitTestHoleSize; // Define an optional rectangular hole where mouse will pass-through the window.
2742
2743 int LastFrameActive; // Last frame number the window was Active.
2744 float LastTimeActive; // Last timestamp the window was Active (using float as we don't need high precision there)
2747 float FontWindowScale; // User scale multiplier per-window, via SetWindowFontScale()
2749 float FontRefSize; // This is a copy of window->CalcFontSize() at the time of Begin(), trying to phase out CalcFontSize() especially as it may be called on non-current window.
2750 int SettingsOffset; // Offset into SettingsWindows[] (offsets are always valid as we only grow the array from the back)
2751
2752 ImDrawList* DrawList; // == &DrawListInst (for backward compatibility reason with code using imgui_internal.h we keep this a pointer)
2754 ImGuiWindow* ParentWindow; // If we are a child _or_ popup _or_ docked window, this is pointing to our parent. Otherwise NULL.
2756 ImGuiWindow* RootWindow; // Point to ourself or first ancestor that is not a child window. Doesn't cross through popups/dock nodes.
2757 ImGuiWindow* RootWindowPopupTree; // Point to ourself or first ancestor that is not a child window. Cross through popups parent<>child.
2758 ImGuiWindow* RootWindowForTitleBarHighlight; // Point to ourself or first ancestor which will display TitleBgActive color when this window is active.
2759 ImGuiWindow* RootWindowForNav; // Point to ourself or first ancestor which doesn't have the NavFlattened flag.
2760 ImGuiWindow* ParentWindowForFocusRoute; // Set to manual link a window to its logical parent so that Shortcut() chain are honored (e.g. Tool linked to Document)
2761
2762 ImGuiWindow* NavLastChildNavWindow; // When going to the menu bar, we remember the child window we came from. (This could probably be made implicit if we kept g.Windows sorted by last focused including child window.)
2763 ImGuiID NavLastIds[ImGuiNavLayer_COUNT]; // Last known NavId for this window, per layer (0/1)
2764 ImRect NavRectRel[ImGuiNavLayer_COUNT]; // Reference rectangle, in window relative space
2765 ImVec2 NavPreferredScoringPosRel[ImGuiNavLayer_COUNT]; // Preferred X/Y position updated when moving on a given axis, reset to FLT_MAX.
2766 ImGuiID NavRootFocusScopeId; // Focus Scope ID at the time of Begin()
2767
2768 int MemoryDrawListIdxCapacity; // Backup of last idx/vtx count, so when waking up the window we can preallocate and avoid iterative alloc/copy
2770 bool MemoryCompacted; // Set when window extraneous data have been garbage collected
2771
2772public:
2773 ImGuiWindow(ImGuiContext* context, const char* name);
2774 ~ImGuiWindow();
2775
2776 ImGuiID GetID(const char* str, const char* str_end = NULL);
2777 ImGuiID GetID(const void* ptr);
2778 ImGuiID GetID(int n);
2779 ImGuiID GetIDFromPos(const ImVec2& p_abs);
2780 ImGuiID GetIDFromRectangle(const ImRect& r_abs);
2781
2782 // We don't use g.FontSize because the window may be != g.CurrentWindow.
2783 ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x + Size.x, Pos.y + Size.y); }
2785 ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight; return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight); }
2786
2787 // [OBSOLETE] ImGuiWindow::CalcFontSize() was removed in 1.92.0 because error-prone/misleading. You can use window->FontRefSize for a copy of g.FontSize at the time of the last Begin() call for this window.
2788 //float CalcFontSize() const { ImGuiContext& g = *Ctx; return g.FontSizeBase * FontWindowScale * FontWindowScaleParents;
2789};
2790
2791//-----------------------------------------------------------------------------
2792// [SECTION] Tab bar, Tab item support
2793//-----------------------------------------------------------------------------
2794
2795// Extend ImGuiTabBarFlags_
2797{
2798 ImGuiTabBarFlags_DockNode = 1 << 20, // Part of a dock node [we don't use this in the master branch but it facilitate branch syncing to keep this around]
2800 ImGuiTabBarFlags_SaveSettings = 1 << 22, // FIXME: Settings are handled by the docking system, this only request the tab bar to mark settings dirty when reordering tabs
2801};
2802
2803// Extend ImGuiTabItemFlags_
2805{
2807 ImGuiTabItemFlags_NoCloseButton = 1 << 20, // Track whether p_open was set or not (we'll need this info on the next frame to recompute ContentWidth during layout)
2808 ImGuiTabItemFlags_Button = 1 << 21, // Used by TabItemButton, change the tab item behavior to mimic a button
2809 ImGuiTabItemFlags_Invisible = 1 << 22, // To reserve space e.g. with ImGuiTabItemFlags_Leading
2810 //ImGuiTabItemFlags_Unsorted = 1 << 23, // [Docking] Trailing tabs with the _Unsorted flag will be sorted based on the DockOrder of their Window.
2811};
2812
2813// Storage for one active tab item (sizeof() 40 bytes)
2815{
2819 int LastFrameSelected; // This allows us to infer an ordered list of the last activated tabs with little maintenance
2820 float Offset; // Position relative to beginning of tab bar
2821 float Width; // Width currently displayed
2822 float ContentWidth; // Width of label + padding, stored during BeginTabItem() call (misnamed as "Content" would normally imply width of label only)
2823 float RequestedWidth; // Width optionally requested by caller, -1.0f is unused
2824 ImS32 NameOffset; // When Window==NULL, offset to name within parent ImGuiTabBar::TabsNames
2825 ImS16 BeginOrder; // BeginTabItem() order, used to re-order tabs after toggling ImGuiTabBarFlags_Reorderable
2826 ImS16 IndexDuringLayout; // Index only used during TabBarLayout(). Tabs gets reordered so 'Tabs[n].IndexDuringLayout == n' but may mismatch during additions.
2827 bool WantClose; // Marked as closed by SetTabItemClosed()
2828
2829 ImGuiTabItem() { memset((void*)this, 0, sizeof(*this)); LastFrameVisible = LastFrameSelected = -1; RequestedWidth = -1.0f; NameOffset = -1; BeginOrder = IndexDuringLayout = -1; }
2830};
2831
2832// Storage for a tab bar (sizeof() 160 bytes)
2834{
2838 ImGuiID ID; // Zero for tab-bars used by docking
2839 ImGuiID SelectedTabId; // Selected tab/window
2840 ImGuiID NextSelectedTabId; // Next selected tab/window. Will also trigger a scrolling animation
2842 ImGuiID VisibleTabId; // Can occasionally be != SelectedTabId (e.g. when previewing contents for Ctrl+Tab preview)
2846 float BarRectPrevWidth; // Backup of previous width. When width change we enforce keep horizontal scroll on focused tab.
2848 float PrevTabsContentsHeight; // Record the height of contents submitted below the tab bar
2849 float WidthAllTabs; // Actual width of all tabs (locked during layout)
2850 float WidthAllTabsIdeal; // Ideal width if all tabs were visible and not clipped
2864 bool TabsAddedNew; // Set to true when a new tab item or button has been added to the tab bar during last frame
2866 ImS16 TabsActiveCount; // Number of tabs submitted this frame.
2867 ImS16 LastTabItemIdx; // Index of last BeginTabItem() tab for use by EndTabItem()
2869 ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar()
2871 ImGuiTextBuffer TabsNames; // For non-docking tab bar we re-append names in a contiguous buffer.
2872
2873 ImGuiTabBar();
2874};
2875
2876//-----------------------------------------------------------------------------
2877// [SECTION] Table support
2878//-----------------------------------------------------------------------------
2879
2880#define IM_COL32_DISABLE IM_COL32(0,0,0,1) // Special sentinel code which cannot be used as a regular color.
2881#define IMGUI_TABLE_MAX_COLUMNS 512 // Arbitrary "safety" maximum, may be lifted in the future if needed. Must fit in ImGuiTableColumnIdx/ImGuiTableDrawChannelIdx.
2882
2883// [Internal] sizeof() ~ 112
2884// We use the terminology "Enabled" to refer to a column that is not Hidden by user/api.
2885// We use the terminology "Clipped" to refer to a column that is out of sight because of scrolling/clipping.
2886// This is in contrast with some user-facing api such as IsItemVisible() / IsRectVisible() which use "Visible" to mean "not clipped".
2888{
2889 ImGuiTableColumnFlags Flags; // Flags after some patching (not directly same as provided by user). See ImGuiTableColumnFlags_
2890 float WidthGiven; // Final/actual width visible == (MaxX - MinX), locked in TableUpdateLayout(). May be > WidthRequest to honor minimum width, may be < WidthRequest to honor shrinking columns down in tight space.
2891 float MinX; // Absolute positions
2892 float MaxX;
2893 float WidthRequest; // Master width absolute value when !(Flags & _WidthStretch). When Stretch this is derived every frame from StretchWeight in TableUpdateLayout()
2894 float WidthAuto; // Automatic width
2895 float WidthMax; // Maximum width (FIXME: overwritten by each instance)
2896 float StretchWeight; // Master width weight when (Flags & _WidthStretch). Often around ~1.0f initially.
2897 float InitStretchWeightOrWidth; // Value passed to TableSetupColumn(). For Width it is a content width (_without padding_).
2898 ImRect ClipRect; // Clipping rectangle for the column
2899 ImGuiID UserID; // Optional, value passed to TableSetupColumn()
2900 float WorkMinX; // Contents region min ~(MinX + CellPaddingX + CellSpacingX1) == cursor start position when entering column
2901 float WorkMaxX; // Contents region max ~(MaxX - CellPaddingX - CellSpacingX2)
2902 float ItemWidth; // Current item width for the column, preserved across rows
2903 float ContentMaxXFrozen; // Contents maximum position for frozen rows (apart from headers), from which we can infer content width.
2905 float ContentMaxXHeadersUsed; // Contents maximum position for headers rows (regardless of freezing). TableHeader() automatically softclip itself + report ideal desired size, to avoid creating extraneous draw calls
2907 ImS16 NameOffset; // Offset into parent ColumnsNames[]
2908 ImGuiTableColumnIdx DisplayOrder; // Index within Table's IndexToDisplayOrder[] (column may be reordered by users)
2909 ImGuiTableColumnIdx IndexWithinEnabledSet; // Index within enabled/visible set (<= IndexToDisplayOrder)
2910 ImGuiTableColumnIdx PrevEnabledColumn; // Index of prev enabled/visible column within Columns[], -1 if first enabled/visible column
2911 ImGuiTableColumnIdx NextEnabledColumn; // Index of next enabled/visible column within Columns[], -1 if last enabled/visible column
2912 ImGuiTableColumnIdx SortOrder; // Index of this column within sort specs, -1 if not sorting on this column, 0 for single-sort, may be >0 on multi-sort
2913 ImGuiTableDrawChannelIdx DrawChannelCurrent; // Index within DrawSplitter.Channels[]
2914 ImGuiTableDrawChannelIdx DrawChannelFrozen; // Draw channels for frozen rows (often headers)
2915 ImGuiTableDrawChannelIdx DrawChannelUnfrozen; // Draw channels for unfrozen rows
2916 bool IsEnabled; // IsUserEnabled && (Flags & ImGuiTableColumnFlags_Disabled) == 0
2917 bool IsUserEnabled; // Is the column not marked Hidden by the user? (unrelated to being off view, e.g. clipped by scrolling).
2919 bool IsVisibleX; // Is actually in view (e.g. overlapping the host window clipping rectangle, not scrolled).
2921 bool IsRequestOutput; // Return value for TableSetColumnIndex() / TableNextColumn(): whether we request user to output contents or not.
2922 bool IsSkipItems; // Do we want item submissions to this column to be completely ignored (no layout will happen).
2924 ImS8 NavLayerCurrent; // ImGuiNavLayer in 1 byte
2925 ImU8 AutoFitQueue; // Queue of 8 values for the next 8 frames to request auto-fit
2926 ImU8 CannotSkipItemsQueue; // Queue of 8 values for the next 8 frames to disable Clipped/SkipItem
2927 ImU8 SortDirection : 2; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending
2928 ImU8 SortDirectionsAvailCount : 2; // Number of available sort directions (0 to 3)
2929 ImU8 SortDirectionsAvailMask : 4; // Mask of available sort directions (1-bit each)
2930 ImU8 SortDirectionsAvailList; // Ordered list of available sort directions (2-bits each, total 8-bits)
2931
2933 {
2934 memset((void*)this, 0, sizeof(*this));
2935 StretchWeight = WidthRequest = -1.0f;
2936 NameOffset = -1;
2939 SortOrder = -1;
2942 }
2943};
2944
2945// Transient cell data stored per row.
2946// sizeof() ~ 6 bytes
2948{
2949 ImU32 BgColor; // Actual color
2950 ImGuiTableColumnIdx Column; // Column number
2951};
2952
2953// Parameters for TableAngledHeadersRowEx()
2954// This may end up being refactored for more general purpose.
2955// sizeof() ~ 12 bytes
2963
2964// Per-instance data that needs preserving across frames (seemingly most others do not need to be preserved aside from debug needs. Does that means they could be moved to ImGuiTableTempData?)
2965// sizeof() ~ 24 bytes
2967{
2969 float LastOuterHeight; // Outer height from last frame
2970 float LastTopHeadersRowHeight; // Height of first consecutive header rows from last frame (FIXME: this is used assuming consecutive headers are in same frozen set)
2971 float LastFrozenHeight; // Height of frozen section from last frame
2972 int HoveredRowLast; // Index of row which was hovered last frame.
2973 int HoveredRowNext; // Index of row hovered this frame, set after encountering it.
2974
2976};
2977
2978// sizeof() ~ 592 bytes + heap allocs described in TableBeginInitMemory()
2980{
2983 void* RawData; // Single allocation to hold Columns[], DisplayOrderToIndex[], and RowCellData[]
2984 ImGuiTableTempData* TempData; // Transient data while table is active. Point within g.CurrentTableStack[]
2985 ImSpan<ImGuiTableColumn> Columns; // Point within RawData[]
2986 ImSpan<ImGuiTableColumnIdx> DisplayOrderToIndex; // Point within RawData[]. Store display order of columns (when not reordered, the values are 0...Count-1)
2987 ImSpan<ImGuiTableCellData> RowCellData; // Point within RawData[]. Store cells background requests for current row.
2988 ImBitArrayPtr EnabledMaskByDisplayOrder; // Column DisplayOrder -> IsEnabled map
2989 ImBitArrayPtr EnabledMaskByIndex; // Column Index -> IsEnabled map (== not hidden by user/api) in a format adequate for iterating column without touching cold data
2990 ImBitArrayPtr VisibleMaskByIndex; // Column Index -> IsVisibleX|IsVisibleY map (== not hidden by user/api && not hidden by scrolling/cliprect)
2991 ImGuiTableFlags SettingsLoadedFlags; // Which data were loaded from the .ini file (e.g. when order is not altered we won't save order)
2992 int SettingsOffset; // Offset in g.SettingsTables
2994 int ColumnsCount; // Number of columns declared in BeginTable()
2997 ImS16 InstanceCurrent; // Count of BeginTable() calls with same ID in the same frame (generally 0). This is a little bit similar to BeginCount for a window, but multiple tables with the same ID are multiple tables, they are just synced.
2998 ImS16 InstanceInteracted; // Mark which instance (generally 0) of the same ID is being interacted with
3001 float RowMinHeight; // Height submitted to TableNextRow()
3002 float RowCellPaddingY; // Top and bottom padding. Reloaded during row change.
3005 ImGuiTableRowFlags RowFlags : 16; // Current row flags, see ImGuiTableRowFlags_
3007 int RowBgColorCounter; // Counter for alternating background colors (can be fast-forwarded by e.g clipper), not same as CurrentRow because header rows typically don't increase this.
3008 ImU32 RowBgColor[2]; // Background color override for current row.
3016 float CellPaddingX; // Padding from each borders. Locked in BeginTable()/Layout.
3017 float CellSpacingX1; // Spacing between non-bordered cells. Locked in BeginTable()/Layout.
3019 float InnerWidth; // User value passed to BeginTable(), see comments at the top of BeginTable() for details.
3020 float ColumnsGivenWidth; // Sum of current column width
3021 float ColumnsAutoFitWidth; // Sum of ideal column width in order nothing to be clipped, used for auto-fitting and content width submission in outer window
3022 float ColumnsStretchSumWeights; // Sum of weight of all enabled stretching columns
3024 float ResizeLockMinContentsX2; // Lock minimum contents width while resizing down in order to not create feedback loops. But we allow growing the table.
3025 float RefScale; // Reference scale to be able to rescale columns on font/dpi changes.
3026 float AngledHeadersHeight; // Set by TableAngledHeadersRow(), used in TableUpdateLayout()
3027 float AngledHeadersSlope; // Set by TableAngledHeadersRow(), used in TableUpdateLayout()
3028 ImRect OuterRect; // Note: for non-scrolling table, OuterRect.Max.y is often FLT_MAX until EndTable(), unless a height has been specified in BeginTable().
3029 ImRect InnerRect; // InnerRect but without decoration. As with OuterRect, for non-scrolling tables, InnerRect.Max.y is "
3032 ImRect BgClipRect; // We use this to cpu-clip cell background color fill, evolve during the frame as we cross frozen rows boundaries
3033 ImRect Bg0ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG0/1 channel. This tends to be == OuterWindow->ClipRect at BeginTable() because output in BG0/BG1 is cpu-clipped
3034 ImRect Bg2ClipRectForDrawCmd; // Actual ImDrawCmd clip rect for BG2 channel. This tends to be a correct, tight-fit, because output to BG2 are done by widgets relying on regular ClipRect.
3035 ImRect HostClipRect; // This is used to check if we can eventually merge our columns draw calls into the current draw call of the current window.
3036 ImRect HostBackupInnerClipRect; // Backup of InnerWindow->ClipRect during PushTableBackground()/PopTableBackground()
3037 ImGuiWindow* OuterWindow; // Parent window for the table
3038 ImGuiWindow* InnerWindow; // Window holding the table data (== OuterWindow or a child window)
3039 ImGuiTextBuffer ColumnsNames; // Contiguous buffer holding columns names
3040 ImDrawListSplitter* DrawSplitter; // Shortcut to TempData->DrawSplitter while in table. Isolate draw commands per columns to avoid switching clip rect constantly
3042 ImVector<ImGuiTableInstanceData> InstanceDataExtra; // FIXME-OPT: Using a small-vector pattern would be good.
3044 ImVector<ImGuiTableColumnSortSpecs> SortSpecsMulti; // FIXME-OPT: Using a small-vector pattern would be good.
3045 ImGuiTableSortSpecs SortSpecs; // Public facing sorts specs, this is what we return in TableGetSortSpecs()
3047 ImGuiTableColumnIdx ColumnsEnabledCount; // Number of enabled columns (<= ColumnsCount)
3048 ImGuiTableColumnIdx ColumnsEnabledFixedCount; // Number of enabled columns using fixed width (<= ColumnsCount)
3049 ImGuiTableColumnIdx DeclColumnsCount; // Count calls to TableSetupColumn()
3050 ImGuiTableColumnIdx AngledHeadersCount; // Count columns with angled headers
3051 ImGuiTableColumnIdx HoveredColumnBody; // Index of column whose visible region is being hovered. Important: == ColumnsCount when hovering empty region after the right-most column!
3052 ImGuiTableColumnIdx HoveredColumnBorder; // Index of column whose right-border is being hovered (for resizing).
3053 ImGuiTableColumnIdx HighlightColumnHeader; // Index of column which should be highlighted.
3054 ImGuiTableColumnIdx AutoFitSingleColumn; // Index of single column requesting auto-fit.
3055 ImGuiTableColumnIdx ResizedColumn; // Index of column being resized. Reset when InstanceCurrent==0.
3056 ImGuiTableColumnIdx LastResizedColumn; // Index of column being resized from previous frame.
3057 ImGuiTableColumnIdx HeldHeaderColumn; // Index of column header being held.
3058 ImGuiTableColumnIdx LastHeldHeaderColumn; // Index of column header being held from previous frame.
3059 ImGuiTableColumnIdx ReorderColumn; // Index of column being reordered. (not cleared)
3060 ImGuiTableColumnIdx ReorderColumnDstOrder; // Requested display order of column being reordered.
3061 ImGuiTableColumnIdx LeftMostEnabledColumn; // Index of left-most non-hidden column.
3062 ImGuiTableColumnIdx RightMostEnabledColumn; // Index of right-most non-hidden column.
3063 ImGuiTableColumnIdx LeftMostStretchedColumn; // Index of left-most stretched column.
3064 ImGuiTableColumnIdx RightMostStretchedColumn; // Index of right-most stretched column.
3065 ImGuiTableColumnIdx ContextPopupColumn; // Column right-clicked on, of -1 if opening context menu from a neutral/empty spot
3066 ImGuiTableColumnIdx FreezeRowsRequest; // Requested frozen rows count
3067 ImGuiTableColumnIdx FreezeRowsCount; // Actual frozen row count (== FreezeRowsRequest, or == 0 when no scrolling offset)
3068 ImGuiTableColumnIdx FreezeColumnsRequest; // Requested frozen columns count
3069 ImGuiTableColumnIdx FreezeColumnsCount; // Actual frozen columns count (== FreezeColumnsRequest, or == 0 when no scrolling offset)
3070 ImGuiTableColumnIdx RowCellDataCurrent; // Index of current RowCellData[] entry in current row
3071 ImGuiTableDrawChannelIdx DummyDrawChannel; // Redirect non-visible columns here.
3072 ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; // For Selectable() and other widgets drawing across columns after the freezing line. Index within DrawSplitter.Channels[]
3074 ImS8 NavLayer; // ImGuiNavLayer at the time of BeginTable().
3075 bool IsLayoutLocked; // Set by TableUpdateLayout() which is called when beginning the first row.
3076 bool IsInsideRow; // Set when inside TableBeginRow()/TableEndRow().
3079 bool IsUsingHeaders; // Set when the first row had the ImGuiTableRowFlags_Headers flag.
3080 bool IsContextPopupOpen; // Set when default context menu is open (also see: ContextPopupColumn, InstanceInteracted).
3081 bool DisableDefaultContextMenu; // Disable default context menu. You may submit your own using TableBeginContextMenuPopup()/EndPopup()
3083 bool IsSettingsDirty; // Set when table settings have changed and needs to be reported into ImGuiTableSettings data.
3084 bool IsDefaultDisplayOrder; // Set when display order is unchanged from default (DisplayOrder contains 0...Count-1)
3087 bool IsUnfrozenRows; // Set when we got past the frozen row.
3088 bool IsDefaultSizingPolicy; // Set if user didn't explicitly set a sizing policy in BeginTable()
3091 bool HasScrollbarYCurr; // Whether ANY instance of this table had a vertical scrollbar during the current frame.
3092 bool HasScrollbarYPrev; // Whether ANY instance of this table had a vertical scrollbar during the previous.
3094 bool HostSkipItems; // Backup of InnerWindow->SkipItem at the end of BeginTable(), because we will overwrite InnerWindow->SkipItem on a per-column basis
3095
3096 ImGuiTable() { memset((void*)this, 0, sizeof(*this)); LastFrameActive = -1; }
3098};
3099
3100// Transient data that are only needed between BeginTable() and EndTable(), those buffers are shared (1 per level of stacked table).
3101// - Accessing those requires chasing an extra pointer so for very frequently used data we leave them in the main table structure.
3102// - We also leave out of this structure data that tend to be particularly useful for debugging/metrics.
3103// FIXME-TABLE: more transient data could be stored in a stacked ImGuiTableTempData: e.g. SortSpecs.
3104// sizeof() ~ 136 bytes.
3106{
3107 ImGuiID WindowID; // Shortcut to g.Tables[TableIndex]->OuterWindow->ID.
3108 int TableIndex; // Index in g.Tables.Buf[] pool
3109 float LastTimeActive; // Last timestamp this structure was used
3110 float AngledHeadersExtraWidth; // Used in EndTable()
3111 ImVector<ImGuiTableHeaderData> AngledHeadersRequests; // Used in TableAngledHeadersRow()
3112
3113 ImVec2 UserOuterSize; // outer_size.x passed to BeginTable()
3115
3116 ImRect HostBackupWorkRect; // Backup of InnerWindow->WorkRect at the end of BeginTable()
3117 ImRect HostBackupParentWorkRect; // Backup of InnerWindow->ParentWorkRect at the end of BeginTable()
3118 ImVec2 HostBackupPrevLineSize; // Backup of InnerWindow->DC.PrevLineSize at the end of BeginTable()
3119 ImVec2 HostBackupCurrLineSize; // Backup of InnerWindow->DC.CurrLineSize at the end of BeginTable()
3120 ImVec2 HostBackupCursorMaxPos; // Backup of InnerWindow->DC.CursorMaxPos at the end of BeginTable()
3121 ImVec1 HostBackupColumnsOffset; // Backup of OuterWindow->DC.ColumnsOffset at the end of BeginTable()
3122 float HostBackupItemWidth; // Backup of OuterWindow->DC.ItemWidth at the end of BeginTable()
3123 int HostBackupItemWidthStackSize;//Backup of OuterWindow->DC.ItemWidthStack.Size at the end of BeginTable()
3124
3125 ImGuiTableTempData() { memset((void*)this, 0, sizeof(*this)); LastTimeActive = -1.0f; }
3126};
3127
3128// sizeof() ~ 16
3151
3152// This is designed to be stored in a single ImChunkStream (1 header followed by N ImGuiTableColumnSettings, etc.)
3154{
3155 ImGuiID ID; // Set to 0 to invalidate/delete the setting
3156 ImGuiTableFlags SaveFlags; // Indicate data we want to save using the Resizable/Reorderable/Sortable/Hideable flags (could be using its own flags..)
3157 float RefScale; // Reference scale to be able to rescale columns on font/dpi changes.
3159 ImGuiTableColumnIdx ColumnsCountMax; // Maximum number of columns this settings instance can store, we can recycle a settings instance with lower number of columns but not higher
3160 bool WantApply; // Set when loaded from .ini data (to enable merging/loading .ini data into an already running context)
3161
3162 ImGuiTableSettings() { memset((void*)this, 0, sizeof(*this)); }
3164};
3165
3166//-----------------------------------------------------------------------------
3167// [SECTION] ImGui internal API
3168// No guarantee of forward compatibility here!
3169//-----------------------------------------------------------------------------
3170
3171namespace ImGui
3172{
3173 // Windows
3174 // We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
3175 // If this ever crashes because g.CurrentWindow is NULL, it means that either:
3176 // - ImGui::NewFrame() has never been called, which is illegal.
3177 // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
3178 IMGUI_API ImGuiIO& GetIO(ImGuiContext* ctx);
3179 IMGUI_API ImGuiPlatformIO& GetPlatformIO(ImGuiContext* ctx);
3180 inline float GetScale() { ImGuiContext& g = *GImGui; return g.Style._MainScale; } // FIXME-DPI: I don't want to formalize this just yet. Because reasons. Please don't use.
3188 IMGUI_API bool IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, bool popup_hierarchy);
3191 IMGUI_API bool IsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below);
3193 IMGUI_API void SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond = 0);
3195 IMGUI_API void SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond = 0);
3198 inline void SetWindowParentWindowForFocusRoute(ImGuiWindow* window, ImGuiWindow* parent_window) { window->ParentWindowForFocusRoute = parent_window; }
3199 inline ImRect WindowRectAbsToRel(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x - off.x, r.Min.y - off.y, r.Max.x - off.x, r.Max.y - off.y); }
3200 inline ImRect WindowRectRelToAbs(ImGuiWindow* window, const ImRect& r) { ImVec2 off = window->DC.CursorStartPos; return ImRect(r.Min.x + off.x, r.Min.y + off.y, r.Max.x + off.x, r.Max.y + off.y); }
3201 inline ImVec2 WindowPosAbsToRel(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x - off.x, p.y - off.y); }
3202 inline ImVec2 WindowPosRelToAbs(ImGuiWindow* window, const ImVec2& p) { ImVec2 off = window->DC.CursorStartPos; return ImVec2(p.x + off.x, p.y + off.y); }
3203
3204 // Windows: Display Order and Focus Order
3206 IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window, ImGuiViewport* filter_viewport, ImGuiFocusRequestFlags flags);
3213
3214 // Windows: Idle, Refresh Policies [EXPERIMENTAL]
3216
3217 // Fonts, drawing
3218 IMGUI_API void RegisterUserTexture(ImTextureData* tex); // Register external texture. EXPERIMENTAL: DO NOT USE YET.
3222 IMGUI_API void SetCurrentFont(ImFont* font, float font_size_before_scaling, float font_size_after_scaling);
3223 IMGUI_API void UpdateCurrentFontSize(float restore_font_size_after_scaling);
3224 IMGUI_API void SetFontRasterizerDensity(float rasterizer_density);
3225 inline float GetFontRasterizerDensity() { return GImGui->FontRasterizerDensity; }
3226 inline float GetRoundedFontSize(float size) { return IM_ROUND(size); }
3230 inline ImDrawList* GetForegroundDrawList(ImGuiWindow* window) { IM_UNUSED(window); return GetForegroundDrawList(); } // This seemingly unnecessary wrapper simplifies compatibility between the 'master' and 'docking' branches.
3231 IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport); // get background draw list for the given viewport. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
3232 IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport); // get foreground draw list for the given viewport. this draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents.
3233 IMGUI_API void AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector<ImDrawList*>* out_list, ImDrawList* draw_list);
3234
3235 // Init
3236 IMGUI_API void Initialize();
3237 IMGUI_API void Shutdown(); // Since 1.60 this is a _private_ function. You can call DestroyContext() to destroy the context created by CreateContext().
3238
3239 // Context name & generic context hooks
3240 IMGUI_API void SetContextName(ImGuiContext* ctx, const char* name);
3242 IMGUI_API void RemoveContextHook(ImGuiContext* ctx, ImGuiID hook_to_remove);
3244
3245 // NewFrame
3246 IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs);
3248 IMGUI_API void FindHoveredWindowEx(const ImVec2& pos, bool find_first_and_in_any_viewport, ImGuiWindow** out_hovered_window, ImGuiWindow** out_hovered_window_under_moving_window);
3253
3254 // Viewports
3255 inline ImGuiViewport* GetWindowViewport() { return GetMainViewport(); } // For code consistency. This is public API in docking branch.
3256 IMGUI_API void ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale);
3258
3259 // Settings
3264 IMGUI_API void RemoveSettingsHandler(const char* type_name);
3265 IMGUI_API ImGuiSettingsHandler* FindSettingsHandler(const char* type_name);
3266
3267 // Settings - Windows
3271 IMGUI_API void ClearWindowSettings(const char* name);
3272
3273 // Localization
3274 IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry* entries, int count);
3275 inline const char* LocalizeGetMsg(ImGuiLocKey key) { ImGuiContext& g = *GImGui; const char* msg = g.LocalizationTable[key]; return msg ? msg : "*Missing Text*"; }
3276
3277 // Scrolling
3278 IMGUI_API void SetScrollX(ImGuiWindow* window, float scroll_x);
3279 IMGUI_API void SetScrollY(ImGuiWindow* window, float scroll_y);
3280 IMGUI_API void SetScrollFromPosX(ImGuiWindow* window, float local_x, float center_x_ratio);
3281 IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio);
3282
3283 // Early work-in-progress API (ScrollToItem() will become public)
3284 IMGUI_API void ScrollToItem(ImGuiScrollFlags flags = 0);
3285 IMGUI_API void ScrollToRect(ImGuiWindow* window, const ImRect& rect, ImGuiScrollFlags flags = 0);
3287//#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
3289//#endif
3290
3291 // Basic Accessors
3293 inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; }
3294 inline ImGuiID GetFocusID() { ImGuiContext& g = *GImGui; return g.NavId; }
3297 IMGUI_API void ClearActiveID();
3300 IMGUI_API void KeepAliveID(ImGuiID id);
3301 IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function.
3302 IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes)
3303 IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed);
3305
3306 // Basic Helpers for widget code
3307 IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f);
3308 inline void ItemSize(const ImRect& bb, float text_baseline_y = -1.0f) { ItemSize(bb.GetSize(), text_baseline_y); } // FIXME: This is a misleading API since we expect CursorPos to be bb.Min.
3309 IMGUI_API bool ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb = NULL, ImGuiItemFlags extra_flags = 0);
3310 IMGUI_API bool ItemHoverable(const ImRect& bb, ImGuiID id, ImGuiItemFlags item_flags);
3312 IMGUI_API bool IsClippedEx(const ImRect& bb, ImGuiID id);
3313 IMGUI_API void SetLastItemData(ImGuiID item_id, ImGuiItemFlags item_flags, ImGuiItemStatusFlags status_flags, const ImRect& item_rect);
3314 IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h);
3315 IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x);
3316 IMGUI_API void PushMultiItemsWidths(int components, float width_full);
3317 IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess, float width_min);
3318 IMGUI_API void CalcClipRectVisibleItemsY(const ImRect& clip_rect, const ImVec2& pos, float items_height, int* out_visible_start, int* out_visible_end);
3319
3320 // Parameter stacks (shared)
3324
3325 // Logging/Capture
3326 IMGUI_API void LogBegin(ImGuiLogFlags flags, int auto_open_depth); // -> BeginCapture() when we design v2 api, for now stay under the radar by using the old name.
3327 IMGUI_API void LogToBuffer(int auto_open_depth = -1); // Start logging/capturing to internal buffer
3328 IMGUI_API void LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end = NULL);
3329 IMGUI_API void LogSetNextTextDecoration(const char* prefix, const char* suffix);
3330
3331 // Childs
3332 IMGUI_API bool BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags);
3334
3335 // Popups, Modals
3336 IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_window_flags);
3337 IMGUI_API bool BeginPopupMenuEx(ImGuiID id, const char* label, ImGuiWindowFlags extra_window_flags);
3339 IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup);
3340 IMGUI_API void ClosePopupsOverWindow(ImGuiWindow* ref_window, bool restore_focus_to_window_under_popup);
3342 IMGUI_API bool IsPopupOpen(ImGuiID id, ImGuiPopupFlags popup_flags);
3348 IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy);
3352
3353 // Tooltips
3354 IMGUI_API bool BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags);
3356
3357 // Menus
3358 IMGUI_API bool BeginViewportSideBar(const char* name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags);
3359 IMGUI_API bool BeginMenuEx(const char* label, const char* icon, bool enabled = true);
3360 IMGUI_API bool MenuItemEx(const char* label, const char* icon, const char* shortcut = NULL, bool selected = false, bool enabled = true);
3361
3362 // Combos
3363 IMGUI_API bool BeginComboPopup(ImGuiID popup_id, const ImRect& bb, ImGuiComboFlags flags);
3366
3367 // Keyboard/Gamepad Navigation
3368 IMGUI_API void NavInitWindow(ImGuiWindow* window, bool force_reinit);
3371 IMGUI_API void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags);
3372 IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags);
3383 IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect& rect_rel);
3384 IMGUI_API void SetNavFocusScope(ImGuiID focus_scope_id);
3385
3386 // Focus/Activation
3387 // This should be part of a larger set of API: FocusItem(offset = -1), FocusItemByID(id), ActivateItem(offset = -1), ActivateItemByID(id) etc. which are
3388 // much harder to design and implement than expected. I have a couple of private branches on this matter but it's not simple. For now implementing the easy ones.
3389 IMGUI_API void FocusItem(); // Focus last item (no selection/activation).
3390 IMGUI_API void ActivateItemByID(ImGuiID id); // Activate an item by ID (button, checkbox, tree node etc.). Activation is queued and processed on the next frame when the item is encountered again. Was called 'ActivateItem()' before 1.89.7.
3391
3392 // Inputs
3393 // FIXME: Eventually we should aim to move e.g. IsActiveIdUsingKey() into IsKeyXXX functions.
3394 inline bool IsNamedKey(ImGuiKey key) { return key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END; }
3395 inline bool IsNamedKeyOrMod(ImGuiKey key) { return (key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END) || key == ImGuiMod_Ctrl || key == ImGuiMod_Shift || key == ImGuiMod_Alt || key == ImGuiMod_Super; }
3397 inline bool IsKeyboardKey(ImGuiKey key) { return key >= ImGuiKey_Keyboard_BEGIN && key < ImGuiKey_Keyboard_END; }
3398 inline bool IsGamepadKey(ImGuiKey key) { return key >= ImGuiKey_Gamepad_BEGIN && key < ImGuiKey_Gamepad_END; }
3399 inline bool IsMouseKey(ImGuiKey key) { return key >= ImGuiKey_Mouse_BEGIN && key < ImGuiKey_Mouse_END; }
3400 inline bool IsAliasKey(ImGuiKey key) { return key >= ImGuiKey_Aliases_BEGIN && key < ImGuiKey_Aliases_END; }
3401 inline bool IsLRModKey(ImGuiKey key) { return key >= ImGuiKey_LeftCtrl && key <= ImGuiKey_RightSuper; }
3404 {
3405 if (key == ImGuiMod_Ctrl) return ImGuiKey_ReservedForModCtrl;
3407 if (key == ImGuiMod_Alt) return ImGuiKey_ReservedForModAlt;
3409 return key;
3410 }
3411
3413 inline ImGuiKeyData* GetKeyData(ImGuiKey key) { ImGuiContext& g = *GImGui; return GetKeyData(&g, key); }
3414 IMGUI_API const char* GetKeyChordName(ImGuiKeyChord key_chord);
3415 inline ImGuiKey MouseButtonToKey(ImGuiMouseButton button) { IM_ASSERT(button >= 0 && button < ImGuiMouseButton_COUNT); return (ImGuiKey)(ImGuiKey_MouseLeft + button); }
3416 IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold = -1.0f);
3417 IMGUI_API ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down);
3419 IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate);
3420 IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float* repeat_delay, float* repeat_rate);
3421 IMGUI_API void TeleportMousePos(const ImVec2& pos);
3423 inline bool IsActiveIdUsingNavDir(ImGuiDir dir) { ImGuiContext& g = *GImGui; return (g.ActiveIdUsingNavDirMask & (1 << dir)) != 0; }
3424
3425 // [EXPERIMENTAL] Low-Level: Key/Input Ownership
3426 // - The idea is that instead of "eating" a given input, we can link to an owner id.
3427 // - Ownership is most often claimed as a result of reacting to a press/down event (but occasionally may be claimed ahead).
3428 // - Input queries can then read input by specifying ImGuiKeyOwner_Any (== 0), ImGuiKeyOwner_NoOwner (== -1) or a custom ID.
3429 // - Legacy input queries (without specifying an owner or _Any or _None) are equivalent to using ImGuiKeyOwner_Any (== 0).
3430 // - Input ownership is automatically released on the frame after a key is released. Therefore:
3431 // - for ownership registration happening as a result of a down/press event, the SetKeyOwner() call may be done once (common case).
3432 // - for ownership registration happening ahead of a down/press event, the SetKeyOwner() call needs to be made every frame (happens if e.g. claiming ownership on hover).
3433 // - SetItemKeyOwner() is a shortcut for common simple case. A custom widget will probably want to call SetKeyOwner() multiple times directly based on its interaction state.
3434 // - This is marked experimental because not all widgets are fully honoring the Set/Test idioms. We will need to move forward step by step.
3435 // Please open a GitHub Issue to submit your usage scenario or if there's a use case you need solved.
3437 IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags = 0);
3439 IMGUI_API void SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags); // Set key owner to last item if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'.
3440 IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id); // Test that key is either not owned, either owned by 'owner_id'
3442
3443 // [EXPERIMENTAL] High-Level: Input Access functions w/ support for Key/Input Ownership
3444 // - Important: legacy IsKeyPressed(ImGuiKey, bool repeat=true) _DEFAULTS_ to repeat, new IsKeyPressed() requires _EXPLICIT_ ImGuiInputFlags_Repeat flag.
3445 // - Expected to be later promoted to public API, the prototypes are designed to replace existing ones (since owner_id can default to Any == 0)
3446 // - Specifying a value for 'ImGuiID owner' will test that EITHER the key is NOT owned (UNLESS locked), EITHER the key is owned by 'owner'.
3447 // Legacy functions use ImGuiKeyOwner_Any meaning that they typically ignore ownership, unless a call to SetKeyOwner() explicitly used ImGuiInputFlags_LockThisFrame or ImGuiInputFlags_LockUntilRelease.
3448 // - Binding generators may want to ignore those for now, or suffix them with Ex() until we decide if this gets moved into public API.
3449 IMGUI_API bool IsKeyDown(ImGuiKey key, ImGuiID owner_id);
3450 IMGUI_API bool IsKeyPressed(ImGuiKey key, ImGuiInputFlags flags, ImGuiID owner_id = 0); // Important: when transitioning from old to new IsKeyPressed(): old API has "bool repeat = true", so would default to repeat. New API requires explicit ImGuiInputFlags_Repeat.
3451 IMGUI_API bool IsKeyReleased(ImGuiKey key, ImGuiID owner_id);
3452 IMGUI_API bool IsKeyChordPressed(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id = 0);
3453 IMGUI_API bool IsMouseDown(ImGuiMouseButton button, ImGuiID owner_id);
3454 IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, ImGuiInputFlags flags, ImGuiID owner_id = 0);
3455 IMGUI_API bool IsMouseReleased(ImGuiMouseButton button, ImGuiID owner_id);
3457
3458 // Shortcut Testing & Routing
3459 // - Set Shortcut() and SetNextItemShortcut() in imgui.h
3460 // - When a policy (except for ImGuiInputFlags_RouteAlways *) is set, Shortcut() will register itself with SetShortcutRouting(),
3461 // allowing the system to decide where to route the input among other route-aware calls.
3462 // (* using ImGuiInputFlags_RouteAlways is roughly equivalent to calling IsKeyChordPressed(key) and bypassing route registration and check)
3463 // - When using one of the routing option:
3464 // - The default route is ImGuiInputFlags_RouteFocused (accept inputs if window is in focus stack. Deep-most focused window takes inputs. ActiveId takes inputs over deep-most focused window.)
3465 // - Routes are requested given a chord (key + modifiers) and a routing policy.
3466 // - Routes are resolved during NewFrame(): if keyboard modifiers are matching current ones: SetKeyOwner() is called + route is granted for the frame.
3467 // - Each route may be granted to a single owner. When multiple requests are made we have policies to select the winning route (e.g. deep most window).
3468 // - Multiple read sites may use the same owner id can all access the granted route.
3469 // - When owner_id is 0 we use the current Focus Scope ID as a owner ID in order to identify our location.
3470 // - You can chain two unrelated windows in the focus stack using SetWindowParentWindowForFocusRoute()
3471 // e.g. if you have a tool window associated to a document, and you want document shortcuts to run when the tool is focused.
3472 IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id);
3473 IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id); // owner_id needs to be explicit and cannot be 0
3474 IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id);
3476
3477 // [EXPERIMENTAL] Focus Scope
3478 // This is generally used to identify a unique input location (for e.g. a selection set)
3479 // There is one per window (automatically set in Begin), but:
3480 // - Selection patterns generally need to react (e.g. clear a selection) when landing on one item of the set.
3481 // So in order to identify a set multiple lists in same window may each need a focus scope.
3482 // If you imagine an hypothetical BeginSelectionGroup()/EndSelectionGroup() api, it would likely call PushFocusScope()/EndFocusScope()
3483 // - Shortcut routing also use focus scope as a default location identifier if an owner is not provided.
3484 // We don't use the ID Stack for this as it is common to want them separate.
3486 IMGUI_API void PopFocusScope();
3487 IMGUI_API bool IsInNavFocusRoute(ImGuiID focus_scope_id);
3488 inline ImGuiID GetCurrentFocusScope() { ImGuiContext& g = *GImGui; return g.CurrentFocusScopeId; } // Focus scope we are outputting into, set by PushFocusScope()
3489
3490 // Drag and Drop
3493 IMGUI_API bool BeginDragDropTargetViewport(ImGuiViewport* viewport, const ImRect* p_bb = NULL);
3494 IMGUI_API void ClearDragDrop();
3497 IMGUI_API void RenderDragDropTargetRectEx(ImDrawList* draw_list, const ImRect& bb, float rounding);
3498
3499 // Typing-Select API
3500 // (provide Windows Explorer style "select items by typing partial name" + "cycle through items by typing same letter" feature)
3501 // (this is currently not documented nor used by main library, but should work. See "widgets_typingselect" in imgui_test_suite for usage code. Please let us know if you use this!)
3503 IMGUI_API int TypingSelectFindMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx);
3504 IMGUI_API int TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data, int nav_item_idx);
3505 IMGUI_API int TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest* req, int items_count, const char* (*get_item_name_func)(void*, int), void* user_data);
3506
3507 // Box-Select API
3508 IMGUI_API bool BeginBoxSelect(const ImRect& scope_rect, ImGuiWindow* window, ImGuiID box_select_id, ImGuiMultiSelectFlags ms_flags);
3509 IMGUI_API void EndBoxSelect(const ImRect& scope_rect, ImGuiMultiSelectFlags ms_flags);
3510
3511 // Multi-Select API
3512 IMGUI_API void MultiSelectItemHeader(ImGuiID id, bool* p_selected, ImGuiButtonFlags* p_button_flags);
3513 IMGUI_API void MultiSelectItemFooter(ImGuiID id, bool* p_selected, bool* p_pressed);
3515 IMGUI_API void MultiSelectAddSetRange(ImGuiMultiSelectTempData* ms, bool selected, int range_dir, ImGuiSelectionUserData first_item, ImGuiSelectionUserData last_item);
3516 inline ImGuiBoxSelectState* GetBoxSelectState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.BoxSelectState.ID == id && g.BoxSelectState.IsActive) ? &g.BoxSelectState : NULL; }
3518
3519 // Internal Columns API (this is not exposed because we will encourage transitioning to the Tables API)
3521 IMGUI_API void BeginColumns(const char* str_id, int count, ImGuiOldColumnFlags flags = 0); // setup number of columns. use an identifier to distinguish multiple column sets. close with EndColumns().
3522 IMGUI_API void EndColumns(); // close columns
3523 IMGUI_API void PushColumnClipRect(int column_index);
3526 IMGUI_API ImGuiID GetColumnsID(const char* str_id, int count);
3528 IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns* columns, float offset_norm);
3529 IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns* columns, float offset);
3530
3531 // Tables: Candidates for public API
3532 IMGUI_API void TableOpenContextMenu(int column_n = -1);
3533 IMGUI_API void TableSetColumnWidth(int column_n, float width);
3534 IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs);
3535 IMGUI_API int TableGetHoveredRow(); // Retrieve *PREVIOUS FRAME* hovered row. This difference with TableGetHoveredColumn() is the reason why this is not public yet.
3540 IMGUI_API void TablePushColumnChannel(int column_n);
3542 IMGUI_API void TableAngledHeadersRowEx(ImGuiID row_id, float angle, float max_label_width, const ImGuiTableHeaderData* data, int data_count);
3543
3544 // Tables: Internals
3547 IMGUI_API bool BeginTableEx(const char* name, ImGuiID id, int columns_count, ImGuiTableFlags flags = 0, const ImVec2& outer_size = ImVec2(0, 0), float inner_width = 0.0f);
3548 IMGUI_API void TableBeginInitMemory(ImGuiTable* table, int columns_count);
3556 IMGUI_API void TableDrawDefaultContextMenu(ImGuiTable* table, ImGuiTableFlags flags_for_section_to_display);
3559 inline ImGuiTableInstanceData* TableGetInstanceData(ImGuiTable* table, int instance_no) { if (instance_no == 0) return &table->InstanceDataFirst; return &table->InstanceDataExtra[instance_no - 1]; }
3560 inline ImGuiID TableGetInstanceID(ImGuiTable* table, int instance_no) { return TableGetInstanceData(table, instance_no)->TableInstanceID; }
3567 IMGUI_API void TableBeginRow(ImGuiTable* table);
3568 IMGUI_API void TableEndRow(ImGuiTable* table);
3569 IMGUI_API void TableBeginCell(ImGuiTable* table, int column_n);
3570 IMGUI_API void TableEndCell(ImGuiTable* table);
3571 IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable* table, int column_n);
3572 IMGUI_API const char* TableGetColumnName(const ImGuiTable* table, int column_n);
3573 IMGUI_API ImGuiID TableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no = 0);
3574 IMGUI_API float TableCalcMaxColumnWidth(const ImGuiTable* table, int column_n);
3575 IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n);
3577 IMGUI_API void TableSetColumnDisplayOrder(ImGuiTable* table, int column_n, int dst_order);
3578 IMGUI_API void TableQueueSetColumnDisplayOrder(ImGuiTable* table, int column_n, int dst_order);
3579 IMGUI_API void TableRemove(ImGuiTable* table);
3583
3584 // Tables: Settings
3592
3593 // Tab Bars
3596 IMGUI_API void TabBarRemove(ImGuiTabBar* tab_bar);
3597 IMGUI_API bool BeginTabBarEx(ImGuiTabBar* tab_bar, const ImRect& bb, ImGuiTabBarFlags flags);
3601 inline int TabBarGetTabOrder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab) { return tab_bar->Tabs.index_from_ptr(tab); }
3602 IMGUI_API const char* TabBarGetTabName(ImGuiTabBar* tab_bar, ImGuiTabItem* tab);
3603 IMGUI_API void TabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id);
3604 IMGUI_API void TabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab);
3606 IMGUI_API void TabBarQueueFocus(ImGuiTabBar* tab_bar, const char* tab_name);
3610 IMGUI_API bool TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags, ImGuiWindow* docked_window);
3611 IMGUI_API void TabItemSpacing(const char* str_id, ImGuiTabItemFlags flags, float width);
3612 IMGUI_API ImVec2 TabItemCalcSize(const char* label, bool has_close_button_or_unsaved_marker);
3614 IMGUI_API void TabItemBackground(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImU32 col);
3615 IMGUI_API void TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped);
3616
3617 // Render helpers
3618 // AVOID USING OUTSIDE OF IMGUI.CPP! NOT FOR PUBLIC CONSUMPTION. THOSE FUNCTIONS ARE A MESS. THEIR SIGNATURE AND BEHAVIOR WILL CHANGE, THEY NEED TO BE REFACTORED INTO SOMETHING DECENT.
3619 // NB: All position are in absolute pixels coordinates (we are never using window coordinates internally)
3620 IMGUI_API void RenderText(ImVec2 pos, const char* text, const char* text_end = NULL, bool hide_text_after_hash = true);
3621 IMGUI_API void RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width);
3622 IMGUI_API void RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL);
3623 IMGUI_API void RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align = ImVec2(0, 0), const ImRect* clip_rect = NULL);
3624 IMGUI_API void RenderTextEllipsis(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, float ellipsis_max_x, const char* text, const char* text_end, const ImVec2* text_size_if_known);
3625 IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool borders = true, float rounding = 0.0f);
3626 IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding = 0.0f);
3627 IMGUI_API void RenderColorComponentMarker(const ImRect& bb, ImU32 col, float rounding);
3628 IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding = 0.0f, ImDrawFlags flags = 0);
3629 IMGUI_API void RenderNavCursor(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = ImGuiNavRenderCursorFlags_None); // Navigation highlight
3630#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
3631 inline void RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavRenderCursorFlags flags = ImGuiNavRenderCursorFlags_None) { RenderNavCursor(bb, id, flags); } // Renamed in 1.91.4
3632#endif
3633 IMGUI_API const char* FindRenderedTextEnd(const char* text, const char* text_end = NULL); // Find the optional ## from which we stop displaying text.
3634 IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow);
3635
3636 // Render helpers (those functions don't access any ImGui state!)
3637 IMGUI_API void RenderArrow(ImDrawList* draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale = 1.0f);
3638 IMGUI_API void RenderBullet(ImDrawList* draw_list, ImVec2 pos, ImU32 col);
3639 IMGUI_API void RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz);
3640 IMGUI_API void RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col);
3641 IMGUI_API void RenderRectFilledInRangeH(ImDrawList* draw_list, const ImRect& rect, ImU32 col, float fill_x0, float fill_x1, float rounding);
3642 IMGUI_API void RenderRectFilledWithHole(ImDrawList* draw_list, const ImRect& outer, const ImRect& inner, ImU32 col, float rounding);
3643 IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect& r_in, const ImRect& r_outer, float threshold);
3644
3645 // Widgets: Text
3646 IMGUI_API void TextEx(const char* text, const char* text_end = NULL, ImGuiTextFlags flags = 0);
3647 IMGUI_API void TextAligned(float align_x, float size_x, const char* fmt, ...); // FIXME-WIP: Works but API is likely to be reworked. This is designed for 1 item on the line. (#7024)
3648 IMGUI_API void TextAlignedV(float align_x, float size_x, const char* fmt, va_list args);
3649
3650 // Widgets
3651 IMGUI_API bool ButtonEx(const char* label, const ImVec2& size_arg = ImVec2(0, 0), ImGuiButtonFlags flags = 0);
3652 IMGUI_API bool ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags = 0);
3653 IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureRef tex_ref, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& bg_col, const ImVec4& tint_col, ImGuiButtonFlags flags = 0);
3654 IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags, float thickness = 1.0f);
3655 IMGUI_API void SeparatorTextEx(ImGuiID id, const char* label, const char* label_end, float extra_width);
3656 IMGUI_API bool CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value);
3657 IMGUI_API bool CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value);
3658
3659 // Widgets: Window Decorations
3660 IMGUI_API bool CloseButton(ImGuiID id, const ImVec2& pos);
3661 IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2& pos);
3662 IMGUI_API void Scrollbar(ImGuiAxis axis);
3663 IMGUI_API bool ScrollbarEx(const ImRect& bb, ImGuiID id, ImGuiAxis axis, ImS64* p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags draw_rounding_flags = 0);
3669
3670 // Widgets low-level behaviors
3671 IMGUI_API bool ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool* out_held, ImGuiButtonFlags flags = 0);
3672 IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags);
3673 IMGUI_API bool SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb);
3674 IMGUI_API bool SplitterBehavior(const ImRect& bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend = 0.0f, float hover_visibility_delay = 0.0f, ImU32 bg_col = 0);
3675
3676 // Widgets: Tree Nodes
3677 IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end = NULL);
3678 IMGUI_API void TreeNodeDrawLineToChildNode(const ImVec2& target_pos);
3681 IMGUI_API void TreeNodeSetOpen(ImGuiID storage_id, bool open);
3682 IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID storage_id, ImGuiTreeNodeFlags flags); // Return open state. Consume previous SetNextItemOpen() data, if any. May return true when logging.
3683
3684 // Template functions are instantiated in imgui_widgets.cpp for a finite number of types.
3685 // To use them externally (for custom widget) you may need an "extern template" statement in your code in order to link to existing instances and silence Clang warnings (see #2036).
3686 // e.g. " extern template IMGUI_API float RoundScalarWithFormatT<float, float>(const char* format, ImGuiDataType data_type, float v); "
3687 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, float logarithmic_zero_epsilon, float zero_deadzone_size);
3688 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, float logarithmic_zero_epsilon, float zero_deadzone_size);
3689 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T* v, float v_speed, T v_min, T v_max, const char* format, ImGuiSliderFlags flags);
3690 template<typename T, typename SIGNED_T, typename FLOAT_T> IMGUI_API bool SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, T* v, T v_min, T v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb);
3691 template<typename T> IMGUI_API T RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, T v);
3692 template<typename T> IMGUI_API bool CheckboxFlagsT(const char* label, T* flags, T flags_value);
3693
3694 // Data type helpers
3696 IMGUI_API int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format);
3697 IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void* output, const void* arg_1, const void* arg_2);
3698 IMGUI_API bool DataTypeApplyFromText(const char* buf, ImGuiDataType data_type, void* p_data, const char* format, void* p_data_when_empty = NULL);
3699 IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void* arg_1, const void* arg_2);
3700 IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max);
3701 IMGUI_API bool DataTypeIsZero(ImGuiDataType data_type, const void* p_data);
3702
3703 // InputText
3704 IMGUI_API bool InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback = NULL, void* user_data = NULL);
3706 IMGUI_API bool TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL);
3707 IMGUI_API bool TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min = NULL, const void* p_clamp_max = NULL);
3708 inline bool TempInputIsActive(ImGuiID id) { ImGuiContext& g = *GImGui; return g.ActiveId == id && g.TempInputId == id; }
3709 inline ImGuiInputTextState* GetInputTextState(ImGuiID id) { ImGuiContext& g = *GImGui; return (id != 0 && g.InputTextState.ID == id) ? &g.InputTextState : NULL; } // Get input text state if active
3710 IMGUI_API void SetNextItemRefVal(ImGuiDataType data_type, void* p_data);
3711 inline bool IsItemActiveAsInputText() { ImGuiContext& g = *GImGui; return g.ActiveId != 0 && g.ActiveId == g.LastItemData.ID && g.InputTextState.ID == g.LastItemData.ID; } // This may be useful to apply workaround that a based on distinguish whenever an item is active as a text input field.
3712
3713 // Color
3714 IMGUI_API void ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags);
3715 IMGUI_API void ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags);
3716 IMGUI_API void ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags flags);
3718
3719 // Plot
3720 IMGUI_API int PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, const ImVec2& size_arg);
3721
3722 // Shade functions (write over already created vertices)
3723 IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1);
3724 IMGUI_API void ShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, bool clamp);
3725 IMGUI_API void ShadeVertsTransformPos(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, const ImVec2& pivot_in, float cos_a, float sin_a, const ImVec2& pivot_out);
3726
3727 // Garbage collection
3731
3732 // Error handling, State Recovery
3733 IMGUI_API bool ErrorLog(const char* msg);
3741
3742 // Demo Doc Marker for e.g. imgui_explorer
3743 IMGUI_API void DemoMarker(const char* file, int line, const char* section);
3744
3745 // Debug Tools
3746 IMGUI_API void DebugAllocHook(ImGuiDebugAllocInfo* info, int frame_count, void* ptr, size_t size); // size >= 0 : alloc, size = -1 : free
3747 IMGUI_API void DebugDrawCursorPos(ImU32 col = IM_COL32(255, 0, 0, 255));
3748 IMGUI_API void DebugDrawLineExtents(ImU32 col = IM_COL32(255, 0, 0, 255));
3749 IMGUI_API void DebugDrawItemRect(ImU32 col = IM_COL32(255, 0, 0, 255));
3750 IMGUI_API void DebugTextUnformattedWithLocateItem(const char* line_begin, const char* line_end);
3751 IMGUI_API void DebugLocateItem(ImGuiID target_id); // Call sparingly: only 1 at the same time!
3752 IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id); // Only call on reaction to a mouse Hover: because only 1 at the same time!
3755 IMGUI_API bool DebugBreakButton(const char* label, const char* description_of_location);
3756 IMGUI_API void DebugBreakButtonTooltip(bool keyboard_only, const char* description_of_location);
3757 IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas);
3759 IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void* data_id, const void* data_id_end);
3761 IMGUI_API void DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label);
3762 IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, const ImDrawList* draw_list, const ImDrawCmd* draw_cmd, bool show_mesh, bool show_aabb);
3763 IMGUI_API void DebugNodeFont(ImFont* font);
3764 IMGUI_API void DebugNodeFontGlyphsForSrcMask(ImFont* font, ImFontBaked* baked, int src_mask);
3765 IMGUI_API void DebugNodeFontGlyph(ImFont* font, const ImFontGlyph* glyph);
3766 IMGUI_API void DebugNodeTexture(ImTextureData* tex, int int_id, const ImFontAtlasRect* highlight_rect = NULL); // ID used to facilitate persisting the "current" texture.
3767 IMGUI_API void DebugNodeStorage(ImGuiStorage* storage, const char* label);
3768 IMGUI_API void DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label);
3769 IMGUI_API void DebugNodeTable(ImGuiTable* table);
3774 IMGUI_API void DebugNodeWindow(ImGuiWindow* window, const char* label);
3776 IMGUI_API void DebugNodeWindowsList(ImVector<ImGuiWindow*>* windows, const char* label);
3777 IMGUI_API void DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack);
3780 IMGUI_API void DebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, const ImRect& bb);
3781
3782 // Obsolete functions
3783#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
3784 //inline void SetItemUsingMouseWheel() { SetItemKeyOwner(ImGuiKey_MouseWheelY); } // Changed in 1.89
3785 //inline bool TreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags = 0) { return TreeNodeUpdateNextOpen(id, flags); } // Renamed in 1.89
3786 //inline bool IsKeyPressedMap(ImGuiKey key, bool repeat = true) { IM_ASSERT(IsNamedKey(key)); return IsKeyPressed(key, repeat); } // Removed in 1.87: Mapping from named key is always identity!
3787
3788 // Refactored focus/nav/tabbing system in 1.82 and 1.84. If you have old/custom copy-and-pasted widgets which used FocusableItemRegister():
3789 // (Old) IMGUI_VERSION_NUM < 18209: using 'ItemAdd(....)' and 'bool tab_focused = FocusableItemRegister(...)'
3790 // (Old) IMGUI_VERSION_NUM >= 18209: using 'ItemAdd(..., ImGuiItemAddFlags_Focusable)' and 'bool tab_focused = (g.LastItemData.StatusFlags & ImGuiItemStatusFlags_Focused) != 0'
3791 // (New) IMGUI_VERSION_NUM >= 18413: using 'ItemAdd(..., ImGuiItemFlags_Inputable)' and 'bool tab_focused = (g.NavActivateId == id && (g.NavActivateFlags & ImGuiActivateFlags_PreferInput))'
3792 //inline bool FocusableItemRegister(ImGuiWindow* window, ImGuiID id) // -> pass ImGuiItemAddFlags_Inputable flag to ItemAdd()
3793 //inline void FocusableItemUnregister(ImGuiWindow* window) // -> unnecessary: TempInputText() uses ImGuiInputTextFlags_MergedItem
3794#endif
3795
3796} // namespace ImGui
3797
3798
3799//-----------------------------------------------------------------------------
3800// [SECTION] ImFontLoader
3801//-----------------------------------------------------------------------------
3802
3803// Hooks and storage for a given font backend.
3804// This structure is likely to evolve as we add support for incremental atlas updates.
3805// Conceptually this could be public, but API is still going to be evolve.
3807{
3808 const char* Name;
3809 bool (*LoaderInit)(ImFontAtlas* atlas);
3811 bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src);
3813 bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint);
3814 bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src);
3815 void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src);
3816 bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x);
3817
3818 // Size of backend data, Per Baked * Per Source. Buffers are managed by core to avoid excessive allocations.
3819 // FIXME: At this point the two other types of buffers may be managed by core to be consistent?
3821
3822 ImFontLoader() { memset((void*)this, 0, sizeof(*this)); }
3823};
3824
3825#ifdef IMGUI_ENABLE_STB_TRUETYPE
3827#endif
3828#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
3829typedef ImFontLoader ImFontBuilderIO; // [renamed/changed in 1.92.0] The types are not actually compatible but we provide this as a compile-time error report helper.
3830#endif
3831
3832//-----------------------------------------------------------------------------
3833// [SECTION] ImFontAtlas internal API
3834//-----------------------------------------------------------------------------
3835
3836#define IMGUI_FONT_SIZE_MAX (512.0f)
3837#define IMGUI_FONT_SIZE_THRESHOLD_FOR_LOADADVANCEXONLYMODE (128.0f)
3838
3839// Helpers: ImTextureRef ==/!= operators provided as convenience
3840// (note that _TexID and _TexData are never set simultaneously)
3841inline bool operator==(const ImTextureRef& lhs, const ImTextureRef& rhs) { return lhs._TexID == rhs._TexID && lhs._TexData == rhs._TexData; }
3842inline bool operator!=(const ImTextureRef& lhs, const ImTextureRef& rhs) { return lhs._TexID != rhs._TexID || lhs._TexData != rhs._TexData; }
3843
3844// Refer to ImFontAtlasPackGetRect() to better understand how this works.
3845#define ImFontAtlasRectId_IndexMask_ (0x0007FFFF) // 20-bits signed: index to access builder->RectsIndex[].
3846#define ImFontAtlasRectId_GenerationMask_ (0x3FF00000) // 10-bits: entry generation, so each ID is unique and get can safely detected old identifiers.
3847#define ImFontAtlasRectId_GenerationShift_ (20)
3850inline ImFontAtlasRectId ImFontAtlasRectId_Make(int index_idx, int gen_idx) { IM_ASSERT(index_idx >= 0 && index_idx <= ImFontAtlasRectId_IndexMask_ && gen_idx <= (ImFontAtlasRectId_GenerationMask_ >> ImFontAtlasRectId_GenerationShift_)); return (ImFontAtlasRectId)(index_idx | (gen_idx << ImFontAtlasRectId_GenerationShift_)); }
3851
3852// Packed rectangle lookup entry (we need an indirection to allow removing/reordering rectangles)
3853// User are returned ImFontAtlasRectId values which are meant to be persistent.
3854// We handle this with an indirection. While Rects[] may be in theory shuffled, compacted etc., RectsIndex[] cannot it is keyed by ImFontAtlasRectId.
3855// RectsIndex[] is used both as an index into Rects[] and an index into itself. This is basically a free-list. See ImFontAtlasBuildAllocRectIndexEntry() code.
3856// Having this also makes it easier to e.g. sort rectangles during repack.
3858{
3859 int TargetIndex : 20; // When Used: ImFontAtlasRectId -> into Rects[]. When unused: index to next unused RectsIndex[] slot to consume free-list.
3860 unsigned int Generation : 10; // Increased each time the entry is reused for a new rectangle.
3861 unsigned int IsUsed : 1;
3862};
3863
3864// Data available to potential texture post-processing functions
3880
3881// We avoid dragging imstb_rectpack.h into public header (partly because binding generators are having issues with it)
3882#ifdef IMGUI_STB_NAMESPACE
3883namespace IMGUI_STB_NAMESPACE { struct stbrp_node; }
3884typedef IMGUI_STB_NAMESPACE::stbrp_node stbrp_node_im;
3885#else
3886struct stbrp_node;
3888#endif
3889struct stbrp_context_opaque { char data[80]; };
3890
3891// Internal storage for incrementally packing and building a ImFontAtlas
3893{
3894 stbrp_context_opaque PackContext; // Actually 'stbrp_context' but we don't want to define this in the header file.
3897 ImVector<ImFontAtlasRectEntry> RectsIndex; // ImFontAtlasRectId -> index into Rects[]
3898 ImVector<unsigned char> TempBuffer; // Misc scratch buffer
3899 int RectsIndexFreeListStart;// First unused entry
3900 int RectsPackedCount; // Number of packed rectangles.
3901 int RectsPackedSurface; // Number of packed pixels. Used when compacting to heuristically find the ideal texture size.
3904 int FrameCount; // Current frame count
3905 ImVec2i MaxRectSize; // Largest rectangle to pack (de-facto used as a "minimum texture size")
3906 ImVec2i MaxRectBounds; // Bottom-right most used pixels
3907 bool LockDisableResize; // Disable resizing texture
3908 bool PreloadedAllGlyphsRanges; // Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.
3909
3910 // Cache of all ImFontBaked
3912 ImGuiStorage BakedMap; // BakedId --> ImFontBaked*
3914
3915 // Custom rectangle identifiers
3916 ImFontAtlasRectId PackIdMouseCursors; // White pixel + mouse cursors. Also happen to be fallback in case of packing failure.
3918
3919 ImFontAtlasBuilder() { memset((void*)this, 0, sizeof(*this)); FrameCount = -1; RectsIndexFreeListStart = -1; PackIdMouseCursors = PackIdLinesTexData = -1; }
3920};
3921
3925IMGUI_API void ImFontAtlasBuildSetupFontLoader(ImFontAtlas* atlas, const ImFontLoader* font_loader);
3926IMGUI_API void ImFontAtlasBuildNotifySetFont(ImFontAtlas* atlas, ImFont* old_font, ImFont* new_font);
3928IMGUI_API void ImFontAtlasBuildRenderBitmapFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char);
3929IMGUI_API void ImFontAtlasBuildClear(ImFontAtlas* atlas); // Clear output and custom rects
3930
3933IMGUI_API void ImFontAtlasTextureRepack(ImFontAtlas* atlas, int w, int h);
3934IMGUI_API void ImFontAtlasTextureGrow(ImFontAtlas* atlas, int old_w = -1, int old_h = -1);
3937
3940IMGUI_API void ImFontAtlasBuildGetOversampleFactors(ImFontConfig* src, ImFontBaked* baked, int* out_oversample_h, int* out_oversample_v);
3941IMGUI_API void ImFontAtlasBuildDiscardBakes(ImFontAtlas* atlas, int unused_frames);
3942
3946IMGUI_API bool ImFontAtlasFontInitOutput(ImFontAtlas* atlas, ImFont* font); // Using FontDestroyOutput/FontInitOutput sequence useful notably if font loader params have changed
3949IMGUI_API void ImFontAtlasFontDiscardBakes(ImFontAtlas* atlas, ImFont* font, int unused_frames);
3950
3951IMGUI_API ImGuiID ImFontAtlasBakedGetId(ImGuiID font_id, float baked_size, float rasterizer_density);
3952IMGUI_API ImFontBaked* ImFontAtlasBakedGetOrAdd(ImFontAtlas* atlas, ImFont* font, float font_size, float font_rasterizer_density);
3953IMGUI_API ImFontBaked* ImFontAtlasBakedGetClosestMatch(ImFontAtlas* atlas, ImFont* font, float font_size, float font_rasterizer_density);
3954IMGUI_API ImFontBaked* ImFontAtlasBakedAdd(ImFontAtlas* atlas, ImFont* font, float font_size, float font_rasterizer_density, ImGuiID baked_id);
3957IMGUI_API void ImFontAtlasBakedAddFontGlyphAdvancedX(ImFontAtlas* atlas, ImFontBaked* baked, ImFontConfig* src, ImWchar codepoint, float advance_x);
3959IMGUI_API void ImFontAtlasBakedSetFontGlyphBitmap(ImFontAtlas* atlas, ImFontBaked* baked, ImFontConfig* src, ImFontGlyph* glyph, ImTextureRect* r, const unsigned char* src_pixels, ImTextureFormat src_fmt, int src_pitch);
3960
3962IMGUI_API ImFontAtlasRectId ImFontAtlasPackAddRect(ImFontAtlas* atlas, int w, int h, ImFontAtlasRectEntry* overwrite_entry = NULL);
3966
3967IMGUI_API void ImFontAtlasUpdateNewFrame(ImFontAtlas* atlas, int frame_count, bool renderer_has_textures);
3972
3973IMGUI_API void ImFontAtlasTextureBlockConvert(const unsigned char* src_pixels, ImTextureFormat src_fmt, int src_pitch, unsigned char* dst_pixels, ImTextureFormat dst_fmt, int dst_pitch, int w, int h);
3976IMGUI_API void ImFontAtlasTextureBlockFill(ImTextureData* dst_tex, int dst_x, int dst_y, int w, int h, ImU32 col);
3977IMGUI_API void ImFontAtlasTextureBlockCopy(ImTextureData* src_tex, int src_x, int src_y, ImTextureData* dst_tex, int dst_x, int dst_y, int w, int h);
3978IMGUI_API void ImFontAtlasTextureBlockQueueUpload(ImFontAtlas* atlas, ImTextureData* tex, int x, int y, int w, int h);
3979
3983
3984#ifndef IMGUI_DISABLE_DEBUG_TOOLS
3986#endif
3987
3988IMGUI_API bool ImFontAtlasGetMouseCursorTexData(ImFontAtlas* atlas, ImGuiMouseCursor cursor_type, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]);
3989
3990//-----------------------------------------------------------------------------
3991// [SECTION] Test Engine specific hooks (imgui_test_engine)
3992//-----------------------------------------------------------------------------
3993
3994#ifdef IMGUI_ENABLE_TEST_ENGINE
3995extern void ImGuiTestEngineHook_ItemAdd(ImGuiContext* ctx, ImGuiID id, const ImRect& bb, const ImGuiLastItemData* item_data); // item_data may be NULL
3996extern void ImGuiTestEngineHook_ItemInfo(ImGuiContext* ctx, ImGuiID id, const char* label, ImGuiItemStatusFlags flags);
3997extern void ImGuiTestEngineHook_Log(ImGuiContext* ctx, const char* fmt, ...);
3998extern const char* ImGuiTestEngine_FindItemDebugLabel(ImGuiContext* ctx, ImGuiID id);
3999
4000// In IMGUI_VERSION_NUM >= 18934: changed IMGUI_TEST_ENGINE_ITEM_ADD(bb,id) to IMGUI_TEST_ENGINE_ITEM_ADD(id,bb,item_data);
4001#define IMGUI_TEST_ENGINE_ITEM_ADD(_ID,_BB,_ITEM_DATA) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemAdd(&g, _ID, _BB, _ITEM_DATA) // Register item bounding box
4002#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) if (g.TestEngineHookItems) ImGuiTestEngineHook_ItemInfo(&g, _ID, _LABEL, _FLAGS) // Register item label and status flags (optional)
4003#define IMGUI_TEST_ENGINE_LOG(_FMT,...) ImGuiTestEngineHook_Log(&g, _FMT, __VA_ARGS__) // Custom log entry from user land into test log
4004#else
4005#define IMGUI_TEST_ENGINE_ITEM_ADD(_ID,_BB,_ITEM_DATA) ((void)0)
4006#define IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS) ((void)g)
4007#endif
4008
4009//-----------------------------------------------------------------------------
4010
4011#if defined(__clang__)
4012#pragma clang diagnostic pop
4013#elif defined(__GNUC__)
4014#pragma GCC diagnostic pop
4015#endif
4016
4017#ifdef _MSC_VER
4018#pragma warning (pop)
4019#endif
4020
4021#endif // #ifndef IMGUI_DISABLE
uniform sampler2D tex
Definition display.frag:15
ImGuiContext * GImGui
Definition imgui.cpp:1442
int ImFormatStringV(char *buf, size_t buf_size, const char *fmt, va_list args)
Definition imgui.cpp:2306
void ImFormatStringToTempBuffer(const char **out_buf, const char **out_buf_end, const char *fmt,...)
Definition imgui.cpp:2322
int ImTextStrToUtf8(char *out_buf, int out_buf_size, const ImWchar *in_text, const ImWchar *in_text_end)
Definition imgui.cpp:2726
void ImFormatStringToTempBufferV(const char **out_buf, const char **out_buf_end, const char *fmt, va_list args)
Definition imgui.cpp:2334
int ImTextCharToUtf8(char out_buf[5], unsigned int c)
Definition imgui.cpp:2703
int ImTextCountUtf8BytesFromStr(const ImWchar *in_text, const ImWchar *in_text_end)
Definition imgui.cpp:2742
IM_MSVC_RUNTIME_CHECKS_OFF int ImTextCharFromUtf8(unsigned int *out_char, const char *in_text, const char *in_text_end)
Definition imgui.cpp:2586
int ImTextCountCharsFromUtf8(const char *in_text, const char *in_text_end)
Definition imgui.cpp:2655
const char * ImTextFindValidUtf8CodepointEnd(const char *in_text_start, const char *in_text_end, const char *in_p)
Definition imgui.cpp:2767
int ImTextCountUtf8BytesFromChar(const char *in_text, const char *in_text_end)
Definition imgui.cpp:2711
int ImTextStrFromUtf8(ImWchar *buf, int buf_size, const char *in_text, const char *in_text_end, const char **in_text_remaining)
Definition imgui.cpp:2639
const char * ImTextFindPreviousUtf8Codepoint(const char *in_text_start, const char *in_p)
Definition imgui.cpp:2756
int ImTextCountLines(const char *in_text, const char *in_text_end)
Definition imgui.cpp:2779
ImGuiDir
Definition imgui.h:1531
#define IM_FMTLIST(FMT)
Definition imgui.h:119
int ImGuiTreeNodeFlags
Definition imgui.h:266
int ImFontAtlasRectId
Definition imgui.h:3627
int ImGuiKeyChord
Definition imgui.h:255
int ImGuiWindowFlags
Definition imgui.h:268
int ImDrawTextFlags
Definition imgui.h:240
@ ImGuiDataType_COUNT
Definition imgui.h:1526
unsigned int ImU32
Definition imgui.h:166
#define IM_COL32(R, G, B, A)
Definition imgui.h:2960
#define IM_FMTARGS(FMT)
Definition imgui.h:118
@ ImGuiHoveredFlags_DelayShort
Definition imgui.h:1477
@ ImGuiHoveredFlags_DelayNone
Definition imgui.h:1476
@ ImGuiHoveredFlags_ForTooltip
Definition imgui.h:1470
@ ImGuiHoveredFlags_AllowWhenBlockedByActiveItem
Definition imgui.h:1455
@ ImGuiHoveredFlags_AllowWhenBlockedByPopup
Definition imgui.h:1453
@ ImGuiHoveredFlags_NoNavOverride
Definition imgui.h:1459
@ ImGuiHoveredFlags_Stationary
Definition imgui.h:1475
@ ImGuiHoveredFlags_NoPopupHierarchy
Definition imgui.h:1451
@ ImGuiHoveredFlags_NoSharedDelay
Definition imgui.h:1479
@ ImGuiHoveredFlags_ChildWindows
Definition imgui.h:1448
@ ImGuiHoveredFlags_RootWindow
Definition imgui.h:1449
@ ImGuiHoveredFlags_AnyWindow
Definition imgui.h:1450
@ ImGuiHoveredFlags_AllowWhenOverlapped
Definition imgui.h:1460
@ ImGuiHoveredFlags_AllowWhenDisabled
Definition imgui.h:1458
@ ImGuiHoveredFlags_DelayNormal
Definition imgui.h:1478
unsigned int ImGuiID
Definition imgui.h:160
int ImDrawListFlags
Definition imgui.h:239
int ImGuiCol
Definition imgui.h:225
void(* ImGuiSizeCallback)(ImGuiSizeCallbackData *data)
Definition imgui.h:287
IM_MSVC_RUNTIME_CHECKS_RESTORE typedef ImU64 ImTextureID
Definition imgui.h:340
ImS64 ImGuiSelectionUserData
Definition imgui.h:283
ImWchar16 ImWchar
Definition imgui.h:277
#define IM_UNUSED(_VAR)
Definition imgui.h:99
signed char ImS8
Definition imgui.h:161
unsigned char ImU8
Definition imgui.h:162
int ImGuiHoveredFlags
Definition imgui.h:251
ImGuiMouseSource
Definition imgui.h:1984
void IM_DELETE(T *p)
Definition imgui.h:2194
#define IM_ALLOC(_SIZE)
Definition imgui.h:2190
#define IM_PLACEMENT_NEW(_PTR)
Definition imgui.h:2192
#define IMGUI_API
Definition imgui.h:86
int ImGuiDataType
Definition imgui.h:227
int ImGuiDragDropFlags
Definition imgui.h:249
int ImGuiSliderFlags
Definition imgui.h:260
@ ImGuiPopupFlags_None
Definition imgui.h:1342
@ ImGuiTabItemFlags_Trailing
Definition imgui.h:1426
@ ImGuiTabItemFlags_Leading
Definition imgui.h:1425
ImTextureStatus
Definition imgui.h:3484
int ImGuiTabBarFlags
Definition imgui.h:261
@ ImGuiItemFlags_None
Definition imgui.h:1238
@ ImGuiItemFlags_AutoClosePopups
Definition imgui.h:1243
int(* ImGuiInputTextCallback)(ImGuiInputTextCallbackData *data)
Definition imgui.h:286
unsigned long long ImU64
Definition imgui.h:168
int ImGuiColorEditFlags
Definition imgui.h:246
int ImGuiMultiSelectFlags
Definition imgui.h:258
unsigned short ImU16
Definition imgui.h:164
#define IM_MSVC_RUNTIME_CHECKS_OFF
Definition imgui.h:127
int ImGuiInputTextFlags
Definition imgui.h:253
signed long long ImS64
Definition imgui.h:167
@ ImGuiInputFlags_RouteOverActive
Definition imgui.h:1697
@ ImGuiInputFlags_RouteFromRootWindow
Definition imgui.h:1699
@ ImGuiInputFlags_RouteOverFocused
Definition imgui.h:1696
@ ImGuiInputFlags_RouteActive
Definition imgui.h:1691
@ ImGuiInputFlags_RouteGlobal
Definition imgui.h:1693
@ ImGuiInputFlags_RouteFocused
Definition imgui.h:1692
@ ImGuiInputFlags_Tooltip
Definition imgui.h:1702
@ ImGuiInputFlags_Repeat
Definition imgui.h:1686
@ ImGuiInputFlags_RouteAlways
Definition imgui.h:1694
@ ImGuiInputFlags_RouteUnlessBgFocused
Definition imgui.h:1698
int ImFontFlags
Definition imgui.h:241
int ImGuiMouseCursor
Definition imgui.h:229
int ImGuiButtonFlags
Definition imgui.h:244
int ImGuiChildFlags
Definition imgui.h:245
ImGuiKey
Definition imgui.h:1555
@ ImGuiMod_Mask_
Definition imgui.h:1670
@ ImGuiKey_RightSuper
Definition imgui.h:1576
@ ImGuiKey_ReservedForModCtrl
Definition imgui.h:1649
@ ImGuiKey_NamedKey_BEGIN
Definition imgui.h:1558
@ ImGuiMod_Shift
Definition imgui.h:1667
@ ImGuiMod_Alt
Definition imgui.h:1668
@ ImGuiMod_Ctrl
Definition imgui.h:1666
@ ImGuiKey_ReservedForModAlt
Definition imgui.h:1649
@ ImGuiMod_Super
Definition imgui.h:1669
@ ImGuiKey_ReservedForModShift
Definition imgui.h:1649
@ ImGuiKey_NamedKey_END
Definition imgui.h:1652
@ ImGuiKey_MouseLeft
Definition imgui.h:1646
@ ImGuiKey_ReservedForModSuper
Definition imgui.h:1649
@ ImGuiKey_NamedKey_COUNT
Definition imgui.h:1653
@ ImGuiKey_LeftCtrl
Definition imgui.h:1575
int ImGuiInputFlags
Definition imgui.h:252
@ ImGuiMouseButton_COUNT
Definition imgui.h:1957
int ImGuiComboFlags
Definition imgui.h:248
signed short ImS16
Definition imgui.h:163
ImGuiSortDirection
Definition imgui.h:1542
@ ImGuiSortDirection_None
Definition imgui.h:1543
@ ImGuiTreeNodeFlags_OpenOnArrow
Definition imgui.h:1311
@ ImGuiTreeNodeFlags_DrawLinesToNodes
Definition imgui.h:1328
@ ImGuiTreeNodeFlags_OpenOnDoubleClick
Definition imgui.h:1310
@ ImGuiTreeNodeFlags_DrawLinesFull
Definition imgui.h:1327
@ ImGuiTreeNodeFlags_DrawLinesNone
Definition imgui.h:1326
int ImGuiItemFlags
Definition imgui.h:254
int ImGuiMouseButton
Definition imgui.h:228
#define IM_FREE(_PTR)
Definition imgui.h:2191
int ImGuiStyleVar
Definition imgui.h:230
#define IM_COUNTOF(_ARR)
Definition imgui.h:98
#define IM_ASSERT(_EXPR)
Definition imgui.h:96
#define IM_MSVC_RUNTIME_CHECKS_RESTORE
Definition imgui.h:128
int ImGuiTableRowFlags
Definition imgui.h:265
int ImGuiTableFlags
Definition imgui.h:263
signed int ImS32
Definition imgui.h:165
int ImGuiTabItemFlags
Definition imgui.h:262
int ImGuiCond
Definition imgui.h:226
int ImGuiPopupFlags
Definition imgui.h:257
ImTextureFormat
Definition imgui.h:3477
int ImDrawFlags
Definition imgui.h:238
int ImGuiTableColumnFlags
Definition imgui.h:264
GLint GLsizei width
Definition imgui_impl_opengl3_loader.h:191
GLenum mode
Definition imgui_impl_opengl3_loader.h:190
GLsizeiptr size
Definition imgui_impl_opengl3_loader.h:277
const GLchar * name
Definition imgui_impl_opengl3_loader.h:317
GLint y
Definition imgui_impl_opengl3_loader.h:191
GLsizei count
Definition imgui_impl_opengl3_loader.h:229
GLint GLint GLsizei GLsizei GLint GLenum GLenum type
Definition imgui_impl_opengl3_loader.h:193
GLuint GLuint64EXT * result
Definition imgui_impl_opengl3_loader.h:457
GLuint index
Definition imgui_impl_opengl3_loader.h:371
GLint GLint GLsizei GLsizei GLint GLenum format
Definition imgui_impl_opengl3_loader.h:193
GLint * data
Definition imgui_impl_opengl3_loader.h:202
typedef void(APIENTRYP PFNGLPOLYGONMODEPROC)(GLenum face
GLintptr offset
Definition imgui_impl_opengl3_loader.h:278
void(* ImGuiDemoMarkerCallback)(const char *file, int line, const char *section)
Definition imgui_internal.h:2195
ImGuiContextHookType
Definition imgui_internal.h:2182
@ ImGuiContextHookType_PendingRemoval_
Definition imgui_internal.h:2182
@ ImGuiContextHookType_RenderPost
Definition imgui_internal.h:2182
@ ImGuiContextHookType_NewFramePost
Definition imgui_internal.h:2182
@ ImGuiContextHookType_RenderPre
Definition imgui_internal.h:2182
@ ImGuiContextHookType_EndFramePre
Definition imgui_internal.h:2182
@ ImGuiContextHookType_NewFramePre
Definition imgui_internal.h:2182
@ ImGuiContextHookType_EndFramePost
Definition imgui_internal.h:2182
@ ImGuiContextHookType_Shutdown
Definition imgui_internal.h:2182
IMGUI_API void * ImFileLoadToMemory(const char *filename, const char *mode, size_t *out_file_size=NULL, int padding_bytes=0)
Definition imgui.cpp:2538
IMGUI_API void ImFontAtlasTextureGrow(ImFontAtlas *atlas, int old_w=-1, int old_h=-1)
Definition imgui_draw.cpp:4170
IMGUI_API void ImTextClassifierSetCharClass(ImU32 *bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, unsigned int c)
Definition imgui_draw.cpp:5466
IMGUI_API ImTextureRect * ImFontAtlasPackGetRect(ImFontAtlas *atlas, ImFontAtlasRectId id)
Definition imgui_draw.cpp:4467
IMGUI_API const char * ImStrchrRange(const char *str_begin, const char *str_end, char c)
Definition imgui.cpp:2190
IMGUI_API void ImFontAtlasAddDrawListSharedData(ImFontAtlas *atlas, ImDrawListSharedData *data)
Definition imgui_draw.cpp:3988
IMGUI_API bool ImFontAtlasGetMouseCursorTexData(ImFontAtlas *atlas, ImGuiMouseCursor cursor_type, ImVec2 *out_offset, ImVec2 *out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2])
Definition imgui_draw.cpp:3430
ImGuiInputTextFlagsPrivate_
Definition imgui_internal.h:1030
@ ImGuiInputTextFlags_TempInput
Definition imgui_internal.h:1033
@ ImGuiInputTextFlags_LocalizeDecimalPoint
Definition imgui_internal.h:1034
@ ImGuiInputTextFlags_Multiline
Definition imgui_internal.h:1032
T ImMax(T lhs, T rhs)
Definition imgui_internal.h:510
IMGUI_API bool ImTriangleContainsPoint(const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p)
Definition imgui.cpp:2100
float ImLinearSweep(float current, float target, float speed)
Definition imgui_internal.h:537
IMGUI_API void ImFontAtlasBuildNotifySetFont(ImFontAtlas *atlas, ImFont *old_font, ImFont *new_font)
Definition imgui_draw.cpp:3276
ImGuiScrollFlags_
Definition imgui_internal.h:1704
@ ImGuiScrollFlags_KeepVisibleEdgeY
Definition imgui_internal.h:1707
@ ImGuiScrollFlags_MaskX_
Definition imgui_internal.h:1713
@ ImGuiScrollFlags_NoScrollParent
Definition imgui_internal.h:1712
@ ImGuiScrollFlags_AlwaysCenterX
Definition imgui_internal.h:1710
@ ImGuiScrollFlags_KeepVisibleCenterX
Definition imgui_internal.h:1708
@ ImGuiScrollFlags_AlwaysCenterY
Definition imgui_internal.h:1711
@ ImGuiScrollFlags_MaskY_
Definition imgui_internal.h:1714
@ ImGuiScrollFlags_KeepVisibleEdgeX
Definition imgui_internal.h:1706
@ ImGuiScrollFlags_KeepVisibleCenterY
Definition imgui_internal.h:1709
@ ImGuiScrollFlags_None
Definition imgui_internal.h:1705
float ImLog(float x)
Definition imgui_internal.h:493
int ImGuiWindowRefreshFlags
Definition imgui_internal.h:214
float ImRsqrt(float x)
Definition imgui_internal.h:503
IMGUI_API void ImFontAtlasBuildGetOversampleFactors(ImFontConfig *src, ImFontBaked *baked, int *out_oversample_h, int *out_oversample_v)
Definition imgui_draw.cpp:3471
void ImBitArraySetBit(ImU32 *arr, int n)
Definition imgui_internal.h:631
ImDrawTextFlags_
Definition imgui_internal.h:436
@ ImDrawTextFlags_None
Definition imgui_internal.h:437
@ ImDrawTextFlags_CpuFineClip
Definition imgui_internal.h:438
@ ImDrawTextFlags_StopOnNewLine
Definition imgui_internal.h:440
@ ImDrawTextFlags_WrapKeepBlanks
Definition imgui_internal.h:439
float ImLengthSqr(const ImVec2 &lhs)
Definition imgui_internal.h:525
IMGUI_API void ImFontAtlasBuildSetupFontSpecialGlyphs(ImFontAtlas *atlas, ImFont *font, ImFontConfig *src)
Definition imgui_draw.cpp:3820
bool operator==(const ImTextureRef &lhs, const ImTextureRef &rhs)
Definition imgui_internal.h:3841
IMGUI_API ImU64 ImFileRead(void *data, ImU64 size, ImU64 count, ImFileHandle file)
Definition imgui.cpp:2531
IMGUI_API ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &p, float tess_tol)
Definition imgui.cpp:2077
void ImBitArrayClearBit(ImU32 *arr, int n)
Definition imgui_internal.h:630
int ImGuiNextItemDataFlags
Definition imgui_internal.h:206
IMGUI_API void ImFontAtlasUpdateDrawListsTextures(ImFontAtlas *atlas, ImTextureRef old_tex, ImTextureRef new_tex)
Definition imgui_draw.cpp:4001
T ImSubClampOverflow(T a, T b, T mn, T mx)
Definition imgui_internal.h:516
ImGuiSeparatorFlags_
Definition imgui_internal.h:1100
@ ImGuiSeparatorFlags_Horizontal
Definition imgui_internal.h:1102
@ ImGuiSeparatorFlags_SpanAllColumns
Definition imgui_internal.h:1104
@ ImGuiSeparatorFlags_None
Definition imgui_internal.h:1101
@ ImGuiSeparatorFlags_Vertical
Definition imgui_internal.h:1103
int ImPoolIdx
Definition imgui_internal.h:763
IMGUI_API int ImTextureDataGetFormatBytesPerPixel(ImTextureFormat format)
Definition imgui_draw.cpp:2450
ImGuiItemFlagsPrivate_
Definition imgui_internal.h:970
@ ImGuiItemFlags_NoFocus
Definition imgui_internal.h:978
@ ImGuiItemFlags_IsMultiSelect
Definition imgui_internal.h:983
@ ImGuiItemFlags_HasSelectionUserData
Definition imgui_internal.h:982
@ ImGuiItemFlags_NoMarkEdited
Definition imgui_internal.h:977
@ ImGuiItemFlags_Default_
Definition imgui_internal.h:985
@ ImGuiItemFlags_MixedValue
Definition imgui_internal.h:973
@ ImGuiItemFlags_Inputable
Definition imgui_internal.h:981
@ ImGuiItemFlags_ReadOnly
Definition imgui_internal.h:972
@ ImGuiItemFlags_AllowOverlap
Definition imgui_internal.h:975
@ ImGuiItemFlags_NoNavDisableMouseHover
Definition imgui_internal.h:976
@ ImGuiItemFlags_NoWindowHoverableCheck
Definition imgui_internal.h:974
float ImInvLength(const ImVec2 &lhs, float fail_value)
Definition imgui_internal.h:527
IMGUI_API ImFontBaked * ImFontAtlasBakedGetClosestMatch(ImFontAtlas *atlas, ImFont *font, float font_size, float font_rasterizer_density)
Definition imgui_draw.cpp:3900
unsigned int ImCountSetBits(unsigned int v)
Definition imgui_internal.h:385
#define ImGuiKey_Mouse_BEGIN
Definition imgui_internal.h:1507
ImBitArray< ImGuiKey_NamedKey_COUNT, -ImGuiKey_NamedKey_BEGIN > ImBitArrayForNamedKeys
Definition imgui_internal.h:1498
IMGUI_API ImGuiStoragePair * ImLowerBound(ImGuiStoragePair *in_begin, ImGuiStoragePair *in_end, ImGuiID key)
Definition imgui.cpp:2886
#define IMGUI_CDECL
Definition imgui_internal.h:300
#define ImGuiKey_Gamepad_END
Definition imgui_internal.h:1506
void ImBitArraySetBitRange(ImU32 *arr, int n, int n2)
Definition imgui_internal.h:632
int ImGuiScrollFlags
Definition imgui_internal.h:208
ImGuiTabBarFlagsPrivate_
Definition imgui_internal.h:2797
@ ImGuiTabBarFlags_SaveSettings
Definition imgui_internal.h:2800
@ ImGuiTabBarFlags_IsFocused
Definition imgui_internal.h:2799
@ ImGuiTabBarFlags_DockNode
Definition imgui_internal.h:2798
int ImModPositive(int a, int b)
Definition imgui_internal.h:534
ImGuiLocKey
Definition imgui_internal.h:2041
@ ImGuiLocKey_VersionStr
Definition imgui_internal.h:2042
@ ImGuiLocKey_OpenLink_s
Definition imgui_internal.h:2050
@ ImGuiLocKey_COUNT
Definition imgui_internal.h:2052
@ ImGuiLocKey_WindowingMainMenuBar
Definition imgui_internal.h:2047
@ ImGuiLocKey_TableSizeAllDefault
Definition imgui_internal.h:2045
@ ImGuiLocKey_TableResetOrder
Definition imgui_internal.h:2046
@ ImGuiLocKey_CopyLink
Definition imgui_internal.h:2051
@ ImGuiLocKey_WindowingUntitled
Definition imgui_internal.h:2049
@ ImGuiLocKey_WindowingPopup
Definition imgui_internal.h:2048
@ ImGuiLocKey_TableSizeAllFit
Definition imgui_internal.h:2044
@ ImGuiLocKey_TableSizeOne
Definition imgui_internal.h:2043
int ImGuiLogFlags
Definition imgui_internal.h:203
IMGUI_API ImVec2i ImFontAtlasTextureGetSizeEstimate(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4216
int ImAbs(int x)
Definition imgui_internal.h:495
ImGuiAxis
Definition imgui_internal.h:1151
@ ImGuiAxis_None
Definition imgui_internal.h:1152
@ ImGuiAxis_X
Definition imgui_internal.h:1153
@ ImGuiAxis_Y
Definition imgui_internal.h:1154
IMGUI_API ImTextureData * ImFontAtlasTextureAdd(ImFontAtlas *atlas, int w, int h)
Definition imgui_draw.cpp:4049
ImGuiButtonFlagsPrivate_
Definition imgui_internal.h:1039
@ ImGuiButtonFlags_PressedOnMask_
Definition imgui_internal.h:1058
@ ImGuiButtonFlags_FlattenChildren
Definition imgui_internal.h:1047
@ ImGuiButtonFlags_NoHoveredOnFocus
Definition imgui_internal.h:1054
@ ImGuiButtonFlags_PressedOnDoubleClick
Definition imgui_internal.h:1044
@ ImGuiButtonFlags_NoHoldingActiveId
Definition imgui_internal.h:1052
@ ImGuiButtonFlags_AlignTextBaseLine
Definition imgui_internal.h:1050
@ ImGuiButtonFlags_NoKeyModsAllowed
Definition imgui_internal.h:1051
@ ImGuiButtonFlags_PressedOnDefault_
Definition imgui_internal.h:1059
@ ImGuiButtonFlags_PressedOnClickRelease
Definition imgui_internal.h:1041
@ ImGuiButtonFlags_NoFocus
Definition imgui_internal.h:1057
@ ImGuiButtonFlags_NoNavFocus
Definition imgui_internal.h:1053
@ ImGuiButtonFlags_PressedOnDragDropHold
Definition imgui_internal.h:1045
@ ImGuiButtonFlags_NoTestKeyOwner
Definition imgui_internal.h:1056
@ ImGuiButtonFlags_PressedOnClickReleaseAnywhere
Definition imgui_internal.h:1042
@ ImGuiButtonFlags_NoSetKeyOwner
Definition imgui_internal.h:1055
@ ImGuiButtonFlags_PressedOnRelease
Definition imgui_internal.h:1043
@ ImGuiButtonFlags_PressedOnClick
Definition imgui_internal.h:1040
IMGUI_API int ImParseFormatPrecision(const char *format, int default_value)
Definition imgui_widgets.cpp:3689
IMGUI_API void ImFontAtlasFontDestroySourceData(ImFontAtlas *atlas, ImFontConfig *src)
Definition imgui_draw.cpp:3717
IMGUI_API void ImTextInitClassifiers()
Definition imgui_draw.cpp:5492
IMGUI_API ImU64 ImFileWrite(const void *data, ImU64 size, ImU64 count, ImFileHandle file)
Definition imgui.cpp:2532
IMGUI_API void ImFontAtlasTextureRepack(ImFontAtlas *atlas, int w, int h)
Definition imgui_draw.cpp:4098
ImU32 * ImBitArrayPtr
Definition imgui_internal.h:645
IMGUI_API void ImFontAtlasRemoveDrawListSharedData(ImFontAtlas *atlas, ImDrawListSharedData *data)
Definition imgui_draw.cpp:3994
IMGUI_API bool ImFileClose(ImFileHandle file)
Definition imgui.cpp:2529
int ImGuiNextWindowDataFlags
Definition imgui_internal.h:207
IM_MSVC_RUNTIME_CHECKS_OFF char ImToUpper(char c)
Definition imgui_internal.h:404
#define IM_MEMALIGN(_OFF, _ALIGN)
Definition imgui_internal.h:280
ImGuiDebugLogFlags_
Definition imgui_internal.h:2085
@ ImGuiDebugLogFlags_EventDocking
Definition imgui_internal.h:2098
@ ImGuiDebugLogFlags_EventViewport
Definition imgui_internal.h:2099
@ ImGuiDebugLogFlags_EventSelection
Definition imgui_internal.h:2094
@ ImGuiDebugLogFlags_EventClipper
Definition imgui_internal.h:2093
@ ImGuiDebugLogFlags_OutputToTTY
Definition imgui_internal.h:2102
@ ImGuiDebugLogFlags_EventError
Definition imgui_internal.h:2088
@ ImGuiDebugLogFlags_EventFocus
Definition imgui_internal.h:2090
@ ImGuiDebugLogFlags_EventActiveId
Definition imgui_internal.h:2089
@ ImGuiDebugLogFlags_OutputToTestEngine
Definition imgui_internal.h:2104
@ ImGuiDebugLogFlags_EventNav
Definition imgui_internal.h:2092
@ ImGuiDebugLogFlags_EventIO
Definition imgui_internal.h:2095
@ ImGuiDebugLogFlags_OutputToDebugger
Definition imgui_internal.h:2103
@ ImGuiDebugLogFlags_EventInputRouting
Definition imgui_internal.h:2097
@ ImGuiDebugLogFlags_EventMask_
Definition imgui_internal.h:2101
@ ImGuiDebugLogFlags_None
Definition imgui_internal.h:2087
@ ImGuiDebugLogFlags_EventFont
Definition imgui_internal.h:2096
@ ImGuiDebugLogFlags_EventPopup
Definition imgui_internal.h:2091
IMGUI_API const char * ImFontCalcWordWrapPositionEx(ImFont *font, float size, const char *text, const char *text_end, float wrap_width, ImDrawTextFlags flags=0)
Definition imgui_draw.cpp:5512
IMGUI_API void ImFontAtlasBuildRenderBitmapFromString(ImFontAtlas *atlas, int x, int y, int w, int h, const char *in_str, char in_marker_char)
Definition imgui_draw.cpp:3538
void ImBitArrayClearAllBits(ImU32 *arr, int bitcount)
Definition imgui_internal.h:628
ImWcharClass
Definition imgui_internal.h:448
@ ImWcharClass_Punct
Definition imgui_internal.h:449
@ ImWcharClass_Other
Definition imgui_internal.h:449
@ ImWcharClass_Blank
Definition imgui_internal.h:449
float ImExponentialMovingAverage(float avg, float sample, int n)
Definition imgui_internal.h:541
#define ImGuiKey_Aliases_END
Definition imgui_internal.h:1510
int ImGuiSeparatorFlags
Definition imgui_internal.h:209
FILE * ImFileHandle
Definition imgui_internal.h:467
IMGUI_API const char * ImParseFormatFindStart(const char *format)
Definition imgui_widgets.cpp:3589
IMGUI_API void ImFontAtlasBakedDiscard(ImFontAtlas *atlas, ImFont *font, ImFontBaked *baked)
Definition imgui_draw.cpp:3928
float ImSaturate(float f)
Definition imgui_internal.h:524
bool ImCharIsBlankA(char c)
Definition imgui_internal.h:405
ImGuiSliderFlagsPrivate_
Definition imgui_internal.h:1071
@ ImGuiSliderFlags_ReadOnly
Definition imgui_internal.h:1073
@ ImGuiSliderFlags_Vertical
Definition imgui_internal.h:1072
IMGUI_API void ImFontAtlasBuildLegacyPreloadAllGlyphRanges(ImFontAtlas *atlas)
Definition imgui_draw.cpp:3508
IMGUI_API void ImFontAtlasBuildInit(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4281
IMGUI_API const char * ImStristr(const char *haystack, const char *haystack_end, const char *needle, const char *needle_end)
Definition imgui.cpp:2219
IMGUI_API void ImStrTrimBlanks(char *str)
Definition imgui.cpp:2242
IMGUI_API void ImFontAtlasFontSourceAddToFont(ImFontAtlas *atlas, ImFont *font, ImFontConfig *src)
Definition imgui_draw.cpp:3704
IMGUI_API const char * ImStreolRange(const char *str, const char *str_end)
Definition imgui.cpp:2205
IMGUI_API char * ImStrdup(const char *str)
Definition imgui.cpp:2163
ImStb::STB_TexteditState ImStbTexteditState
Definition imgui_internal.h:1232
IMGUI_API ImFontAtlasRectId ImFontAtlasPackAddRect(ImFontAtlas *atlas, int w, int h, ImFontAtlasRectEntry *overwrite_entry=NULL)
Definition imgui_draw.cpp:4419
IMGUI_API void ImFontAtlasTextureBlockPostProcessMultiply(ImFontAtlasPostProcessData *data, float multiply_factor)
Definition imgui_draw.cpp:2909
int ImGuiActivateFlags
Definition imgui_internal.h:198
IMGUI_API void ImFontAtlasBakedDiscardFontGlyph(ImFontAtlas *atlas, ImFont *font, ImFontBaked *baked, ImFontGlyph *glyph)
Definition imgui_draw.cpp:3853
IMGUI_API void ImTextClassifierClear(ImU32 *bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class)
Definition imgui_draw.cpp:5460
IMGUI_API ImVec2 ImBezierCubicClosestPoint(const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &p, int num_segments)
Definition imgui.cpp:2019
IMGUI_API void ImFontAtlasFontDestroyOutput(ImFontAtlas *atlas, ImFont *font)
Definition imgui_draw.cpp:3677
IMGUI_API ImVec2 ImFontCalcTextSizeEx(ImFont *font, float size, float max_width, float wrap_width, const char *text_begin, const char *text_end_display, const char *text_end, const char **out_remaining, ImVec2 *out_offset, ImDrawTextFlags flags)
Definition imgui_draw.cpp:5632
#define ImGuiKeyOwner_NoOwner
Definition imgui_internal.h:1573
ImGuiFocusRequestFlags_
Definition imgui_internal.h:1111
@ ImGuiFocusRequestFlags_RestoreFocusedChild
Definition imgui_internal.h:1113
@ ImGuiFocusRequestFlags_UnlessBelowModal
Definition imgui_internal.h:1114
@ ImGuiFocusRequestFlags_None
Definition imgui_internal.h:1112
IMGUI_API ImVec2 ImBezierQuadraticCalc(const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, float t)
Definition imgui_draw.cpp:1355
IMGUI_API void ImParseFormatSanitizeForPrinting(const char *fmt_in, char *fmt_out, size_t fmt_out_size)
Definition imgui_widgets.cpp:3639
IMGUI_API void ImFontAtlasPackDiscardRect(ImFontAtlas *atlas, ImFontAtlasRectId id)
Definition imgui_draw.cpp:4392
IMGUI_API void ImFontAtlasBakedAddFontGlyphAdvancedX(ImFontAtlas *atlas, ImFontBaked *baked, ImFontConfig *src, ImWchar codepoint, float advance_x)
Definition imgui_draw.cpp:5269
ImGuiTooltipFlags_
Definition imgui_internal.h:1124
@ ImGuiTooltipFlags_None
Definition imgui_internal.h:1125
@ ImGuiTooltipFlags_OverridePrevious
Definition imgui_internal.h:1126
ImGuiInputFlagsPrivate_
Definition imgui_internal.h:1619
@ ImGuiInputFlags_RepeatUntilKeyModsChangeFromNone
Definition imgui_internal.h:1629
@ ImGuiInputFlags_RepeatRateMask_
Definition imgui_internal.h:1643
@ ImGuiInputFlags_SupportedByIsMouseClicked
Definition imgui_internal.h:1650
@ ImGuiInputFlags_RepeatUntilMask_
Definition imgui_internal.h:1644
@ ImGuiInputFlags_CondActive
Definition imgui_internal.h:1639
@ ImGuiInputFlags_RepeatRateNavTweak
Definition imgui_internal.h:1624
@ ImGuiInputFlags_CondDefault_
Definition imgui_internal.h:1640
@ ImGuiInputFlags_SupportedByShortcut
Definition imgui_internal.h:1651
@ ImGuiInputFlags_SupportedBySetItemKeyOwner
Definition imgui_internal.h:1654
@ ImGuiInputFlags_RepeatRateDefault
Definition imgui_internal.h:1622
@ ImGuiInputFlags_LockUntilRelease
Definition imgui_internal.h:1635
@ ImGuiInputFlags_RepeatMask_
Definition imgui_internal.h:1645
@ ImGuiInputFlags_SupportedBySetNextItemShortcut
Definition imgui_internal.h:1652
@ ImGuiInputFlags_CondHovered
Definition imgui_internal.h:1638
@ ImGuiInputFlags_LockThisFrame
Definition imgui_internal.h:1634
@ ImGuiInputFlags_CondMask_
Definition imgui_internal.h:1646
@ ImGuiInputFlags_SupportedByIsKeyPressed
Definition imgui_internal.h:1649
@ ImGuiInputFlags_RepeatUntilRelease
Definition imgui_internal.h:1627
@ ImGuiInputFlags_RouteOptionsMask_
Definition imgui_internal.h:1648
@ ImGuiInputFlags_RepeatUntilOtherKeyPress
Definition imgui_internal.h:1630
@ ImGuiInputFlags_RouteTypeMask_
Definition imgui_internal.h:1647
@ ImGuiInputFlags_RepeatRateNavMove
Definition imgui_internal.h:1623
@ ImGuiInputFlags_SupportedBySetKeyOwner
Definition imgui_internal.h:1653
@ ImGuiInputFlags_RepeatUntilKeyModsChange
Definition imgui_internal.h:1628
ImGuiItemStatusFlags_
Definition imgui_internal.h:994
@ ImGuiItemStatusFlags_ToggledSelection
Definition imgui_internal.h:999
@ ImGuiItemStatusFlags_HasDisplayRect
Definition imgui_internal.h:997
@ ImGuiItemStatusFlags_HoveredRect
Definition imgui_internal.h:996
@ ImGuiItemStatusFlags_Deactivated
Definition imgui_internal.h:1002
@ ImGuiItemStatusFlags_HasShortcut
Definition imgui_internal.h:1006
@ ImGuiItemStatusFlags_Edited
Definition imgui_internal.h:998
@ ImGuiItemStatusFlags_HasDeactivated
Definition imgui_internal.h:1001
@ ImGuiItemStatusFlags_HoveredWindow
Definition imgui_internal.h:1003
@ ImGuiItemStatusFlags_EditedInternal
Definition imgui_internal.h:1008
@ ImGuiItemStatusFlags_None
Definition imgui_internal.h:995
@ ImGuiItemStatusFlags_HasClipRect
Definition imgui_internal.h:1005
@ ImGuiItemStatusFlags_Visible
Definition imgui_internal.h:1004
@ ImGuiItemStatusFlags_ToggledOpen
Definition imgui_internal.h:1000
T ImClamp(T v, T mn, T mx)
Definition imgui_internal.h:511
IMGUI_API void ImFontAtlasTextureCompact(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4266
ImFontLoader ImFontBuilderIO
Definition imgui_internal.h:3829
IMGUI_API bool ImFontAtlasFontInitOutput(ImFontAtlas *atlas, ImFont *font)
Definition imgui_draw.cpp:3666
IMGUI_API void ImFontAtlasTextureBlockCopy(ImTextureData *src_tex, int src_x, int src_y, ImTextureData *dst_tex, int dst_x, int dst_y, int w, int h)
Definition imgui_draw.cpp:2964
#define ImFontAtlasRectId_IndexMask_
Definition imgui_internal.h:3845
IMGUI_API ImFontBaked * ImFontAtlasBakedGetOrAdd(ImFontAtlas *atlas, ImFont *font, float font_size, float font_rasterizer_density)
Definition imgui_draw.cpp:5414
ImGuiWindowRefreshFlags_
Definition imgui_internal.h:1293
@ ImGuiWindowRefreshFlags_TryToAvoidRefresh
Definition imgui_internal.h:1295
@ ImGuiWindowRefreshFlags_RefreshOnHover
Definition imgui_internal.h:1296
@ ImGuiWindowRefreshFlags_RefreshOnFocus
Definition imgui_internal.h:1297
@ ImGuiWindowRefreshFlags_None
Definition imgui_internal.h:1294
IMGUI_API ImGuiID ImHashStr(const char *data, size_t data_size=0, ImGuiID seed=0)
Definition imgui.cpp:2439
ImGuiHoveredFlagsPrivate_
Definition imgui_internal.h:1022
@ ImGuiHoveredFlags_AllowedMaskForIsItemHovered
Definition imgui_internal.h:1025
@ ImGuiHoveredFlags_DelayMask_
Definition imgui_internal.h:1023
@ ImGuiHoveredFlags_AllowedMaskForIsWindowHovered
Definition imgui_internal.h:1024
IMGUI_API void ImFontAtlasTextureBlockQueueUpload(ImFontAtlas *atlas, ImTextureData *tex, int x, int y, int w, int h)
Definition imgui_draw.cpp:2977
int ImGuiItemStatusFlags
Definition imgui_internal.h:201
int ImGuiLayoutType
Definition imgui_internal.h:194
#define ImGuiSelectionUserData_Invalid
Definition imgui_internal.h:1912
IMGUI_API void ImFontAtlasBuildUpdatePointers(ImFontAtlas *atlas)
Definition imgui_draw.cpp:3529
IMGUI_API const char * ImTextCalcWordWrapNextLineStart(const char *text, const char *text_end, ImDrawTextFlags flags=0)
Definition imgui_draw.cpp:5450
ImGuiOldColumnFlags_
Definition imgui_internal.h:1828
@ ImGuiOldColumnFlags_GrowParentContentsSize
Definition imgui_internal.h:1834
@ ImGuiOldColumnFlags_NoResize
Definition imgui_internal.h:1831
@ ImGuiOldColumnFlags_None
Definition imgui_internal.h:1829
@ ImGuiOldColumnFlags_NoPreserveWidths
Definition imgui_internal.h:1832
@ ImGuiOldColumnFlags_NoBorder
Definition imgui_internal.h:1830
@ ImGuiOldColumnFlags_NoForceWithinWindow
Definition imgui_internal.h:1833
ImGuiInputEventType
Definition imgui_internal.h:1523
@ ImGuiInputEventType_None
Definition imgui_internal.h:1524
@ ImGuiInputEventType_Focus
Definition imgui_internal.h:1530
@ ImGuiInputEventType_Text
Definition imgui_internal.h:1529
@ ImGuiInputEventType_MouseWheel
Definition imgui_internal.h:1526
@ ImGuiInputEventType_COUNT
Definition imgui_internal.h:1531
@ ImGuiInputEventType_Key
Definition imgui_internal.h:1528
@ ImGuiInputEventType_MousePos
Definition imgui_internal.h:1525
@ ImGuiInputEventType_MouseButton
Definition imgui_internal.h:1527
float ImTrunc(float f)
Definition imgui_internal.h:528
void(* ImGuiErrorCallback)(ImGuiContext *ctx, void *user_data, const char *msg)
Definition imgui_internal.h:2077
IMGUI_API void * ImMemdup(const void *src, size_t size)
Definition imgui.cpp:2170
bool ImIsPowerOfTwo(int v)
Definition imgui_internal.h:382
ImVec2 ImMul(const ImVec2 &lhs, const ImVec2 &rhs)
Definition imgui_internal.h:539
IMGUI_API void ImFontAtlasTextureBlockFill(ImTextureData *dst_tex, int dst_x, int dst_y, int w, int h, ImU32 col)
Definition imgui_draw.cpp:2944
int ImGuiOldColumnFlags
Definition imgui_internal.h:202
IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API ImVec2 ImBezierCubicCalc(const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, float t)
Definition imgui_draw.cpp:1345
IMGUI_API void ImFontAtlasBuildClear(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4251
ImU16 ImGuiTableDrawChannelIdx
Definition imgui_internal.h:218
bool operator!=(const ImTextureRef &lhs, const ImTextureRef &rhs)
Definition imgui_internal.h:3842
int ImGuiNavRenderCursorFlags
Definition imgui_internal.h:204
IMGUI_API void ImFontAtlasBuildSetupFontLoader(ImFontAtlas *atlas, const ImFontLoader *font_loader)
Definition imgui_draw.cpp:3482
int ImGuiFocusRequestFlags
Definition imgui_internal.h:200
IMGUI_API void ImFontAtlasBuildDiscardBakes(ImFontAtlas *atlas, int unused_frames)
Definition imgui_draw.cpp:3973
#define ImGuiKey_LegacyNativeKey_END
Definition imgui_internal.h:1502
float ImDot(const ImVec2 &a, const ImVec2 &b)
Definition imgui_internal.h:535
IMGUI_API ImU32 ImAlphaBlendColors(ImU32 col_a, ImU32 col_b)
Definition imgui.cpp:2800
ImGuiPopupPositionPolicy
Definition imgui_internal.h:1472
@ ImGuiPopupPositionPolicy_ComboBox
Definition imgui_internal.h:1474
@ ImGuiPopupPositionPolicy_Tooltip
Definition imgui_internal.h:1475
@ ImGuiPopupPositionPolicy_Default
Definition imgui_internal.h:1473
ImGuiPlotType
Definition imgui_internal.h:1158
@ ImGuiPlotType_Histogram
Definition imgui_internal.h:1160
@ ImGuiPlotType_Lines
Definition imgui_internal.h:1159
unsigned int ImFontAtlasRectId_GetGeneration(ImFontAtlasRectId id)
Definition imgui_internal.h:3849
void ImSwap(T &a, T &b)
Definition imgui_internal.h:514
T ImLerp(double a, double b, float t)
Definition imgui_internal.h:512
IMGUI_API ImGuiID ImFontAtlasBakedGetId(ImGuiID font_id, float baked_size, float rasterizer_density)
Definition imgui_draw.cpp:5381
IMGUI_API const char * ImParseFormatTrimDecorations(const char *format, char *buf, size_t buf_size)
Definition imgui_widgets.cpp:3624
float ImTrunc64(float f)
Definition imgui_internal.h:532
ImS16 ImGuiKeyRoutingIndex
Definition imgui_internal.h:1576
IMGUI_API const ImFontLoader * ImFontAtlasGetFontLoaderForStbTruetype()
Definition imgui_draw.cpp:4823
IMGUI_API ImVec2 ImTriangleClosestPoint(const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p)
Definition imgui.cpp:2119
#define ImGuiKey_Keyboard_END
Definition imgui_internal.h:1504
float ImSign(float x)
Definition imgui_internal.h:498
#define ImFabs(X)
Definition imgui_internal.h:482
int ImFontAtlasRectId_GetIndex(ImFontAtlasRectId id)
Definition imgui_internal.h:3848
void(* ImGuiContextHookCallback)(ImGuiContext *ctx, ImGuiContextHook *hook)
Definition imgui_internal.h:2181
IMGUI_API void ImFontAtlasTextureMakeSpace(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4202
IMGUI_API ImVec2 ImLineClosestPoint(const ImVec2 &a, const ImVec2 &b, const ImVec2 &p)
Definition imgui.cpp:2087
IMGUI_API void ImTextClassifierSetCharClassFromStr(ImU32 *bits, unsigned int codepoint_min, unsigned int codepoint_end, ImWcharClass char_class, const char *s)
Definition imgui_draw.cpp:5475
ImGuiInputSource
Definition imgui_internal.h:1535
@ ImGuiInputSource_Mouse
Definition imgui_internal.h:1537
@ ImGuiInputSource_Gamepad
Definition imgui_internal.h:1539
@ ImGuiInputSource_COUNT
Definition imgui_internal.h:1540
@ ImGuiInputSource_Keyboard
Definition imgui_internal.h:1538
@ ImGuiInputSource_None
Definition imgui_internal.h:1536
void ImQsort(void *base, size_t count, size_t size_of_element, int(IMGUI_CDECL *compare_func)(void const *, void const *))
Definition imgui_internal.h:375
ImGuiTabItemFlagsPrivate_
Definition imgui_internal.h:2805
@ ImGuiTabItemFlags_NoCloseButton
Definition imgui_internal.h:2807
@ ImGuiTabItemFlags_Invisible
Definition imgui_internal.h:2809
@ ImGuiTabItemFlags_Button
Definition imgui_internal.h:2808
@ ImGuiTabItemFlags_SectionMask_
Definition imgui_internal.h:2806
IMGUI_API void ImFontAtlasUpdateDrawListsSharedData(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4027
#define ImGuiKey_Mouse_END
Definition imgui_internal.h:1508
ImGuiNextItemDataFlags_
Definition imgui_internal.h:1352
@ ImGuiNextItemDataFlags_None
Definition imgui_internal.h:1353
@ ImGuiNextItemDataFlags_HasColorMarker
Definition imgui_internal.h:1359
@ ImGuiNextItemDataFlags_HasShortcut
Definition imgui_internal.h:1356
@ ImGuiNextItemDataFlags_HasOpen
Definition imgui_internal.h:1355
@ ImGuiNextItemDataFlags_HasStorageID
Definition imgui_internal.h:1358
@ ImGuiNextItemDataFlags_HasWidth
Definition imgui_internal.h:1354
@ ImGuiNextItemDataFlags_HasRefVal
Definition imgui_internal.h:1357
IMGUI_API void ImFontAtlasBuildMain(ImFontAtlas *atlas)
Definition imgui_draw.cpp:3451
#define ImGuiKey_LegacyNativeKey_BEGIN
Definition imgui_internal.h:1501
IMGUI_API void ImStrncpy(char *dst, const char *src, size_t count)
Definition imgui.cpp:2154
ImGuiNextWindowDataFlags_
Definition imgui_internal.h:1308
@ ImGuiNextWindowDataFlags_HasSizeConstraint
Definition imgui_internal.h:1314
@ ImGuiNextWindowDataFlags_HasSize
Definition imgui_internal.h:1311
@ ImGuiNextWindowDataFlags_HasFocus
Definition imgui_internal.h:1315
@ ImGuiNextWindowDataFlags_HasBgAlpha
Definition imgui_internal.h:1316
@ ImGuiNextWindowDataFlags_HasChildFlags
Definition imgui_internal.h:1319
@ ImGuiNextWindowDataFlags_HasContentSize
Definition imgui_internal.h:1312
@ ImGuiNextWindowDataFlags_HasScroll
Definition imgui_internal.h:1317
@ ImGuiNextWindowDataFlags_None
Definition imgui_internal.h:1309
@ ImGuiNextWindowDataFlags_HasCollapsed
Definition imgui_internal.h:1313
@ ImGuiNextWindowDataFlags_HasWindowFlags
Definition imgui_internal.h:1318
@ ImGuiNextWindowDataFlags_HasRefreshPolicy
Definition imgui_internal.h:1320
@ ImGuiNextWindowDataFlags_HasPos
Definition imgui_internal.h:1310
IMGUI_API const char * ImTextureDataGetFormatName(ImTextureFormat format)
Definition imgui_draw.cpp:2474
IMGUI_API void ImFontAtlasBuildDestroy(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4329
ImGuiLayoutType_
Definition imgui_internal.h:1132
@ ImGuiLayoutType_Vertical
Definition imgui_internal.h:1134
@ ImGuiLayoutType_Horizontal
Definition imgui_internal.h:1133
float ImFloor(float f)
Definition imgui_internal.h:530
int ImGuiTypingSelectFlags
Definition imgui_internal.h:212
IMGUI_API void ImFontAtlasDebugLogTextureRequests(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4620
int ImGuiDebugLogFlags
Definition imgui_internal.h:199
IMGUI_API char * ImStrdupcpy(char *dst, size_t *p_dst_size, const char *str)
Definition imgui.cpp:2176
#define IM_DRAWLIST_ARCFAST_TABLE_SIZE
Definition imgui_internal.h:858
bool ImCharIsXdigitA(char c)
Definition imgui_internal.h:407
IMGUI_API ImTextureRect * ImFontAtlasPackGetRectSafe(ImFontAtlas *atlas, ImFontAtlasRectId id)
Definition imgui_draw.cpp:4480
IMGUI_API const char * ImHashSkipUncontributingPrefix(const char *label)
Definition imgui.cpp:2488
#define IM_BITARRAY_TESTBIT(_ARRAY, _N)
Definition imgui_internal.h:625
ImGuiLogFlags_
Definition imgui_internal.h:1139
@ ImGuiLogFlags_None
Definition imgui_internal.h:1140
@ ImGuiLogFlags_OutputTTY
Definition imgui_internal.h:1142
@ ImGuiLogFlags_OutputMask_
Definition imgui_internal.h:1146
@ ImGuiLogFlags_OutputFile
Definition imgui_internal.h:1143
@ ImGuiLogFlags_OutputBuffer
Definition imgui_internal.h:1144
@ ImGuiLogFlags_OutputClipboard
Definition imgui_internal.h:1145
ImGuiActivateFlags_
Definition imgui_internal.h:1692
@ ImGuiActivateFlags_PreferInput
Definition imgui_internal.h:1694
@ ImGuiActivateFlags_TryToPreserveState
Definition imgui_internal.h:1696
@ ImGuiActivateFlags_FromTabbing
Definition imgui_internal.h:1697
@ ImGuiActivateFlags_FromShortcut
Definition imgui_internal.h:1698
@ ImGuiActivateFlags_None
Definition imgui_internal.h:1693
@ ImGuiActivateFlags_PreferTweak
Definition imgui_internal.h:1695
@ ImGuiActivateFlags_FromFocusApi
Definition imgui_internal.h:1699
bool ImBitArrayTestBit(const ImU32 *arr, int n)
Definition imgui_internal.h:629
float ImRound64(float f)
Definition imgui_internal.h:533
IMGUI_API int ImStricmp(const char *str1, const char *str2)
Definition imgui.cpp:2140
IMGUI_API ImFontBaked * ImFontAtlasBakedAdd(ImFontAtlas *atlas, ImFont *font, float font_size, float font_rasterizer_density, ImGuiID baked_id)
Definition imgui_draw.cpp:3868
IMGUI_API ImFileHandle ImFileOpen(const char *filename, const char *mode)
Definition imgui.cpp:2504
IMGUI_API const char * ImStrbol(const char *buf_mid_line, const char *buf_begin)
Definition imgui.cpp:2211
IMGUI_API void ImFontAtlasTextureBlockConvert(const unsigned char *src_pixels, ImTextureFormat src_fmt, int src_pitch, unsigned char *dst_pixels, ImTextureFormat dst_fmt, int dst_pitch, int w, int h)
Definition imgui_draw.cpp:2865
#define IM_ROUND(_VAL)
Definition imgui_internal.h:284
float ImPow(float x, float y)
Definition imgui_internal.h:491
stbrp_node stbrp_node_im
Definition imgui_internal.h:3887
IMGUI_API void ImFontAtlasTextureBlockPostProcess(ImFontAtlasPostProcessData *data)
Definition imgui_draw.cpp:2902
ImGuiComboFlagsPrivate_
Definition imgui_internal.h:1065
@ ImGuiComboFlags_CustomPreview
Definition imgui_internal.h:1066
IMGUI_API const char * ImParseFormatSanitizeForScanning(const char *fmt_in, char *fmt_out, size_t fmt_out_size)
Definition imgui_widgets.cpp:3654
ImGuiSelectableFlagsPrivate_
Definition imgui_internal.h:1078
@ ImGuiSelectableFlags_SpanAvailWidth
Definition imgui_internal.h:1083
@ ImGuiSelectableFlags_NoHoldingActiveID
Definition imgui_internal.h:1080
@ ImGuiSelectableFlags_SelectOnClick
Definition imgui_internal.h:1081
@ ImGuiSelectableFlags_NoSetKeyOwner
Definition imgui_internal.h:1086
@ ImGuiSelectableFlags_NoPadWithHalfSpacing
Definition imgui_internal.h:1085
@ ImGuiSelectableFlags_SetNavIdOnHover
Definition imgui_internal.h:1084
@ ImGuiSelectableFlags_SelectOnRelease
Definition imgui_internal.h:1082
int ImGuiTooltipFlags
Definition imgui_internal.h:211
IMGUI_API int ImStrnicmp(const char *str1, const char *str2, size_t count)
Definition imgui.cpp:2147
ImGuiNavMoveFlags_
Definition imgui_internal.h:1733
@ ImGuiNavMoveFlags_Forwarded
Definition imgui_internal.h:1743
@ ImGuiNavMoveFlags_WrapY
Definition imgui_internal.h:1738
@ ImGuiNavMoveFlags_IsPageMove
Definition imgui_internal.h:1747
@ ImGuiNavMoveFlags_AlsoScoreVisibleSet
Definition imgui_internal.h:1741
@ ImGuiNavMoveFlags_IsTabbing
Definition imgui_internal.h:1746
@ ImGuiNavMoveFlags_AllowCurrentNavId
Definition imgui_internal.h:1740
@ ImGuiNavMoveFlags_DebugNoResult
Definition imgui_internal.h:1744
@ ImGuiNavMoveFlags_WrapX
Definition imgui_internal.h:1737
@ ImGuiNavMoveFlags_NoSelect
Definition imgui_internal.h:1749
@ ImGuiNavMoveFlags_LoopY
Definition imgui_internal.h:1736
@ ImGuiNavMoveFlags_None
Definition imgui_internal.h:1734
@ ImGuiNavMoveFlags_ScrollToEdgeY
Definition imgui_internal.h:1742
@ ImGuiNavMoveFlags_WrapMask_
Definition imgui_internal.h:1739
@ ImGuiNavMoveFlags_LoopX
Definition imgui_internal.h:1735
@ ImGuiNavMoveFlags_FocusApi
Definition imgui_internal.h:1745
@ ImGuiNavMoveFlags_Activate
Definition imgui_internal.h:1748
@ ImGuiNavMoveFlags_NoClearActiveId
Definition imgui_internal.h:1751
@ ImGuiNavMoveFlags_NoSetNavCursorVisible
Definition imgui_internal.h:1750
IMGUI_API int ImStrlenW(const ImWchar *str)
Definition imgui.cpp:2196
ImGuiTypingSelectFlags_
Definition imgui_internal.h:1791
@ ImGuiTypingSelectFlags_AllowBackspace
Definition imgui_internal.h:1793
@ ImGuiTypingSelectFlags_AllowSingleCharMode
Definition imgui_internal.h:1794
@ ImGuiTypingSelectFlags_None
Definition imgui_internal.h:1792
int ImGuiWindowBgClickFlags
Definition imgui_internal.h:213
IMGUI_API ImFontGlyph * ImFontAtlasBakedAddFontGlyph(ImFontAtlas *atlas, ImFontBaked *baked, ImFontConfig *src, const ImFontGlyph *in_glyph)
Definition imgui_draw.cpp:5215
IMGUI_API const char * ImTextureDataGetStatusName(ImTextureStatus status)
Definition imgui_draw.cpp:2461
#define ImGuiKey_Aliases_BEGIN
Definition imgui_internal.h:1509
IMGUI_API bool ImFontAtlasFontSourceInit(ImFontAtlas *atlas, ImFontConfig *src)
Definition imgui_draw.cpp:3696
T ImMin(T lhs, T rhs)
Definition imgui_internal.h:509
bool ImCharIsBlankW(unsigned int c)
Definition imgui_internal.h:406
IMGUI_API void ImFontAtlasFontRebuildOutput(ImFontAtlas *atlas, ImFont *font)
Definition imgui_draw.cpp:3688
float ImLinearRemapClamp(float s0, float s1, float d0, float d1, float x)
Definition imgui_internal.h:538
IMGUI_API void ImFontAtlasFontDiscardBakes(ImFontAtlas *atlas, ImFont *font, int unused_frames)
Definition imgui_draw.cpp:3958
int ImUpperPowerOfTwo(int v)
Definition imgui_internal.h:384
IMGUI_API void ImFontAtlasBakedSetFontGlyphBitmap(ImFontAtlas *atlas, ImFontBaked *baked, ImFontConfig *src, ImFontGlyph *glyph, ImTextureRect *r, const unsigned char *src_pixels, ImTextureFormat src_fmt, int src_pitch)
Definition imgui_draw.cpp:5292
bool ImTriangleIsClockwise(const ImVec2 &a, const ImVec2 &b, const ImVec2 &c)
Definition imgui_internal.h:554
float ImTriangleArea(const ImVec2 &a, const ImVec2 &b, const ImVec2 &c)
Definition imgui_internal.h:553
bool ImIsFloatAboveGuaranteedIntegerPrecision(float f)
Definition imgui_internal.h:540
ImGuiWindowBgClickFlags_
Definition imgui_internal.h:1302
@ ImGuiWindowBgClickFlags_Move
Definition imgui_internal.h:1304
@ ImGuiWindowBgClickFlags_None
Definition imgui_internal.h:1303
ImS16 ImGuiTableColumnIdx
Definition imgui_internal.h:217
#define ImFontAtlasRectId_GenerationMask_
Definition imgui_internal.h:3846
ImVec2 ImRotate(const ImVec2 &v, float cos_a, float sin_a)
Definition imgui_internal.h:536
T ImAddClampOverflow(T a, T b, T mn, T mx)
Definition imgui_internal.h:515
IMGUI_API const char * ImParseFormatFindEnd(const char *format)
Definition imgui_widgets.cpp:3602
ImGuiTreeNodeFlagsPrivate_
Definition imgui_internal.h:1091
@ ImGuiTreeNodeFlags_OpenOnMask_
Definition imgui_internal.h:1095
@ ImGuiTreeNodeFlags_NoNavFocus
Definition imgui_internal.h:1092
@ ImGuiTreeNodeFlags_UpsideDownArrow
Definition imgui_internal.h:1094
@ ImGuiTreeNodeFlags_ClipLabelForTrailingButton
Definition imgui_internal.h:1093
@ ImGuiTreeNodeFlags_DrawLinesMask_
Definition imgui_internal.h:1096
IMGUI_API ImU64 ImFileGetSize(ImFileHandle file)
Definition imgui.cpp:2530
ImGuiNavRenderCursorFlags_
Definition imgui_internal.h:1718
@ ImGuiNavHighlightFlags_NoRounding
Definition imgui_internal.h:1727
@ ImGuiNavHighlightFlags_None
Definition imgui_internal.h:1724
@ ImGuiNavRenderCursorFlags_NoRounding
Definition imgui_internal.h:1722
@ ImGuiNavHighlightFlags_AlwaysDraw
Definition imgui_internal.h:1726
@ ImGuiNavRenderCursorFlags_AlwaysDraw
Definition imgui_internal.h:1721
@ ImGuiNavRenderCursorFlags_Compact
Definition imgui_internal.h:1720
@ ImGuiNavHighlightFlags_Compact
Definition imgui_internal.h:1725
@ ImGuiNavRenderCursorFlags_None
Definition imgui_internal.h:1719
#define ImGuiKey_Gamepad_BEGIN
Definition imgui_internal.h:1505
#define ImGuiKey_Keyboard_BEGIN
Definition imgui_internal.h:1503
ImGuiTextFlags_
Definition imgui_internal.h:1118
@ ImGuiTextFlags_None
Definition imgui_internal.h:1119
@ ImGuiTextFlags_NoWidthForLargeClippedText
Definition imgui_internal.h:1120
IMGUI_API void ImFontAtlasUpdateNewFrame(ImFontAtlas *atlas, int frame_count, bool renderer_has_textures)
Definition imgui_draw.cpp:2764
IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API int ImFormatString(char *buf, size_t buf_size, const char *fmt,...) IM_FMTARGS(3)
Definition imgui.cpp:2288
IMGUI_API ImGuiID ImHashData(const void *data, size_t data_size, ImGuiID seed=0)
Definition imgui.cpp:2414
int ImGuiTextFlags
Definition imgui_internal.h:210
ImGuiDataTypePrivate_
Definition imgui_internal.h:957
@ ImGuiDataType_ID
Definition imgui_internal.h:959
@ ImGuiDataType_Pointer
Definition imgui_internal.h:958
IMGUI_API void ImTriangleBarycentricCoords(const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p, float &out_u, float &out_v, float &out_w)
Definition imgui.cpp:2108
size_t ImBitArrayGetStorageSizeInBytes(int bitcount)
Definition imgui_internal.h:627
ImGuiNavLayer
Definition imgui_internal.h:1755
@ ImGuiNavLayer_Menu
Definition imgui_internal.h:1757
@ ImGuiNavLayer_COUNT
Definition imgui_internal.h:1758
@ ImGuiNavLayer_Main
Definition imgui_internal.h:1756
IMGUI_API const char * ImStrSkipBlank(const char *str)
Definition imgui.cpp:2257
IMGUI_API void ImFontAtlasPackInit(ImFontAtlas *atlas)
Definition imgui_draw.cpp:4342
ImFontAtlasRectId ImFontAtlasRectId_Make(int index_idx, int gen_idx)
Definition imgui_internal.h:3850
int ImGuiNavMoveFlags
Definition imgui_internal.h:205
#define ImFontAtlasRectId_GenerationShift_
Definition imgui_internal.h:3847
GLFWwindow * window
Definition main.cpp:72
Definition imgui.cpp:1350
IMGUI_API void AddDrawListToDrawDataEx(ImDrawData *draw_data, ImVector< ImDrawList * > *out_list, ImDrawList *draw_list)
Definition imgui_draw.cpp:2284
IMGUI_API void ClosePopupsOverWindow(ImGuiWindow *ref_window, bool restore_focus_to_window_under_popup)
Definition imgui.cpp:12311
IMGUI_API bool DragBehavior(ImGuiID id, ImGuiDataType data_type, void *p_v, float v_speed, const void *p_min, const void *p_max, const char *format, ImGuiSliderFlags flags)
Definition imgui_widgets.cpp:2658
IMGUI_API void TableSortSpecsBuild(ImGuiTable *table)
Definition imgui_tables.cpp:3062
ImGuiWindow * GetCurrentWindowRead()
Definition imgui_internal.h:3181
const char * LocalizeGetMsg(ImGuiLocKey key)
Definition imgui_internal.h:3275
ImGuiKeyOwnerData * GetKeyOwnerData(ImGuiContext *ctx, ImGuiKey key)
Definition imgui_internal.h:3441
IMGUI_API void RegisterUserTexture(ImTextureData *tex)
Definition imgui.cpp:9017
ImGuiBoxSelectState * GetBoxSelectState(ImGuiID id)
Definition imgui_internal.h:3516
IMGUI_API void TableResetSettings(ImGuiTable *table)
Definition imgui_tables.cpp:3761
IMGUI_API void PopPasswordFont()
Definition imgui_widgets.cpp:4422
ImRect WindowRectAbsToRel(ImGuiWindow *window, const ImRect &r)
Definition imgui_internal.h:3199
IMGUI_API void SetScrollX(float scroll_x)
Definition imgui.cpp:11956
IMGUI_API ImGuiID AddContextHook(ImGuiContext *ctx, const ImGuiContextHook *hook)
Definition imgui.cpp:4538
IMGUI_API void ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_popup)
Definition imgui.cpp:12372
IMGUI_API void TableMergeDrawChannels(ImGuiTable *table)
Definition imgui_tables.cpp:2627
IMGUI_API bool ItemAdd(const ImRect &bb, ImGuiID id, const ImRect *nav_bb=NULL, ImGuiItemFlags extra_flags=0)
Definition imgui.cpp:11258
IMGUI_API ImVec2 ScrollToRectEx(ImGuiWindow *window, const ImRect &rect, ImGuiScrollFlags flags=0)
Definition imgui.cpp:11846
IMGUI_API float TableGetHeaderAngledMaxLabelWidth()
Definition imgui_tables.cpp:3121
IMGUI_API bool IsPopupOpen(const char *str_id, ImGuiPopupFlags flags=0)
Definition imgui.cpp:12171
IMGUI_API void RemoveSettingsHandler(const char *type_name)
Definition imgui.cpp:15500
IMGUI_API void DebugNodeWindowsListByBeginStackParent(ImGuiWindow **windows, int windows_size, ImGuiWindow *parent_in_begin_stack)
Definition imgui.cpp:17739
IMGUI_API void SetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, const ImRect &rect_rel)
Definition imgui.cpp:13119
ImRect WindowRectRelToAbs(ImGuiWindow *window, const ImRect &r)
Definition imgui_internal.h:3200
IMGUI_API void RenderDragDropTargetRectForItem(const ImRect &bb)
Definition imgui.cpp:15143
IMGUI_API void ShowFontAtlas(ImFontAtlas *atlas)
Definition imgui.cpp:16364
IMGUI_API void DebugRenderKeyboardPreview(ImDrawList *draw_list)
Definition imgui.cpp:16225
float GetFontRasterizerDensity()
Definition imgui_internal.h:3225
IMGUI_API void SeparatorTextEx(ImGuiID id, const char *label, const char *label_end, float extra_width)
Definition imgui_widgets.cpp:1735
IMGUI_API void ActivateItemByID(ImGuiID id)
Definition imgui.cpp:8828
IMGUI_API void NavClearPreferredPosForAxis(ImGuiAxis axis)
Definition imgui.cpp:13113
IMGUI_API void TreeNodeSetOpen(ImGuiID storage_id, bool open)
Definition imgui_widgets.cpp:6788
IMGUI_API void ClearActiveID()
Definition imgui.cpp:4732
IMGUI_API ImGuiWindowSettings * FindWindowSettingsByID(ImGuiID id)
Definition imgui.cpp:15661
IMGUI_API bool BeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags)
Definition imgui.cpp:12048
IMGUI_API ImGuiWindow * FindBlockingModal(ImGuiWindow *window)
Definition imgui.cpp:12216
IMGUI_API void DebugNodeTypingSelectState(ImGuiTypingSelectState *state)
Definition imgui_widgets.cpp:7727
IMGUI_API void Initialize()
Definition imgui.cpp:4381
ImGuiID GetCurrentFocusScope()
Definition imgui_internal.h:3488
IMGUI_API void RenderColorRectWithAlphaCheckerboard(ImDrawList *draw_list, ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, float grid_step, ImVec2 grid_off, float rounding=0.0f, ImDrawFlags flags=0)
Definition imgui_draw.cpp:6156
IMGUI_API void GetTypematicRepeatRate(ImGuiInputFlags flags, float *repeat_delay, float *repeat_rate)
Definition imgui.cpp:9521
IMGUI_API bool ItemHoverable(const ImRect &bb, ImGuiID id, ImGuiItemFlags item_flags)
Definition imgui.cpp:4928
bool IsNamedKey(ImGuiKey key)
Definition imgui_internal.h:3394
float GetRoundedFontSize(float size)
Definition imgui_internal.h:3226
IMGUI_API void BringWindowToDisplayFront(ImGuiWindow *window)
Definition imgui.cpp:12911
bool IsKeyboardKey(ImGuiKey key)
Definition imgui_internal.h:3397
IMGUI_API void RegisterFontAtlas(ImFontAtlas *atlas)
Definition imgui.cpp:9032
IMGUI_API void UnregisterUserTexture(ImTextureData *tex)
Definition imgui.cpp:9024
IMGUI_API ImGuiID GetWindowResizeCornerID(ImGuiWindow *window, int n)
Definition imgui.cpp:6889
IMGUI_API void SetWindowClipRectBeforeSetChannel(ImGuiWindow *window, const ImRect &clip_rect)
Definition imgui_tables.cpp:4247
IMGUI_API void DebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList *out_draw_list, const ImDrawList *draw_list, const ImDrawCmd *draw_cmd, bool show_mesh, bool show_aabb)
Definition imgui.cpp:17306
ImGuiKey MouseButtonToKey(ImGuiMouseButton button)
Definition imgui_internal.h:3415
ImGuiID GetActiveID()
Definition imgui_internal.h:3293
IMGUI_API ImGuiSortDirection TableGetColumnNextSortDirection(ImGuiTableColumn *column)
Definition imgui_tables.cpp:2949
IMGUI_API void NavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags)
Definition imgui.cpp:13559
IMGUI_API void UnregisterFontAtlas(ImFontAtlas *atlas)
Definition imgui.cpp:9044
ImGuiID GetFocusID()
Definition imgui_internal.h:3294
IMGUI_API void DebugNodeTexture(ImTextureData *tex, int int_id, const ImFontAtlasRect *highlight_rect=NULL)
Definition imgui.cpp:16517
IMGUI_API void CallContextHooks(ImGuiContext *ctx, ImGuiContextHookType type)
Definition imgui.cpp:4559
IMGUI_API void BeginDisabledOverrideReenable()
Definition imgui.cpp:8333
IMGUI_API void RenderNavCursor(const ImRect &bb, ImGuiID id, ImGuiNavRenderCursorFlags flags=ImGuiNavRenderCursorFlags_None)
Definition imgui.cpp:4002
IMGUI_API void FocusWindow(ImGuiWindow *window, ImGuiFocusRequestFlags flags=0)
Definition imgui.cpp:12969
IMGUI_API void SetActiveID(ImGuiID id, ImGuiWindow *window)
Definition imgui.cpp:4667
IMGUI_API void PopColumnsBackground()
Definition imgui_tables.cpp:4396
IMGUI_API bool BeginTableEx(const char *name, ImGuiID id, int columns_count, ImGuiTableFlags flags=0, const ImVec2 &outer_size=ImVec2(0, 0), float inner_width=0.0f)
Definition imgui_tables.cpp:319
IMGUI_API bool SplitterBehavior(const ImRect &bb, ImGuiID id, ImGuiAxis axis, float *size1, float *size2, float min_size1, float min_size2, float hover_extend=0.0f, float hover_visibility_delay=0.0f, ImU32 bg_col=0)
Definition imgui_widgets.cpp:1801
IMGUI_API bool BeginPopupMenuEx(ImGuiID id, const char *label, ImGuiWindowFlags extra_window_flags)
Definition imgui.cpp:12449
IMGUI_API void SetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindow *window)
Definition imgui.cpp:8612
IMGUI_API bool BeginTooltipHidden()
Definition imgui.cpp:14808
IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button)
Definition imgui.cpp:9961
IMGUI_API bool TestShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id)
Definition imgui.cpp:9810
IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat=false)
Definition imgui.cpp:9909
ImVec2 WindowPosAbsToRel(ImGuiWindow *window, const ImVec2 &p)
Definition imgui_internal.h:3201
IMGUI_API ImGuiWindowSettings * CreateNewWindowSettings(const char *name)
Definition imgui.cpp:15640
IMGUI_API void TextAligned(float align_x, float size_x, const char *fmt,...)
Definition imgui_widgets.cpp:343
IMGUI_API void BeginColumns(const char *str_id, int count, ImGuiOldColumnFlags flags=0)
Definition imgui_tables.cpp:4434
IMGUI_API void EndErrorTooltip()
Definition imgui.cpp:11231
IMGUI_API ImVec2 FindBestWindowPosForPopup(ImGuiWindow *window)
Definition imgui.cpp:12736
IMGUI_API ImGuiIO & GetIO()
Definition imgui.cpp:5152
IMGUI_API void RenderCheckMark(ImDrawList *draw_list, ImVec2 pos, ImU32 col, float sz)
Definition imgui_draw.cpp:6028
IMGUI_API void TabBarRemoveTab(ImGuiTabBar *tab_bar, ImGuiID tab_id)
Definition imgui_widgets.cpp:10225
IMGUI_API void EndDisabledOverrideReenable()
Definition imgui.cpp:8344
IMGUI_API void TableUpdateBorders(ImGuiTable *table)
Definition imgui_tables.cpp:1347
IMGUI_API void BringWindowToDisplayBack(ImGuiWindow *window)
Definition imgui.cpp:12926
IMGUI_API void RenderRectFilledWithHole(ImDrawList *draw_list, const ImRect &outer, const ImRect &inner, ImU32 col, float rounding)
Definition imgui_draw.cpp:6125
IMGUI_API int TypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest *req, int items_count, const char *(*get_item_name_func)(void *, int), void *user_data, int nav_item_idx)
Definition imgui_widgets.cpp:7684
IMGUI_API void FindHoveredWindowEx(const ImVec2 &pos, bool find_first_and_in_any_viewport, ImGuiWindow **out_hovered_window, ImGuiWindow **out_hovered_window_under_moving_window)
Definition imgui.cpp:6189
IMGUI_API void DebugTextUnformattedWithLocateItem(const char *line_begin, const char *line_end)
Definition imgui.cpp:17904
IMGUI_API const ImGuiStyleVarInfo * GetStyleVarInfo(ImGuiStyleVar idx)
Definition imgui.cpp:3671
IMGUI_API void EndBoxSelect(const ImRect &scope_rect, ImGuiMultiSelectFlags ms_flags)
Definition imgui_widgets.cpp:7914
IMGUI_API const char * TableGetColumnName(int column_n=-1)
Definition imgui_tables.cpp:1750
IMGUI_API bool TempInputScalar(const ImRect &bb, ImGuiID id, const char *label, ImGuiDataType data_type, void *p_data, const char *format, const void *p_clamp_min=NULL, const void *p_clamp_max=NULL)
Definition imgui_widgets.cpp:3745
IMGUI_API ImGuiID GetKeyOwner(ImGuiKey key)
Definition imgui.cpp:10605
IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem *items, int count, float width_excess, float width_min)
Definition imgui_widgets.cpp:1870
IMGUI_API void PushColumnsBackground()
Definition imgui_tables.cpp:4383
IMGUI_API void UpdateMouseMovingWindowNewFrame()
Definition imgui.cpp:5286
IMGUI_API void NavHighlightActivated(ImGuiID id)
Definition imgui.cpp:13106
IMGUI_API ImGuiPlatformIO & GetPlatformIO()
Definition imgui.cpp:5165
IMGUI_API bool ErrorLog(const char *msg)
Definition imgui.cpp:11108
IMGUI_API void TableRemove(ImGuiTable *table)
Definition imgui_tables.cpp:4049
IMGUI_API bool NavMoveRequestButNoResultYet()
Definition imgui.cpp:13498
IMGUI_API void TableBeginInitMemory(ImGuiTable *table, int columns_count)
Definition imgui_tables.cpp:658
IMGUI_API void SetScrollY(float scroll_y)
Definition imgui.cpp:11962
IMGUI_API bool BeginViewportSideBar(const char *name, ImGuiViewport *viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags)
Definition imgui_widgets.cpp:9241
IMGUI_API ImGuiID GetWindowScrollbarID(ImGuiWindow *window, ImGuiAxis axis)
Definition imgui_widgets.cpp:967
IMGUI_API float TableCalcMaxColumnWidth(const ImGuiTable *table, int column_n)
Definition imgui_tables.cpp:2290
IMGUI_API void MultiSelectItemHeader(ImGuiID id, bool *p_selected, ImGuiButtonFlags *p_button_flags)
Definition imgui_widgets.cpp:8233
IMGUI_API ImGuiID GetColumnsID(const char *str_id, int count)
Definition imgui_tables.cpp:4421
IMGUI_API void NavMoveRequestCancel()
Definition imgui.cpp:13551
IMGUI_API ImGuiKeyRoutingData * GetShortcutRoutingData(ImGuiKeyChord key_chord)
Definition imgui.cpp:9603
IMGUI_API void RenderBullet(ImDrawList *draw_list, ImVec2 pos, ImU32 col)
Definition imgui_draw.cpp:6021
IMGUI_API const char * GetKeyChordName(ImGuiKeyChord key_chord)
Definition imgui.cpp:9483
IMGUI_API void DebugNodeTableSettings(ImGuiTableSettings *settings)
Definition imgui_tables.cpp:4193
IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat=true)
Definition imgui.cpp:9835
IMGUI_API void StopMouseMovingWindow()
Definition imgui.cpp:5272
IMGUI_API ImGuiTableSettings * TableGetBoundSettings(ImGuiTable *table)
Definition imgui_tables.cpp:3746
IMGUI_API void TableFixDisplayOrder(ImGuiTable *table)
Definition imgui_tables.cpp:3906
IMGUI_API bool ScrollbarEx(const ImRect &bb, ImGuiID id, ImGuiAxis axis, ImS64 *p_scroll_v, ImS64 avail_v, ImS64 contents_v, ImDrawFlags draw_rounding_flags=0)
Definition imgui_widgets.cpp:1020
IMGUI_API bool IsWindowWithinBeginStackOf(ImGuiWindow *window, ImGuiWindow *potential_parent)
Definition imgui.cpp:8410
IMGUI_API void TextAlignedV(float align_x, float size_x, const char *fmt, va_list args)
Definition imgui_widgets.cpp:354
IMGUI_API void TableSettingsAddSettingsHandler()
Definition imgui_tables.cpp:4027
IMGUI_API ImGuiTabItem * TabBarFindTabByOrder(ImGuiTabBar *tab_bar, int order)
Definition imgui_widgets.cpp:10202
IMGUI_API void ItemSize(const ImVec2 &size, float text_baseline_y=-1.0f)
Definition imgui.cpp:11396
IMGUI_API void DebugNodeMultiSelectState(ImGuiMultiSelectState *state)
Definition imgui_widgets.cpp:8556
IMGUI_API void LogToBuffer(int auto_open_depth=-1)
Definition imgui.cpp:15360
IMGUI_API bool TabItemEx(ImGuiTabBar *tab_bar, const char *label, bool *p_open, ImGuiTabItemFlags flags, ImGuiWindow *docked_window)
Definition imgui_widgets.cpp:10561
IMGUI_API void TableGcCompactSettings()
Definition imgui_tables.cpp:4083
bool TempInputIsActive(ImGuiID id)
Definition imgui_internal.h:3708
IMGUI_API bool CloseButton(ImGuiID id, const ImVec2 &pos)
Definition imgui_widgets.cpp:903
ImGuiKeyChord FixupKeyChord(ImGuiKeyChord key_chord)
Definition imgui.cpp:9420
IMGUI_API void TablePopBackgroundChannel()
Definition imgui_tables.cpp:2503
IMGUI_API void TableDrawBorders(ImGuiTable *table)
Definition imgui_tables.cpp:2810
IMGUI_API void TableQueueSetColumnDisplayOrder(ImGuiTable *table, int column_n, int dst_order)
Definition imgui_tables.cpp:779
IMGUI_API void MultiSelectAddSetAll(ImGuiMultiSelectTempData *ms, bool selected)
Definition imgui_widgets.cpp:8527
IMGUI_API void NavInitRequestApplyResult()
Definition imgui.cpp:13921
IMGUI_API bool BeginDragDropTargetViewport(ImGuiViewport *viewport, const ImRect *p_bb=NULL)
Definition imgui.cpp:15031
IMGUI_API void DebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, const void *data_id, const void *data_id_end)
Definition imgui.cpp:18097
IMGUI_API void Scrollbar(ImGuiAxis axis)
Definition imgui_widgets.cpp:998
IMGUI_API void PushColumnClipRect(int column_index)
Definition imgui_tables.cpp:4371
ImGuiID TableGetInstanceID(ImGuiTable *table, int instance_no)
Definition imgui_internal.h:3560
IMGUI_API void TableSetColumnDisplayOrder(ImGuiTable *table, int column_n, int dst_order)
Definition imgui_tables.cpp:733
IMGUI_API ImGuiTabBar * TabBarFindByID(ImGuiID id)
Definition imgui_widgets.cpp:9763
IMGUI_API void SetNavCursorVisibleAfterMove()
Definition imgui.cpp:13079
IMGUI_API void SetContextName(ImGuiContext *ctx, const char *name)
Definition imgui.cpp:4532
IMGUI_API ImGuiTable * TableFindByID(ImGuiID id)
Definition imgui_tables.cpp:306
IMGUI_API bool ImageButtonEx(ImGuiID id, ImTextureRef tex_ref, const ImVec2 &image_size, const ImVec2 &uv0, const ImVec2 &uv1, const ImVec4 &bg_col, const ImVec4 &tint_col, ImGuiButtonFlags flags=0)
Definition imgui_widgets.cpp:1175
IMGUI_API ImGuiTypingSelectRequest * GetTypingSelectRequest(ImGuiTypingSelectFlags flags=ImGuiTypingSelectFlags_None)
Definition imgui_widgets.cpp:7559
IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags=0)
Definition imgui.cpp:10767
IMGUI_API const char * TabBarGetTabName(ImGuiTabBar *tab_bar, ImGuiTabItem *tab)
Definition imgui_widgets.cpp:10216
IMGUI_API void TreeNodeDrawLineToTreePop(const ImGuiTreeNodeStackData *data)
Definition imgui_widgets.cpp:7181
IMGUI_API const ImGuiDataTypeInfo * DataTypeGetInfo(ImGuiDataType data_type)
Definition imgui_widgets.cpp:2276
IMGUI_API float TableGetHeaderRowHeight()
Definition imgui_tables.cpp:3105
IMGUI_API void NavUpdateCurrentWindowIsScrollPushableX()
Definition imgui.cpp:13342
IMGUI_API void TableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, bool append_to_sort_specs)
Definition imgui_tables.cpp:2963
IMGUI_API bool TreeNodeUpdateNextOpen(ImGuiID storage_id, ImGuiTreeNodeFlags flags)
Definition imgui_widgets.cpp:6795
IMGUI_API void SetActiveIdUsingAllKeyboardKeys()
Definition imgui.cpp:6367
IMGUI_API void DebugLocateItem(ImGuiID target_id)
Definition imgui.cpp:17963
IMGUI_API int DataTypeFormatString(char *buf, int buf_size, ImGuiDataType data_type, const void *p_data, const char *format)
Definition imgui_widgets.cpp:2282
IMGUI_API T ScaleValueFromRatioT(ImGuiDataType data_type, float t, T v_min, T v_max, float logarithmic_zero_epsilon, float zero_deadzone_size)
IMGUI_API ImGuiTableSettings * TableSettingsCreate(ImGuiID id, int columns_count)
Definition imgui_tables.cpp:3726
IMGUI_API void ClosePopupsExceptModals()
Definition imgui.cpp:12357
IMGUI_API void SetWindowSize(const ImVec2 &size, ImGuiCond cond=0)
Definition imgui.cpp:8581
IMGUI_API bool ButtonBehavior(const ImRect &bb, ImGuiID id, bool *out_hovered, bool *out_held, ImGuiButtonFlags flags=0)
Definition imgui_widgets.cpp:543
IMGUI_API void PopFocusScope()
Definition imgui.cpp:8763
IMGUI_API float CalcWrapWidthForPos(const ImVec2 &pos, float wrap_pos_x)
Definition imgui.cpp:5054
IMGUI_API void ScaleWindowsInViewport(ImGuiViewportP *viewport, float scale)
Definition imgui.cpp:15846
IMGUI_API void LogSetNextTextDecoration(const char *prefix, const char *suffix)
Definition imgui.cpp:15307
IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio=0.5f)
Definition imgui.cpp:12000
IMGUI_API bool IsDragDropPayloadBeingAccepted()
Definition imgui.cpp:15086
IMGUI_API void ShadeVertsLinearUV(ImDrawList *draw_list, int vert_start_idx, int vert_end_idx, const ImVec2 &a, const ImVec2 &b, const ImVec2 &uv_a, const ImVec2 &uv_b, bool clamp)
Definition imgui_draw.cpp:2393
IMGUI_API void LocalizeRegisterEntries(const ImGuiLocEntry *entries, int count)
Definition imgui.cpp:15790
IMGUI_API void TabItemSpacing(const char *str_id, ImGuiTabItemFlags flags, float width)
Definition imgui_widgets.cpp:10548
IMGUI_API void TabBarQueueFocus(ImGuiTabBar *tab_bar, ImGuiTabItem *tab)
Definition imgui_widgets.cpp:10299
IMGUI_API void DebugNodeColumns(ImGuiOldColumns *columns)
Definition imgui.cpp:17199
IMGUI_API void SetNextItemRefVal(ImGuiDataType data_type, void *p_data)
Definition imgui_widgets.cpp:3786
IMGUI_API void MultiSelectItemFooter(ImGuiID id, bool *p_selected, bool *p_pressed)
Definition imgui_widgets.cpp:8305
void RenderNavHighlight(const ImRect &bb, ImGuiID id, ImGuiNavRenderCursorFlags flags=ImGuiNavRenderCursorFlags_None)
Definition imgui_internal.h:3631
IMGUI_API void TablePushBackgroundChannel()
Definition imgui_tables.cpp:2491
IMGUI_API ImGuiWindow * GetTopMostPopupModal()
Definition imgui.cpp:12181
IMGUI_API void TableEndRow(ImGuiTable *table)
Definition imgui_tables.cpp:1981
IMGUI_API void ColorEditOptionsPopup(const float *col, ImGuiColorEditFlags flags)
Definition imgui_widgets.cpp:6580
IMGUI_API void ColorPickerOptionsPopup(const float *ref_col, ImGuiColorEditFlags flags)
Definition imgui_widgets.cpp:6634
IMGUI_API ImGuiKeyData * GetKeyData(ImGuiContext *ctx, ImGuiKey key)
Definition imgui.cpp:9429
IMGUI_API bool IsWindowNavFocusable(ImGuiWindow *window)
Definition imgui.cpp:14480
IMGUI_API void TableFixColumnSortDirection(ImGuiTable *table, ImGuiTableColumn *column)
Definition imgui_tables.cpp:2937
IMGUI_API void RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool borders=true, float rounding=0.0f)
Definition imgui.cpp:3968
IMGUI_API void PushMultiItemsWidths(int components, float width_full)
Definition imgui.cpp:11562
IMGUI_API bool BeginComboPopup(ImGuiID popup_id, const ImRect &bb, ImGuiComboFlags flags)
Definition imgui_widgets.cpp:2014
IMGUI_API void DebugBreakButtonTooltip(bool keyboard_only, const char *description_of_location)
Definition imgui.cpp:17149
IMGUI_API void UpdateMouseMovingWindowEndFrame()
Definition imgui.cpp:5323
IMGUI_API bool IsWindowChildOf(ImGuiWindow *window, ImGuiWindow *potential_parent, bool popup_hierarchy)
Definition imgui.cpp:8385
IMGUI_API void RenderTextClippedEx(ImDrawList *draw_list, const ImVec2 &pos_min, const ImVec2 &pos_max, const char *text, const char *text_end, const ImVec2 *text_size_if_known, const ImVec2 &align=ImVec2(0, 0), const ImRect *clip_rect=NULL)
Definition imgui.cpp:3876
IMGUI_API ImDrawList * GetForegroundDrawList()
Definition imgui.cpp:5236
IMGUI_API void TabBarQueueReorderFromMousePos(ImGuiTabBar *tab_bar, ImGuiTabItem *tab, ImVec2 mouse_pos)
Definition imgui_widgets.cpp:10319
IMGUI_API ImRect GetPopupAllowedExtentRect(ImGuiWindow *window)
Definition imgui.cpp:12726
IMGUI_API const char * FindRenderedTextEnd(const char *text, const char *text_end=NULL)
Definition imgui.cpp:3816
IMGUI_API void TableAngledHeadersRowEx(ImGuiID row_id, float angle, float max_label_width, const ImGuiTableHeaderData *data, int data_count)
Definition imgui_tables.cpp:3358
IMGUI_API void DebugLocateItemOnHover(ImGuiID target_id)
Definition imgui.cpp:17972
IMGUI_API void TableSetColumnWidthAutoAll(ImGuiTable *table)
Definition imgui_tables.cpp:2432
IMGUI_API void RenderTextEllipsis(ImDrawList *draw_list, const ImVec2 &pos_min, const ImVec2 &pos_max, float ellipsis_max_x, const char *text, const char *text_end, const ImVec2 *text_size_if_known)
Definition imgui.cpp:3923
IMGUI_API void LogRenderedText(const ImVec2 *ref_pos, const char *text, const char *text_end=NULL)
Definition imgui.cpp:15229
ImGuiMultiSelectState * GetMultiSelectState(ImGuiID id)
Definition imgui_internal.h:3517
IMGUI_API bool IsInNavFocusRoute(ImGuiID focus_scope_id)
Definition imgui.cpp:8771
IMGUI_API ImVec2 GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down)
Definition imgui.cpp:9545
IMGUI_API ImGuiViewport * GetMainViewport()
Definition imgui.cpp:15825
IMGUI_API bool IsClippedEx(const ImRect &bb, ImGuiID id)
Definition imgui.cpp:5020
IMGUI_API bool CheckboxFlagsT(const char *label, T *flags, T flags_value)
bool IsMouseKey(ImGuiKey key)
Definition imgui_internal.h:3399
IMGUI_API void TableSetColumnWidthAutoSingle(ImGuiTable *table, int column_n)
Definition imgui_tables.cpp:2422
ImVec2 WindowPosRelToAbs(ImGuiWindow *window, const ImVec2 &p)
Definition imgui_internal.h:3202
IMGUI_API void RenderArrow(ImDrawList *draw_list, ImVec2 pos, ImU32 col, ImGuiDir dir, float scale=1.0f)
Definition imgui_draw.cpp:5990
IMGUI_API float GetColumnOffsetFromNorm(const ImGuiOldColumns *columns, float offset_norm)
Definition imgui_tables.cpp:4267
IMGUI_API bool IsKeyDown(ImGuiKey key)
Definition imgui.cpp:9820
IMGUI_API ImGuiWindow * FindWindowByID(ImGuiID id)
Definition imgui.cpp:6612
IMGUI_API void MarkItemEdited(ImGuiID id)
Definition imgui.cpp:4752
IMGUI_API ImFont * GetDefaultFont()
Definition imgui.cpp:9007
IMGUI_API void GcCompactTransientWindowBuffers(ImGuiWindow *window)
Definition imgui.cpp:4645
IMGUI_API void SetWindowHitTestHole(ImGuiWindow *window, const ImVec2 &pos, const ImVec2 &size)
Definition imgui.cpp:8605
IMGUI_API void ClearIniSettings()
Definition imgui.cpp:15518
IMGUI_API bool BeginBoxSelect(const ImRect &scope_rect, ImGuiWindow *window, ImGuiID box_select_id, ImGuiMultiSelectFlags ms_flags)
Definition imgui_widgets.cpp:7819
IMGUI_API void ErrorCheckEndFrameFinalizeErrorTooltip()
Definition imgui.cpp:11155
IMGUI_API void KeepAliveID(ImGuiID id)
Definition imgui.cpp:11244
IMGUI_API void UpdateWindowParentAndRootLinks(ImGuiWindow *window, ImGuiWindowFlags flags, ImGuiWindow *parent_window)
Definition imgui.cpp:7354
IMGUI_API int TypingSelectFindMatch(ImGuiTypingSelectRequest *req, int items_count, const char *(*get_item_name_func)(void *, int), void *user_data, int nav_item_idx)
Definition imgui_widgets.cpp:7669
bool IsLegacyKey(ImGuiKey key)
Definition imgui_internal.h:3396
IMGUI_API void NavMoveRequestApplyResult()
Definition imgui.cpp:14127
IMGUI_API void TabItemBackground(ImDrawList *draw_list, const ImRect &bb, ImGuiTabItemFlags flags, ImU32 col)
Definition imgui_widgets.cpp:10842
IMGUI_API ImGuiTableSettings * TableSettingsFindByID(ImGuiID id)
Definition imgui_tables.cpp:3735
IMGUI_API void ShadeVertsTransformPos(ImDrawList *draw_list, int vert_start_idx, int vert_end_idx, const ImVec2 &pivot_in, float cos_a, float sin_a, const ImVec2 &pivot_out)
Definition imgui_draw.cpp:2417
IMGUI_API void TableUpdateLayout(ImGuiTable *table)
Definition imgui_tables.cpp:849
IMGUI_API ImGuiTabItem * TabBarFindTabByID(ImGuiTabBar *tab_bar, ImGuiID tab_id)
Definition imgui_widgets.cpp:10192
ImGuiViewport * GetWindowViewport()
Definition imgui_internal.h:3255
IMGUI_API ImGuiMouseButton GetMouseButtonFromPopupFlags(ImGuiPopupFlags flags)
Definition imgui.cpp:12540
IMGUI_API void SetFocusID(ImGuiID id, ImGuiWindow *window)
Definition imgui.cpp:13135
IMGUI_API void TableSortSpecsSanitize(ImGuiTable *table)
Definition imgui_tables.cpp:2996
IMGUI_API ImGuiTabItem * TabBarGetCurrentTab(ImGuiTabBar *tab_bar)
Definition imgui_widgets.cpp:10209
IMGUI_API void DebugNodeWindowsList(ImVector< ImGuiWindow * > *windows, const char *label)
Definition imgui.cpp:17725
IMGUI_API void BringWindowToDisplayBehind(ImGuiWindow *window, ImGuiWindow *above_window)
Definition imgui.cpp:12940
IMGUI_API ImGuiID TableGetColumnResizeID(ImGuiTable *table, int column_n, int instance_no=0)
Definition imgui_tables.cpp:1825
IMGUI_API bool BeginMenuEx(const char *label, const char *icon, bool enabled=true)
Definition imgui_widgets.cpp:9341
IMGUI_API void DebugNodeStorage(ImGuiStorage *storage, const char *label)
Definition imgui.cpp:17571
ImGuiItemStatusFlags GetItemStatusFlags()
Definition imgui_internal.h:3292
IMGUI_API float ScaleRatioFromValueT(ImGuiDataType data_type, T v, T v_min, T v_max, float logarithmic_zero_epsilon, float zero_deadzone_size)
IMGUI_API void TableSetColumnWidth(int column_n, float width)
Definition imgui_tables.cpp:2339
bool IsActiveIdUsingNavDir(ImGuiDir dir)
Definition imgui_internal.h:3423
IMGUI_API void ExtendHitBoxWhenNearViewportEdge(ImGuiWindow *window, ImRect *bb, float threshold, ImGuiAxis axis)
Definition imgui_widgets.cpp:988
IMGUI_API bool TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char *label, const char *label_end=NULL)
Definition imgui_widgets.cpp:6866
IMGUI_API bool BeginDragDropTargetCustom(const ImRect &bb, ImGuiID id)
Definition imgui.cpp:15002
IMGUI_API void DemoMarker(const char *file, int line, const char *section)
Definition imgui.cpp:5100
ImGuiInputTextState * GetInputTextState(ImGuiID id)
Definition imgui_internal.h:3709
IMGUI_API void RenderDragDropTargetRectEx(ImDrawList *draw_list, const ImRect &bb, float rounding)
Definition imgui.cpp:15158
IMGUI_API void NavMoveRequestTryWrapping(ImGuiWindow *window, ImGuiNavMoveFlags move_flags)
Definition imgui.cpp:13573
IMGUI_API bool IsWindowInBeginStack(ImGuiWindow *window)
Definition imgui.cpp:8401
IMGUI_API void RemoveContextHook(ImGuiContext *ctx, ImGuiID hook_to_remove)
Definition imgui.cpp:4548
void SetWindowParentWindowForFocusRoute(ImGuiWindow *window, ImGuiWindow *parent_window)
Definition imgui_internal.h:3198
IMGUI_API void ScrollToRect(ImGuiWindow *window, const ImRect &rect, ImGuiScrollFlags flags=0)
Definition imgui.cpp:11840
IMGUI_API void TablePushColumnChannel(int column_n)
Definition imgui_tables.cpp:2515
IMGUI_API bool DataTypeIsZero(ImGuiDataType data_type, const void *p_data)
Definition imgui_widgets.cpp:2468
IMGUI_API ImDrawFlags CalcRoundingFlagsForRectInRect(const ImRect &r_in, const ImRect &r_outer, float threshold)
Definition imgui_draw.cpp:6141
IMGUI_API void RenderText(ImVec2 pos, const char *text, const char *text_end=NULL, bool hide_text_after_hash=true)
Definition imgui.cpp:3829
IMGUI_API void TreeNodeDrawLineToChildNode(const ImVec2 &target_pos)
Definition imgui_widgets.cpp:7151
IMGUI_API bool BeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_window_flags)
Definition imgui.cpp:12429
IMGUI_API void TableLoadSettings(ImGuiTable *table)
Definition imgui_tables.cpp:3824
IMGUI_API void ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryState *state_in)
Definition imgui.cpp:11024
IMGUI_API void TableSetupDrawChannels(ImGuiTable *table)
Definition imgui_tables.cpp:2559
IMGUI_API void TabBarRemove(ImGuiTabBar *tab_bar)
Definition imgui_widgets.cpp:9770
IMGUI_API ImVec2 CalcWindowNextAutoFitSize(ImGuiWindow *window)
Definition imgui.cpp:6800
IMGUI_API ImGuiWindowSettings * FindWindowSettingsByWindow(ImGuiWindow *window)
Definition imgui.cpp:15671
IMGUI_API void SetItemKeyOwner(ImGuiKey key)
Definition imgui.cpp:10705
IMGUI_API void SetNavWindow(ImGuiWindow *window)
Definition imgui.cpp:13093
IMGUI_API void RenderTextWrapped(ImVec2 pos, const char *text, const char *text_end, float wrap_width)
Definition imgui.cpp:3855
IMGUI_API void UpdateCurrentFontSize(float restore_font_size_after_scaling)
Definition imgui.cpp:9085
IMGUI_API void DebugNodeViewport(ImGuiViewportP *viewport)
Definition imgui.cpp:17624
IMGUI_API ImVec2 TabItemCalcSize(const char *label, bool has_close_button_or_unsaved_marker)
Definition imgui_widgets.cpp:10824
IMGUI_API bool DragBehaviorT(ImGuiDataType data_type, T *v, float v_speed, T v_min, T v_max, const char *format, ImGuiSliderFlags flags)
IMGUI_API ImRect TableGetCellBgRect(const ImGuiTable *table, int column_n)
Definition imgui_tables.cpp:1810
IMGUI_API ImGuiWindow * GetTopMostAndVisiblePopupModal()
Definition imgui.cpp:12192
IMGUI_API int DataTypeCompare(ImGuiDataType data_type, const void *arg_1, const void *arg_2)
Definition imgui_widgets.cpp:2419
IMGUI_API void FocusTopMostWindowUnderOne(ImGuiWindow *under_this_window, ImGuiWindow *ignore_window, ImGuiViewport *filter_viewport, ImGuiFocusRequestFlags flags)
Definition imgui.cpp:13029
IMGUI_API void SetWindowPos(const ImVec2 &pos, ImGuiCond cond=0)
Definition imgui.cpp:8534
IMGUI_API void NavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags)
Definition imgui.cpp:13505
IMGUI_API void GcCompactTransientMiscBuffers()
Definition imgui.cpp:4627
IMGUI_API void RenderRectFilledInRangeH(ImDrawList *draw_list, const ImRect &rect, ImU32 col, float fill_x0, float fill_x1, float rounding)
Definition imgui_draw.cpp:6067
IMGUI_API bool TabBarProcessReorder(ImGuiTabBar *tab_bar)
Definition imgui_widgets.cpp:10356
IMGUI_API void UpdateWindowSkipRefresh(ImGuiWindow *window)
Definition imgui.cpp:7373
IMGUI_API void InputTextDeactivateHook(ImGuiID id)
Definition imgui_widgets.cpp:4579
IMGUI_API void TableSaveSettings(ImGuiTable *table)
Definition imgui_tables.cpp:3769
IMGUI_API void TextEx(const char *text, const char *text_end=NULL, ImGuiTextFlags flags=0)
Definition imgui_widgets.cpp:161
ImGuiTableInstanceData * TableGetInstanceData(ImGuiTable *table, int instance_no)
Definition imgui_internal.h:3559
IMGUI_API void UpdateInputEvents(bool trickle_fast_inputs)
Definition imgui.cpp:10467
IMGUI_API bool ArrowButtonEx(const char *str_id, ImGuiDir dir, ImVec2 size_arg, ImGuiButtonFlags flags=0)
Definition imgui_widgets.cpp:868
int TabBarGetTabOrder(ImGuiTabBar *tab_bar, ImGuiTabItem *tab)
Definition imgui_internal.h:3601
IMGUI_API ImRect GetWindowScrollbarRect(ImGuiWindow *window, ImGuiAxis axis)
Definition imgui_widgets.cpp:973
IMGUI_API bool IsWindowContentHoverable(ImGuiWindow *window, ImGuiHoveredFlags flags=0)
Definition imgui.cpp:4778
IMGUI_API ImDrawList * GetBackgroundDrawList()
Definition imgui.cpp:5225
IMGUI_API void RenderTextClipped(const ImVec2 &pos_min, const ImVec2 &pos_max, const char *text, const char *text_end, const ImVec2 *text_size_if_known, const ImVec2 &align=ImVec2(0, 0), const ImRect *clip_rect=NULL)
Definition imgui.cpp:3904
IMGUI_API ImGuiID GetIDWithSeed(const char *str_id_begin, const char *str_id_end, ImGuiID seed)
Definition imgui.cpp:9287
IMGUI_API bool IsKeyChordPressed(ImGuiKeyChord key_chord)
Definition imgui.cpp:10711
IMGUI_API bool CheckboxFlags(const char *label, int *flags, int flags_value)
Definition imgui_widgets.cpp:1343
IMGUI_API ImVec2 FindBestWindowPosForPopupEx(const ImVec2 &ref_pos, const ImVec2 &size, ImGuiDir *last_dir, const ImRect &r_outer, const ImRect &r_avoid, ImGuiPopupPositionPolicy policy)
Definition imgui.cpp:12651
IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond=0)
Definition imgui.cpp:8618
IMGUI_API bool MenuItemEx(const char *label, const char *icon, const char *shortcut=NULL, bool selected=false, bool enabled=true)
Definition imgui_widgets.cpp:9579
IMGUI_API void TableBeginCell(ImGuiTable *table, int column_n)
Definition imgui_tables.cpp:2196
IMGUI_API void DebugDrawLineExtents(ImU32 col=IM_COL32(255, 0, 0, 255))
Definition imgui.cpp:17940
bool IsLRModKey(ImGuiKey key)
Definition imgui_internal.h:3401
IMGUI_API void ScrollToItem(ImGuiScrollFlags flags=0)
Definition imgui.cpp:11833
IMGUI_API void DebugNodeInputTextState(ImGuiInputTextState *state)
Definition imgui_widgets.cpp:5701
IMGUI_API int CalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate)
Definition imgui.cpp:9507
IMGUI_API void SetHoveredID(ImGuiID id)
Definition imgui.cpp:4737
IMGUI_API void CalcClipRectVisibleItemsY(const ImRect &clip_rect, const ImVec2 &pos, float items_height, int *out_visible_start, int *out_visible_end)
Definition imgui.cpp:3536
IMGUI_API void TabItemLabelAndCloseButton(ImDrawList *draw_list, const ImRect &bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char *label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool *out_just_closed, bool *out_text_clipped)
Definition imgui_widgets.cpp:10869
IMGUI_API ImGuiWindow * FindWindowByName(const char *name)
Definition imgui.cpp:6618
IMGUI_API void PushPasswordFont()
Definition imgui_widgets.cpp:4406
IMGUI_API void SetLastItemData(ImGuiID item_id, ImGuiItemFlags item_flags, ImGuiItemStatusFlags status_flags, const ImRect &item_rect)
Definition imgui.cpp:5033
IMGUI_API void SetCurrentFont(ImFont *font, float font_size_before_scaling, float font_size_after_scaling)
Definition imgui.cpp:9063
IMGUI_API void OpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags=ImGuiPopupFlags_None)
Definition imgui.cpp:12256
IMGUI_API void DebugNodeFontGlyphsForSrcMask(ImFont *font, ImFontBaked *baked, int src_mask)
Definition imgui.cpp:17503
IMGUI_API void TabBarCloseTab(ImGuiTabBar *tab_bar, ImGuiTabItem *tab)
Definition imgui_widgets.cpp:10235
IMGUI_API bool DebugBreakButton(const char *label, const char *description_of_location)
Definition imgui.cpp:17163
IMGUI_API bool BeginChildEx(const char *name, ImGuiID id, const ImVec2 &size_arg, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags)
Definition imgui.cpp:6419
IMGUI_API void SetKeyOwner(ImGuiKey key, ImGuiID owner_id, ImGuiInputFlags flags=0)
Definition imgui.cpp:10658
ImGuiWindow * GetCurrentWindow()
Definition imgui_internal.h:3182
IMGUI_API bool IsWindowAbove(ImGuiWindow *potential_above, ImGuiWindow *potential_below)
Definition imgui.cpp:8423
IMGUI_API void ClearWindowSettings(const char *name)
Definition imgui.cpp:15680
IMGUI_API void DebugNodeTabBar(ImGuiTabBar *tab_bar, const char *label)
Definition imgui.cpp:17584
IMGUI_API bool TableBeginContextMenuPopup(ImGuiTable *table)
Definition imgui_tables.cpp:3520
bool IsAliasKey(ImGuiKey key)
Definition imgui_internal.h:3400
IMGUI_API bool BeginErrorTooltip()
Definition imgui.cpp:11207
IMGUI_API void ErrorRecoveryStoreState(ImGuiErrorRecoveryState *state_out)
Definition imgui.cpp:10967
IMGUI_API void TableBeginRow(ImGuiTable *table)
Definition imgui_tables.cpp:1944
IMGUI_API void SetNextWindowRefreshPolicy(ImGuiWindowRefreshFlags flags)
Definition imgui.cpp:8706
IMGUI_API ImVec2 CalcItemSize(ImVec2 size, float default_w, float default_h)
Definition imgui.cpp:11618
IMGUI_API void DebugDrawCursorPos(ImU32 col=IM_COL32(255, 0, 0, 255))
Definition imgui.cpp:17930
IMGUI_API int TypingSelectFindBestLeadingMatch(ImGuiTypingSelectRequest *req, int items_count, const char *(*get_item_name_func)(void *, int), void *user_data)
Definition imgui_widgets.cpp:7709
IMGUI_API ImGuiWindow * FindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow *window)
Definition imgui.cpp:5922
bool IsGamepadKey(ImGuiKey key)
Definition imgui_internal.h:3398
IMGUI_API int FindWindowDisplayIndex(ImGuiWindow *window)
Definition imgui.cpp:12962
IMGUI_API bool CollapseButton(ImGuiID id, const ImVec2 &pos)
Definition imgui_widgets.cpp:940
IMGUI_API void ShadeVertsLinearColorGradientKeepAlpha(ImDrawList *draw_list, int vert_start_idx, int vert_end_idx, ImVec2 gradient_p0, ImVec2 gradient_p1, ImU32 col0, ImU32 col1)
Definition imgui_draw.cpp:2369
IMGUI_API void LogBegin(ImGuiLogFlags flags, int auto_open_depth)
Definition imgui.cpp:15288
IMGUI_API void SeparatorEx(ImGuiSeparatorFlags flags, float thickness=1.0f)
Definition imgui_widgets.cpp:1650
IMGUI_API void DebugDrawItemRect(ImU32 col=IM_COL32(255, 0, 0, 255))
Definition imgui.cpp:17953
IMGUI_API void DebugBreakClearData()
Definition imgui.cpp:17140
IMGUI_API T RoundScalarWithFormatT(const char *format, ImGuiDataType data_type, T v)
IMGUI_API void PushOverrideID(ImGuiID id)
Definition imgui.cpp:9273
IMGUI_API bool SliderBehaviorT(const ImRect &bb, ImGuiID id, ImGuiDataType data_type, T *v, T v_min, T v_max, const char *format, ImGuiSliderFlags flags, ImRect *out_grab_bb)
IMGUI_API void RenderColorComponentMarker(const ImRect &bb, ImU32 col, float rounding)
Definition imgui.cpp:3993
IMGUI_API void PushFocusScope(ImGuiID id)
Definition imgui.cpp:8753
IMGUI_API bool TestKeyOwner(ImGuiKey key, ImGuiID owner_id)
Definition imgui.cpp:10625
IMGUI_API float GetNavTweakPressedAmount(ImGuiAxis axis)
Definition imgui.cpp:13720
IMGUI_API bool IsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold=-1.0f)
Definition imgui.cpp:10002
IMGUI_API int TableGetHoveredRow()
Definition imgui_tables.cpp:1845
IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio=0.5f)
Definition imgui.cpp:11994
IMGUI_API void FocusItem()
Definition imgui.cpp:8810
IMGUI_API bool DataTypeApplyFromText(const char *buf, ImGuiDataType data_type, void *p_data, const char *format, void *p_data_when_empty=NULL)
Definition imgui_widgets.cpp:2357
IMGUI_API void TreePushOverrideID(ImGuiID id)
Definition imgui_widgets.cpp:7223
IMGUI_API float GetColumnNormFromOffset(const ImGuiOldColumns *columns, float offset)
Definition imgui_tables.cpp:4272
ImGuiKey ConvertSingleModFlagToKey(ImGuiKey key)
Definition imgui_internal.h:3403
IMGUI_API ImGuiID GetHoveredID()
Definition imgui.cpp:4746
IMGUI_API void DebugNodeFontGlyph(ImFont *font, const ImFontGlyph *glyph)
Definition imgui.cpp:17554
IMGUI_API void ErrorCheckUsingSetCursorPosToExtendParentBoundaries()
Definition imgui.cpp:10869
IMGUI_API bool IsPopupOpenRequestForWindow(ImGuiPopupFlags flags)
Definition imgui.cpp:12564
IMGUI_API void GcAwakeTransientWindowBuffers(ImGuiWindow *window)
Definition imgui.cpp:4657
IMGUI_API void NavMoveRequestResolveWithLastItem(ImGuiNavItemData *result)
Definition imgui.cpp:13530
IMGUI_API void DataTypeApplyOp(ImGuiDataType data_type, int op, void *output, const void *arg_1, const void *arg_2)
Definition imgui_widgets.cpp:2305
IMGUI_API void DebugNodeWindowSettings(ImGuiWindowSettings *settings)
Definition imgui.cpp:17715
ImGuiTabBar * GetCurrentTabBar()
Definition imgui_internal.h:3594
bool IsNamedKeyOrMod(ImGuiKey key)
Definition imgui_internal.h:3395
IMGUI_API ImGuiSettingsHandler * FindSettingsHandler(const char *type_name)
Definition imgui.cpp:15507
IMGUI_API void SetNavFocusScope(ImGuiID focus_scope_id)
Definition imgui.cpp:8782
IMGUI_API void SetWindowViewport(ImGuiWindow *window, ImGuiViewportP *viewport)
Definition imgui.cpp:15831
IMGUI_API void ClearDragDrop()
Definition imgui.cpp:14792
IMGUI_API bool IsDragDropActive()
Definition imgui.cpp:14786
IMGUI_API float TableGetColumnWidthAuto(ImGuiTable *table, ImGuiTableColumn *column)
Definition imgui_tables.cpp:2322
IMGUI_API void RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding=0.0f)
Definition imgui.cpp:3981
IMGUI_API void RenderMouseCursor(ImVec2 pos, float scale, ImGuiMouseCursor mouse_cursor, ImU32 col_fill, ImU32 col_border, ImU32 col_shadow)
Definition imgui.cpp:4039
IMGUI_API void AddSettingsHandler(const ImGuiSettingsHandler *handler)
Definition imgui.cpp:15493
IMGUI_API bool DataTypeClamp(ImGuiDataType data_type, void *p_data, const void *p_min, const void *p_max)
Definition imgui_widgets.cpp:2448
IMGUI_API void MultiSelectAddSetRange(ImGuiMultiSelectTempData *ms, bool selected, int range_dir, ImGuiSelectionUserData first_item, ImGuiSelectionUserData last_item)
Definition imgui_widgets.cpp:8534
IMGUI_API void DebugNodeFont(ImFont *font)
Definition imgui.cpp:17351
IMGUI_API void TableEndCell(ImGuiTable *table)
Definition imgui_tables.cpp:2252
IMGUI_API ImU64 DebugTextureIDToU64(ImTextureID tex_id)
Definition imgui.cpp:16342
IMGUI_API void SetKeyOwnersForKeyChord(ImGuiKeyChord key, ImGuiID owner_id, ImGuiInputFlags flags=0)
Definition imgui.cpp:10675
IMGUI_API void NavInitWindow(ImGuiWindow *window, bool force_reinit)
Definition imgui.cpp:13636
IMGUI_API bool ButtonEx(const char *label, const ImVec2 &size_arg=ImVec2(0, 0), ImGuiButtonFlags flags=0)
Definition imgui_widgets.cpp:784
ImGuiTable * GetCurrentTable()
Definition imgui_internal.h:3545
IMGUI_API void TeleportMousePos(const ImVec2 &pos)
Definition imgui.cpp:10028
IMGUI_API void SetFontRasterizerDensity(float rasterizer_density)
Definition imgui.cpp:9144
IMGUI_API bool IsMouseReleased(ImGuiMouseButton button)
Definition imgui.cpp:9936
IMGUI_API bool SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID owner_id)
Definition imgui.cpp:9723
float GetScale()
Definition imgui_internal.h:3180
IMGUI_API bool BeginTabBarEx(ImGuiTabBar *tab_bar, const ImRect &bb, ImGuiTabBarFlags flags)
Definition imgui_widgets.cpp:9794
IMGUI_API ImGuiWindow * FindFrontMostVisibleChildWindow(ImGuiWindow *window)
Definition imgui.cpp:6597
IMGUI_API void NavMoveRequestResolveWithPastTreeNode(ImGuiNavItemData *result, const ImGuiTreeNodeStackData *tree_node_data)
Definition imgui.cpp:13539
IMGUI_API void DebugLocateItemResolveWithLastItem()
Definition imgui.cpp:17989
IMGUI_API void DebugNodeTable(ImGuiTable *table)
Definition imgui_tables.cpp:4119
IMGUI_API void TableUpdateColumnsWeightFromWidth(ImGuiTable *table)
Definition imgui_tables.cpp:2444
IMGUI_API void Shutdown()
Definition imgui.cpp:4442
void ScrollToBringRectIntoView(ImGuiWindow *window, const ImRect &rect)
Definition imgui_internal.h:3288
IMGUI_API ImGuiID GetWindowResizeBorderID(ImGuiWindow *window, ImGuiDir dir)
Definition imgui.cpp:6899
IMGUI_API bool IsMouseDown(ImGuiMouseButton button)
Definition imgui.cpp:9895
IMGUI_API void TablePopColumnChannel()
Definition imgui_tables.cpp:2529
IMGUI_API void MarkIniSettingsDirty()
Definition imgui.cpp:15478
IMGUI_API bool BeginComboPreview()
Definition imgui_widgets.cpp:2093
IMGUI_API ImGuiOldColumns * FindOrCreateColumns(ImGuiWindow *window, ImGuiID id)
Definition imgui_tables.cpp:4408
IMGUI_API void ErrorRecoveryTryToRecoverState(const ImGuiErrorRecoveryState *state_in)
Definition imgui.cpp:10986
IMGUI_API bool IsPopupOpenRequestForItem(ImGuiPopupFlags flags, ImGuiID id)
Definition imgui.cpp:12553
IMGUI_API void TableApplyExternalUnclipRect(ImGuiTable *table, ImRect &rect)
Definition imgui_tables.cpp:1332
IMGUI_API void RenderArrowPointingAt(ImDrawList *draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col)
Definition imgui_draw.cpp:6044
IMGUI_API bool IsKeyReleased(ImGuiKey key)
Definition imgui.cpp:9880
IMGUI_API void TableGcCompactTransientBuffers(ImGuiTable *table)
Definition imgui_tables.cpp:4061
void SetNextItemColorMarker(ImU32 col)
Definition imgui_internal.h:3717
IMGUI_API void TableBeginApplyRequests(ImGuiTable *table)
Definition imgui_tables.cpp:680
IMGUI_API void UpdateHoveredWindowAndCaptureFlags(const ImVec2 &mouse_pos)
Definition imgui.cpp:5391
IMGUI_API bool TempInputText(const ImRect &bb, ImGuiID id, const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition imgui_widgets.cpp:3714
IMGUI_API void DebugNodeDrawList(ImGuiWindow *window, ImGuiViewportP *viewport, const ImDrawList *draw_list, const char *label)
Definition imgui.cpp:17210
IMGUI_API void DebugRenderViewportThumbnail(ImDrawList *draw_list, ImGuiViewportP *viewport, const ImRect &bb)
Definition imgui.cpp:16174
IMGUI_API void DebugAllocHook(ImGuiDebugAllocInfo *info, int frame_count, void *ptr, size_t size)
Definition imgui.cpp:5108
IMGUI_API bool InputTextEx(const char *label, const char *hint, char *buf, int buf_size, const ImVec2 &size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition imgui_widgets.cpp:4696
IMGUI_API bool SliderBehavior(const ImRect &bb, ImGuiID id, ImGuiDataType data_type, void *p_v, const void *p_min, const void *p_max, const char *format, ImGuiSliderFlags flags, ImRect *out_grab_bb)
Definition imgui_widgets.cpp:3275
IMGUI_API void EndColumns()
Definition imgui_tables.cpp:4569
IMGUI_API void TableOpenContextMenu(int column_n=-1)
Definition imgui_tables.cpp:3501
IMGUI_API void ColorTooltip(const char *text, const float *col, ImGuiColorEditFlags flags)
Definition imgui_widgets.cpp:6544
IMGUI_API int PlotEx(ImGuiPlotType plot_type, const char *label, float(*values_getter)(void *data, int idx), void *data, int values_count, int values_offset, const char *overlay_text, float scale_min, float scale_max, const ImVec2 &size_arg)
Definition imgui_widgets.cpp:8896
bool IsItemActiveAsInputText()
Definition imgui_internal.h:3711
IMGUI_API void DebugNodeWindow(ImGuiWindow *window, const char *label)
Definition imgui.cpp:17647
IMGUI_API void StartMouseMovingWindow(ImGuiWindow *window)
Definition imgui.cpp:5247
IMGUI_API void TabBarQueueReorder(ImGuiTabBar *tab_bar, ImGuiTabItem *tab, int offset)
Definition imgui_widgets.cpp:10311
IMGUI_API void EndComboPreview()
Definition imgui_widgets.cpp:2120
IMGUI_API void TableDrawDefaultContextMenu(ImGuiTable *table, ImGuiTableFlags flags_for_section_to_display)
Definition imgui_tables.cpp:3569
IMGUI_API void BringWindowToFocusFront(ImGuiWindow *window)
Definition imgui.cpp:12888
Definition imgui_internal.h:1231
Definition imgui_internal.h:651
ImBitArray()
Definition imgui_internal.h:653
ImU32 Data[(BITCOUNT+31) > > 5]
Definition imgui_internal.h:652
void ClearBit(int n)
Definition imgui_internal.h:658
void SetAllBits()
Definition imgui_internal.h:655
void SetBitRange(int n, int n2)
Definition imgui_internal.h:659
bool TestBit(int n) const
Definition imgui_internal.h:656
void SetBit(int n)
Definition imgui_internal.h:657
void ClearAllBits()
Definition imgui_internal.h:654
bool operator[](int n) const
Definition imgui_internal.h:660
Definition imgui_internal.h:666
void Create(int sz)
Definition imgui_internal.h:668
ImVector< ImU32 > Storage
Definition imgui_internal.h:667
void Clear()
Definition imgui_internal.h:669
bool TestBit(int n) const
Definition imgui_internal.h:670
void ClearBit(int n)
Definition imgui_internal.h:672
void SetBit(int n)
Definition imgui_internal.h:671
Definition imgui_internal.h:800
int size() const
Definition imgui_internal.h:805
T * begin()
Definition imgui_internal.h:807
int chunk_size(const T *p)
Definition imgui_internal.h:809
T * alloc_chunk(size_t sz)
Definition imgui_internal.h:806
T * ptr_from_offset(int off)
Definition imgui_internal.h:812
T * next_chunk(T *p)
Definition imgui_internal.h:808
void clear()
Definition imgui_internal.h:803
T * end()
Definition imgui_internal.h:810
int offset_from_ptr(const T *p)
Definition imgui_internal.h:811
ImVector< char > Buf
Definition imgui_internal.h:801
void swap(ImChunkStream< T > &rhs)
Definition imgui_internal.h:813
bool empty() const
Definition imgui_internal.h:804
Definition imgui.h:3176
Definition imgui_internal.h:894
ImVector< ImDrawList * > * Layers[2]
Definition imgui_internal.h:895
ImVector< ImDrawList * > LayerData1
Definition imgui_internal.h:896
ImDrawDataBuilder()
Definition imgui_internal.h:898
Definition imgui.h:3444
Definition imgui_internal.h:867
float InitialFringeScale
Definition imgui_internal.h:876
ImGuiContext * Context
Definition imgui_internal.h:881
const ImVec4 * TexUvLines
Definition imgui_internal.h:869
float FontSize
Definition imgui_internal.h:872
float FontScale
Definition imgui_internal.h:873
ImVector< ImVec2 > TempBuffer
Definition imgui_internal.h:879
float CircleSegmentMaxError
Definition imgui_internal.h:875
ImDrawListSharedData()
Definition imgui_draw.cpp:393
ImFont * Font
Definition imgui_internal.h:871
float CurveTessellationTol
Definition imgui_internal.h:874
ImDrawListFlags InitialFlags
Definition imgui_internal.h:877
ImVec2 TexUvWhitePixel
Definition imgui_internal.h:868
ImVec2 ArcFastVtx[IM_DRAWLIST_ARCFAST_TABLE_SIZE]
Definition imgui_internal.h:884
ImFontAtlas * FontAtlas
Definition imgui_internal.h:870
ImVec4 ClipRectFullscreen
Definition imgui_internal.h:878
void SetCircleTessellationMaxError(float max_error)
Definition imgui_draw.cpp:410
ImU8 CircleSegmentCounts[64]
Definition imgui_internal.h:886
ImVector< ImDrawList * > DrawLists
Definition imgui_internal.h:880
float ArcFastRadiusCutoff
Definition imgui_internal.h:885
Definition imgui.h:3228
Definition imgui.h:3283
Definition imgui_internal.h:3893
ImVec2i MaxRectBounds
Definition imgui_internal.h:3906
ImVec2i MaxRectSize
Definition imgui_internal.h:3905
int RectsPackedSurface
Definition imgui_internal.h:3901
bool PreloadedAllGlyphsRanges
Definition imgui_internal.h:3908
ImVector< unsigned char > TempBuffer
Definition imgui_internal.h:3898
int FrameCount
Definition imgui_internal.h:3904
ImVector< ImTextureRect > Rects
Definition imgui_internal.h:3896
ImFontAtlasBuilder()
Definition imgui_internal.h:3919
ImFontAtlasRectId PackIdMouseCursors
Definition imgui_internal.h:3916
ImVector< stbrp_node_im > PackNodes
Definition imgui_internal.h:3895
stbrp_context_opaque PackContext
Definition imgui_internal.h:3894
int RectsIndexFreeListStart
Definition imgui_internal.h:3899
bool LockDisableResize
Definition imgui_internal.h:3907
int RectsDiscardedSurface
Definition imgui_internal.h:3903
ImGuiStorage BakedMap
Definition imgui_internal.h:3912
int BakedDiscardedCount
Definition imgui_internal.h:3913
ImStableVector< ImFontBaked, 32 > BakedPool
Definition imgui_internal.h:3911
ImFontAtlasRectId PackIdLinesTexData
Definition imgui_internal.h:3917
int RectsDiscardedCount
Definition imgui_internal.h:3902
int RectsPackedCount
Definition imgui_internal.h:3900
ImVector< ImFontAtlasRectEntry > RectsIndex
Definition imgui_internal.h:3897
Definition imgui_internal.h:3866
ImTextureFormat Format
Definition imgui_internal.h:3875
ImFontGlyph * Glyph
Definition imgui_internal.h:3871
int Width
Definition imgui_internal.h:3877
ImFontAtlas * FontAtlas
Definition imgui_internal.h:3867
void * Pixels
Definition imgui_internal.h:3874
ImFont * Font
Definition imgui_internal.h:3868
int Pitch
Definition imgui_internal.h:3876
ImFontBaked * FontBaked
Definition imgui_internal.h:3870
int Height
Definition imgui_internal.h:3878
ImFontConfig * FontSrc
Definition imgui_internal.h:3869
Definition imgui_internal.h:3858
unsigned int Generation
Definition imgui_internal.h:3860
int TargetIndex
Definition imgui_internal.h:3859
unsigned int IsUsed
Definition imgui_internal.h:3861
Definition imgui.h:3634
Definition imgui.h:3671
Definition imgui.h:3822
Definition imgui.h:3553
Definition imgui.h:3596
Definition imgui_internal.h:3807
bool(* FontSrcInit)(ImFontAtlas *atlas, ImFontConfig *src)
Definition imgui_internal.h:3811
const char * Name
Definition imgui_internal.h:3808
bool(* LoaderInit)(ImFontAtlas *atlas)
Definition imgui_internal.h:3809
void(* LoaderShutdown)(ImFontAtlas *atlas)
Definition imgui_internal.h:3810
bool(* FontBakedLoadGlyph)(ImFontAtlas *atlas, ImFontConfig *src, ImFontBaked *baked, void *loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph *out_glyph, float *out_advance_x)
Definition imgui_internal.h:3816
void(* FontBakedDestroy)(ImFontAtlas *atlas, ImFontConfig *src, ImFontBaked *baked, void *loader_data_for_baked_src)
Definition imgui_internal.h:3815
size_t FontBakedSrcLoaderDataSize
Definition imgui_internal.h:3820
ImFontLoader()
Definition imgui_internal.h:3822
bool(* FontBakedInit)(ImFontAtlas *atlas, ImFontConfig *src, ImFontBaked *baked, void *loader_data_for_baked_src)
Definition imgui_internal.h:3814
void(* FontSrcDestroy)(ImFontAtlas *atlas, ImFontConfig *src)
Definition imgui_internal.h:3812
bool(* FontSrcContainsGlyph)(ImFontAtlas *atlas, ImFontConfig *src, ImWchar codepoint)
Definition imgui_internal.h:3813
Definition imgui_internal.h:902
float FontSizeAfterScaling
Definition imgui_internal.h:905
float FontSizeBeforeScaling
Definition imgui_internal.h:904
ImFont * Font
Definition imgui_internal.h:903
Definition imgui.h:3871
Definition imgui_internal.h:1883
ImGuiID ID
Definition imgui_internal.h:1885
ImGuiWindow * Window
Definition imgui_internal.h:1895
bool IsStartedSetNavIdOnce
Definition imgui_internal.h:1889
ImRect UnclipRects[2]
Definition imgui_internal.h:1900
ImRect BoxSelectRectPrev
Definition imgui_internal.h:1901
ImGuiKeyChord KeyMods
Definition imgui_internal.h:1891
bool IsStartedFromVoid
Definition imgui_internal.h:1888
ImRect UnclipRect
Definition imgui_internal.h:1899
ImRect BoxSelectRectCurr
Definition imgui_internal.h:1902
ImVec2 ScrollAccum
Definition imgui_internal.h:1894
bool UnclipMode
Definition imgui_internal.h:1898
ImVec2 EndPosRel
Definition imgui_internal.h:1893
bool IsStarting
Definition imgui_internal.h:1887
ImGuiBoxSelectState()
Definition imgui_internal.h:1904
bool IsActive
Definition imgui_internal.h:1886
bool RequestClear
Definition imgui_internal.h:1890
ImVec2 StartPosRel
Definition imgui_internal.h:1892
Definition imgui_internal.h:922
ImGuiCol Col
Definition imgui_internal.h:923
ImVec4 BackupValue
Definition imgui_internal.h:924
Definition imgui_internal.h:1165
ImGuiLayoutType BackupLayout
Definition imgui_internal.h:1171
ImRect PreviewRect
Definition imgui_internal.h:1166
ImVec2 BackupCursorPosPrevLine
Definition imgui_internal.h:1169
ImGuiComboPreviewData()
Definition imgui_internal.h:1173
float BackupPrevLineTextBaseOffset
Definition imgui_internal.h:1170
ImVec2 BackupCursorPos
Definition imgui_internal.h:1167
ImVec2 BackupCursorMaxPos
Definition imgui_internal.h:1168
Definition imgui_internal.h:2185
void * UserData
Definition imgui_internal.h:2190
ImGuiID Owner
Definition imgui_internal.h:2188
ImGuiContextHookType Type
Definition imgui_internal.h:2187
ImGuiContextHook()
Definition imgui_internal.h:2192
ImGuiContextHookCallback Callback
Definition imgui_internal.h:2189
ImGuiID HookId
Definition imgui_internal.h:2186
Definition imgui_internal.h:2202
ImVec4 DebugFlashStyleColorBackup
Definition imgui_internal.h:2573
ImGuiNavItemData NavInitResult
Definition imgui_internal.h:2360
bool DebugShowGroupRects
Definition imgui_internal.h:2310
ImGuiID DebugLocateId
Definition imgui_internal.h:2306
int WantCaptureKeyboardNextFrame
Definition imgui_internal.h:2589
int LogDepthToExpand
Definition imgui_internal.h:2544
int DragDropSourceFrameCount
Definition imgui_internal.h:2416
ImGuiID NavId
Definition imgui_internal.h:2335
ImGuiDragDropFlags DragDropAcceptFlagsCurr
Definition imgui_internal.h:2423
ImGuiDataTypeStorage DataTypeZeroValue
Definition imgui_internal.h:2480
float HoveredIdTimer
Definition imgui_internal.h:2262
ImGuiID NavActivateDownId
Definition imgui_internal.h:2341
ImGuiPlatformImeData PlatformImeData
Definition imgui_internal.h:2510
ImGuiID HoveredIdPreviousFrame
Definition imgui_internal.h:2260
ImGuiID HoverItemDelayId
Definition imgui_internal.h:2460
ImGuiID DebugBreakInWindow
Definition imgui_internal.h:2242
float FramerateSecPerFrame[60]
Definition imgui_internal.h:2584
ImGuiKeyChord ConfigNavWindowingKeyPrev
Definition imgui_internal.h:2394
int DragDropMouseButton
Definition imgui_internal.h:2417
ImVector< ImGuiPopupData > OpenPopupStack
Definition imgui_internal.h:2321
ImVector< ImGuiWindow * > Windows
Definition imgui_internal.h:2235
ImGuiID ColorEditCurrentID
Definition imgui_internal.h:2484
bool SettingsLoaded
Definition imgui_internal.h:2518
void * ErrorCallbackUserData
Definition imgui_internal.h:2549
ImGuiID ActiveId
Definition imgui_internal.h:2267
ImGuiNextWindowData NextWindowData
Definition imgui_internal.h:2309
ImGuiColorEditFlags ColorEditOptions
Definition imgui_internal.h:2483
ImGuiDataTypeStorage ActiveIdValueOnActivation
Definition imgui_internal.h:2284
bool DebugItemPickerActive
Definition imgui_internal.h:2569
bool HoveredIdAllowOverlap
Definition imgui_internal.h:2264
ImPool< ImGuiMultiSelectState > MultiSelectStorage
Definition imgui_internal.h:2457
ImChunkStream< ImGuiWindowSettings > SettingsWindows
Definition imgui_internal.h:2522
ImGuiNavLayer NavLayer
Definition imgui_internal.h:2338
ImGuiID NavJustMovedToId
Definition imgui_internal.h:2382
ImFontFlags InputTextPasswordFontBackupFlags
Definition imgui_internal.h:2477
ImGuiTypingSelectState TypingSelectState
Definition imgui_internal.h:2507
ImVector< ImGuiWindow * > WindowsFocusOrder
Definition imgui_internal.h:2236
ImGuiDir NavMoveDir
Definition imgui_internal.h:2367
ImGuiSelectionUserData NavLastValidSelectionUserData
Definition imgui_internal.h:2352
char ContextName[16]
Definition imgui_internal.h:2211
ImVector< ImGuiWindow * > WindowsTempSortBuffer
Definition imgui_internal.h:2237
ImGuiDebugAllocInfo DebugAllocInfo
Definition imgui_internal.h:2577
float MouseStationaryTimer
Definition imgui_internal.h:2469
ImGuiID NavActivatePressedId
Definition imgui_internal.h:2342
bool LogEnabled
Definition imgui_internal.h:2534
float WindowsBorderHoverPadding
Definition imgui_internal.h:2241
ImGuiWindow * MovingWindow
Definition imgui_internal.h:2247
ImGuiKeyChord ConfigNavWindowingKeyNext
Definition imgui_internal.h:2393
ImVec2 ActiveIdClickOffset
Definition imgui_internal.h:2279
float ScrollbarClickDeltaToGrabCenter
Definition imgui_internal.h:2494
bool DragCurrentAccumDirty
Definition imgui_internal.h:2498
bool WindowResizeRelativeMode
Definition imgui_internal.h:2492
ImU8 DebugItemPickerMouseButton
Definition imgui_internal.h:2570
double Time
Definition imgui_internal.h:2210
ImGuiItemFlags CurrentItemFlags
Definition imgui_internal.h:2305
bool NavAnyRequest
Definition imgui_internal.h:2357
ImGuiWindow * TooltipPreviousWindow
Definition imgui_internal.h:2504
bool ActiveIdUsingAllKeyboardKeys
Definition imgui_internal.h:2299
float CurrentDpiScale
Definition imgui_internal.h:2222
ImGuiTextBuffer DebugLogBuf
Definition imgui_internal.h:2560
const char * LocalizationTable[ImGuiLocKey_COUNT]
Definition imgui_internal.h:2531
float FontSizeBase
Definition imgui_internal.h:2219
bool DragDropActive
Definition imgui_internal.h:2412
ImVector< ImGuiID > MenusIdSubmittedThisFrame
Definition imgui_internal.h:2506
ImGuiStyle Style
Definition imgui_internal.h:2214
bool NavHighlightItemUnderNav
Definition imgui_internal.h:2330
ImGuiID WithinEndChildID
Definition imgui_internal.h:2224
ImGuiErrorCallback ErrorCallback
Definition imgui_internal.h:2548
ImGuiInputSource NavInputSource
Definition imgui_internal.h:2351
ImGuiWindow * WheelingWindow
Definition imgui_internal.h:2248
ImGuiInputSource ActiveIdSource
Definition imgui_internal.h:2280
ImGuiMetricsConfig DebugMetricsConfig
Definition imgui_internal.h:2574
bool NavWindowingToggleLayer
Definition imgui_internal.h:2403
ImGuiID HoveredId
Definition imgui_internal.h:2259
ImGuiPayload DragDropPayload
Definition imgui_internal.h:2418
float WheelingWindowReleaseTimer
Definition imgui_internal.h:2252
ImRect NavScoringRect
Definition imgui_internal.h:2370
ImVec2 WheelingAxisAvg
Definition imgui_internal.h:2254
ImGuiNextItemData NextItemData
Definition imgui_internal.h:2307
float DisabledAlphaBackup
Definition imgui_internal.h:2501
void * TestEngine
Definition imgui_internal.h:2226
float NavWindowingTimer
Definition imgui_internal.h:2400
ImGuiID ActiveIdDisabledId
Definition imgui_internal.h:2278
ImGuiDebugLogFlags DebugLogFlags
Definition imgui_internal.h:2559
ImGuiDir NavMoveClipDir
Definition imgui_internal.h:2369
float SliderCurrentAccum
Definition imgui_internal.h:2496
bool NavMousePosDirty
Definition imgui_internal.h:2333
ImGuiLastItemData LastItemData
Definition imgui_internal.h:2308
ImS8 DebugBeginReturnValueCullDepth
Definition imgui_internal.h:2568
ImGuiID HoverItemUnlockedStationaryId
Definition imgui_internal.h:2464
ImVector< ImTextureData * > UserTextures
Definition imgui_internal.h:2515
int LogDepthToExpandDefault
Definition imgui_internal.h:2545
const char * LogNextPrefix
Definition imgui_internal.h:2540
ImGuiActivateFlags NavNextActivateFlags
Definition imgui_internal.h:2350
ImGuiDragDropFlags DragDropAcceptFlagsPrev
Definition imgui_internal.h:2424
float DragDropAcceptIdCurrRectSurface
Definition imgui_internal.h:2425
ImGuiID HookIdNext
Definition imgui_internal.h:2527
short DisabledStackSize
Definition imgui_internal.h:2502
ImVector< ImGuiPopupData > BeginPopupStack
Definition imgui_internal.h:2322
bool ConfigNavEnableTabbing
Definition imgui_internal.h:2391
float FontRasterizerDensity
Definition imgui_internal.h:2221
ImVector< ImGuiPtrOrIndex > CurrentTabBarStack
Definition imgui_internal.h:2449
ImGuiScrollFlags NavMoveScrollFlags
Definition imgui_internal.h:2365
float DragCurrentAccum
Definition imgui_internal.h:2499
ImVector< ImFontStackData > FontStack
Definition imgui_internal.h:2317
ImGuiID HoverItemDelayIdPreviousFrame
Definition imgui_internal.h:2461
ImRect WindowResizeBorderExpectedRect
Definition imgui_internal.h:2491
int LogDepthRef
Definition imgui_internal.h:2543
int WheelingWindowScrolledFrame
Definition imgui_internal.h:2251
ImGuiDebugItemPathQuery DebugItemPathQuery
Definition imgui_internal.h:2575
ImGuiContext(ImFontAtlas *shared_font_atlas)
Definition imgui.cpp:4145
ImGuiTextIndex DebugLogIndex
Definition imgui_internal.h:2561
float NavWindowingHighlightAlpha
Definition imgui_internal.h:2401
bool ItemUnclipByLog
Definition imgui_internal.h:2266
ImGuiNavItemData NavMoveResultLocal
Definition imgui_internal.h:2375
ImGuiTextBuffer SettingsIniData
Definition imgui_internal.h:2520
double LastKeyModsChangeTime
Definition imgui_internal.h:2292
bool SliderCurrentAccumDirty
Definition imgui_internal.h:2497
bool DragDropWithinSource
Definition imgui_internal.h:2413
ImGuiID DebugDrawIdConflictsId
Definition imgui_internal.h:2257
ImVector< ImGuiFocusScopeData > NavFocusRoute
Definition imgui_internal.h:2344
bool HoveredIdIsDisabled
Definition imgui_internal.h:2265
ImGuiInputTextDeactivatedState InputTextDeactivatedState
Definition imgui_internal.h:2475
ImGuiDragDropFlags DragDropSourceFlags
Definition imgui_internal.h:2415
bool ErrorFirst
Definition imgui_internal.h:2551
bool ConfigNavWindowingWithGamepad
Definition imgui_internal.h:2392
ImVector< ImGuiTableTempData > TablesTempData
Definition imgui_internal.h:2441
bool NavJustMovedToHasSelectionData
Definition imgui_internal.h:2386
int FramerateSecPerFrameIdx
Definition imgui_internal.h:2585
int FrameCountRendered
Definition imgui_internal.h:2209
bool NavMoveSubmitted
Definition imgui_internal.h:2361
int FramerateSecPerFrameCount
Definition imgui_internal.h:2586
ImVector< ImGuiContextHook > Hooks
Definition imgui_internal.h:2526
ImGuiNavItemData NavMoveResultOther
Definition imgui_internal.h:2377
bool NavJustMovedToIsTabbing
Definition imgui_internal.h:2385
ImGuiID CurrentFocusScopeId
Definition imgui_internal.h:2304
ImGuiKeyChord DebugBreakKeyChord
Definition imgui_internal.h:2567
ImU32 ActiveIdUsingNavDirMask
Definition imgui_internal.h:2298
ImRect DragDropTargetClipRect
Definition imgui_internal.h:2420
ImGuiWindow * HoveredWindow
Definition imgui_internal.h:2244
int MultiSelectTempDataStacked
Definition imgui_internal.h:2455
ImVec2 NavWindowingAccumDeltaPos
Definition imgui_internal.h:2405
ImDrawListSharedData DrawListSharedData
Definition imgui_internal.h:2223
bool Initialized
Definition imgui_internal.h:2203
float LastActiveIdTimer
Definition imgui_internal.h:2286
ImVec2 WheelingWindowWheelRemainder
Definition imgui_internal.h:2253
bool GcCompactAll
Definition imgui_internal.h:2311
bool WithinFrameScope
Definition imgui_internal.h:2204
ImGuiDemoMarkerCallback DemoMarkerCallback
Definition imgui_internal.h:2528
float DebugFlashStyleColorTime
Definition imgui_internal.h:2572
ImVector< ImGuiGroupData > GroupStack
Definition imgui_internal.h:2320
float NavHighlightActivatedTimer
Definition imgui_internal.h:2346
float SettingsDirtyTimer
Definition imgui_internal.h:2519
int WantCaptureMouseNextFrame
Definition imgui_internal.h:2588
ImGuiNavItemData NavTabbingResultFirst
Definition imgui_internal.h:2378
ImGuiTextBuffer LogBuffer
Definition imgui_internal.h:2539
ImGuiPlatformIO PlatformIO
Definition imgui_internal.h:2213
ImGuiID NavActivateId
Definition imgui_internal.h:2340
int DragDropAcceptFrameCount
Definition imgui_internal.h:2428
ImVector< ImGuiShrinkWidthItem > ShrinkWidthBuffer
Definition imgui_internal.h:2450
ImGuiID DragDropHoldJustPressedId
Definition imgui_internal.h:2429
ImGuiInputSource NavWindowingInputSource
Definition imgui_internal.h:2402
short ScrollbarSeekMode
Definition imgui_internal.h:2493
ImVector< ImGuiItemFlags > ItemFlagsStack
Definition imgui_internal.h:2319
ImGuiID LastActiveId
Definition imgui_internal.h:2285
ImU8 DebugLocateFrames
Definition imgui_internal.h:2565
ImGuiWindow * LogWindow
Definition imgui_internal.h:2537
const char * LogNextSuffix
Definition imgui_internal.h:2541
int ClipperTempDataStacked
Definition imgui_internal.h:2434
ImGuiID DebugItemPickerBreakId
Definition imgui_internal.h:2571
ImGuiKeyOwnerData KeysOwnerData[ImGuiKey_NamedKey_COUNT]
Definition imgui_internal.h:2296
ImGuiMouseSource InputEventsNextMouseSource
Definition imgui_internal.h:2231
char TempKeychordName[64]
Definition imgui_internal.h:2592
ImGuiID NavJustMovedFromFocusScopeId
Definition imgui_internal.h:2381
ImVector< ImFontAtlas * > FontAtlases
Definition imgui_internal.h:2215
float LogLinePosY
Definition imgui_internal.h:2542
ImPool< ImGuiTabBar > TabBars
Definition imgui_internal.h:2448
ImGuiErrorRecoveryState * StackSizesInBeginForCurrentWindow
Definition imgui_internal.h:2554
float SliderGrabClickOffset
Definition imgui_internal.h:2495
ImGuiWindow * NavWindowingTarget
Definition imgui_internal.h:2397
ImGuiID ActiveIdIsAlive
Definition imgui_internal.h:2268
float FontBakedScale
Definition imgui_internal.h:2220
bool NavInitRequestFromMove
Definition imgui_internal.h:2359
float ColorEditSavedHue
Definition imgui_internal.h:2486
ImGuiID DragDropTargetFullViewport
Definition imgui_internal.h:2422
ImGuiID NavOpenContextMenuItemId
Definition imgui_internal.h:2347
ImGuiIDStackTool DebugIDStackTool
Definition imgui_internal.h:2576
int WindowsActiveCount
Definition imgui_internal.h:2240
ImGuiDir NavMoveDirForDebug
Definition imgui_internal.h:2368
ImGuiID HoverWindowUnlockedStationaryId
Definition imgui_internal.h:2465
ImGuiWindow * ActiveIdWindow
Definition imgui_internal.h:2281
double LastKeyboardKeyPressTime
Definition imgui_internal.h:2294
ImVector< ImGuiWindowStackData > CurrentWindowStack
Definition imgui_internal.h:2238
ImRect DragDropTargetRect
Definition imgui_internal.h:2419
ImGuiID DebugBreakInTable
Definition imgui_internal.h:2439
ImGuiKeyRoutingTable KeysRoutingTable
Definition imgui_internal.h:2297
float ActiveIdTimer
Definition imgui_internal.h:2269
ImGuiComboPreviewData ComboPreviewData
Definition imgui_internal.h:2490
int ErrorCountCurrentFrame
Definition imgui_internal.h:2552
ImGuiWindow * HoveredWindowBeforeClear
Definition imgui_internal.h:2246
ImGuiErrorRecoveryState StackSizesInNewFrame
Definition imgui_internal.h:2553
int DebugDrawIdConflictsCount
Definition imgui_internal.h:2558
ImFontBaked InputTextPasswordFontBackupBaked
Definition imgui_internal.h:2476
bool ActiveIdHasBeenPressedBefore
Definition imgui_internal.h:2273
int DebugLogSkippedErrors
Definition imgui_internal.h:2562
ImGuiID WithinEndPopupID
Definition imgui_internal.h:2225
int FrameCountEnded
Definition imgui_internal.h:2208
bool ActiveIdIsJustActivated
Definition imgui_internal.h:2270
ImVector< ImGuiViewportP * > Viewports
Definition imgui_internal.h:2326
ImGuiWindow * CurrentWindow
Definition imgui_internal.h:2243
ImVector< ImGuiListClipperData > ClipperTempData
Definition imgui_internal.h:2435
ImVector< float > TablesLastTimeActive
Definition imgui_internal.h:2443
ImGuiWindow * NavWindowingListWindow
Definition imgui_internal.h:2399
float HoverItemDelayClearTimer
Definition imgui_internal.h:2463
ImGuiWindow * NavWindowingTargetAnim
Definition imgui_internal.h:2398
ImU8 DebugLogAutoDisableFrames
Definition imgui_internal.h:2564
bool NavIdIsAlive
Definition imgui_internal.h:2334
int NavScoringDebugCount
Definition imgui_internal.h:2372
bool WithinFrameScopeWithImplicitWindow
Definition imgui_internal.h:2205
ImS8 NavCursorHideFrames
Definition imgui_internal.h:2353
ImVector< char > ClipboardHandlerData
Definition imgui_internal.h:2505
ImBitArrayForNamedKeys KeysMayBeCharInput
Definition imgui_internal.h:2295
ImVector< char > TempBuffer
Definition imgui_internal.h:2591
bool LogLineFirstItem
Definition imgui_internal.h:2535
ImGuiDeactivatedItemData DeactivatedItemData
Definition imgui_internal.h:2283
ImGuiItemFlags NavIdItemFlags
Definition imgui_internal.h:2339
bool ActiveIdAllowOverlap
Definition imgui_internal.h:2271
ImGuiCol DebugFlashStyleColorIdx
Definition imgui_internal.h:2314
~ImGuiContext()
Definition imgui.cpp:4376
ImGuiMouseCursor MouseCursor
Definition imgui_internal.h:2468
bool ActiveIdFromShortcut
Definition imgui_internal.h:2276
ImGuiInputTextState InputTextState
Definition imgui_internal.h:2473
ImGuiID DragDropAcceptIdPrev
Definition imgui_internal.h:2427
int FrameCount
Definition imgui_internal.h:2207
ImVec2 NavWindowingAccumDeltaSize
Definition imgui_internal.h:2406
ImVec2 MouseLastValidPos
Definition imgui_internal.h:2470
bool DragDropWithinTarget
Definition imgui_internal.h:2414
ImGuiID ColorEditSavedID
Definition imgui_internal.h:2485
ImVector< ImGuiStyleMod > StyleVarStack
Definition imgui_internal.h:2316
ImGuiID NavNextActivateId
Definition imgui_internal.h:2349
int TablesTempDataStacked
Definition imgui_internal.h:2440
float FramerateSecPerFrameAccum
Definition imgui_internal.h:2587
ImVector< ImDrawChannel > DrawChannelsTempMergeBuffer
Definition imgui_internal.h:2444
int WantTextInputNextFrame
Definition imgui_internal.h:2590
bool DebugBreakInLocateId
Definition imgui_internal.h:2566
ImGuiKey NavWindowingToggleKey
Definition imgui_internal.h:2404
bool NavInitRequest
Definition imgui_internal.h:2358
unsigned char DragDropPayloadBufLocal[16]
Definition imgui_internal.h:2431
ImGuiID NavFocusScopeId
Definition imgui_internal.h:2337
float HoveredIdNotActiveTimer
Definition imgui_internal.h:2263
int BeginComboDepth
Definition imgui_internal.h:2482
ImGuiID NavOpenContextMenuWindowId
Definition imgui_internal.h:2348
ImS8 ActiveIdMouseButton
Definition imgui_internal.h:2277
float ColorEditSavedSat
Definition imgui_internal.h:2487
int BeginMenuDepth
Definition imgui_internal.h:2481
ImGuiDebugLogFlags DebugLogAutoDisableFlags
Definition imgui_internal.h:2563
int NavTabbingDir
Definition imgui_internal.h:2373
ImGuiWindow * HoveredWindowUnderMovingWindow
Definition imgui_internal.h:2245
bool ActiveIdHasBeenEditedBefore
Definition imgui_internal.h:2274
int HoveredIdPreviousFrameItemCount
Definition imgui_internal.h:2261
ImGuiLogFlags LogFlags
Definition imgui_internal.h:2536
bool NavMoveForwardToNextFrame
Definition imgui_internal.h:2363
ImGuiPlatformImeData PlatformImeDataPrev
Definition imgui_internal.h:2511
ImGuiBoxSelectState BoxSelectState
Definition imgui_internal.h:2453
ImChunkStream< ImGuiTableSettings > SettingsTables
Definition imgui_internal.h:2523
int WheelingWindowStartFrame
Definition imgui_internal.h:2250
ImU32 InputEventsNextEventId
Definition imgui_internal.h:2232
ImGuiKeyChord NavMoveKeyMods
Definition imgui_internal.h:2366
ImGuiID InputTextReactivateId
Definition imgui_internal.h:2478
bool NavCursorVisible
Definition imgui_internal.h:2329
ImGuiTable * CurrentTable
Definition imgui_internal.h:2438
ImGuiStorage WindowsById
Definition imgui_internal.h:2239
ImGuiKeyChord NavJustMovedToKeyMods
Definition imgui_internal.h:2384
ImGuiMultiSelectTempData * CurrentMultiSelect
Definition imgui_internal.h:2454
ImGuiIO IO
Definition imgui_internal.h:2212
ImVector< ImGuiSettingsHandler > SettingsHandlers
Definition imgui_internal.h:2521
ImFontBaked * FontBaked
Definition imgui_internal.h:2217
ImRect NavScoringNoClipRect
Definition imgui_internal.h:2371
ImGuiTabBar * CurrentTabBar
Definition imgui_internal.h:2447
ImGuiWindow * NavWindow
Definition imgui_internal.h:2336
ImGuiActivateFlags NavActivateFlags
Definition imgui_internal.h:2343
bool TestEngineHookItems
Definition imgui_internal.h:2206
ImVec4 ColorPickerRef
Definition imgui_internal.h:2489
ImVector< ImGuiColorMod > ColorStack
Definition imgui_internal.h:2315
ImVector< ImGuiTreeNodeStackData > TreeNodeStack
Definition imgui_internal.h:2323
ImGuiNavItemData NavMoveResultLocalVisible
Definition imgui_internal.h:2376
ImGuiNavMoveFlags NavMoveFlags
Definition imgui_internal.h:2364
ImVector< ImGuiFocusScopeData > FocusScopeStack
Definition imgui_internal.h:2318
bool NavMoveScoringItems
Definition imgui_internal.h:2362
ImVector< ImGuiInputEvent > InputEventsQueue
Definition imgui_internal.h:2229
double LastKeyModsChangeFromNoneTime
Definition imgui_internal.h:2293
short TooltipOverrideCount
Definition imgui_internal.h:2503
bool ActiveIdHasBeenEditedThisFrame
Definition imgui_internal.h:2275
ImVec2 ErrorTooltipLockedPos
Definition imgui_internal.h:2550
float HoverItemDelayTimer
Definition imgui_internal.h:2462
ImVec2 WheelingWindowRefMousePos
Definition imgui_internal.h:2249
ImVector< ImGuiInputEvent > InputEventsTrail
Definition imgui_internal.h:2230
float DragSpeedDefaultRatio
Definition imgui_internal.h:2500
bool ActiveIdNoClearOnFocusLoss
Definition imgui_internal.h:2272
ImFont * Font
Definition imgui_internal.h:2216
ImGuiID NavJustMovedToFocusScopeId
Definition imgui_internal.h:2383
ImGuiID TempInputId
Definition imgui_internal.h:2479
ImU32 ColorEditSavedColor
Definition imgui_internal.h:2488
ImGuiID DragDropAcceptIdCurr
Definition imgui_internal.h:2426
ImGuiKeyChord DebugBreakInShortcutRouting
Definition imgui_internal.h:2300
ImGuiID NavHighlightActivatedId
Definition imgui_internal.h:2345
int NavTabbingCounter
Definition imgui_internal.h:2374
float FontSize
Definition imgui_internal.h:2218
ImVector< unsigned char > DragDropPayloadBufHeap
Definition imgui_internal.h:2430
ImFileHandle LogFile
Definition imgui_internal.h:2538
float DimBgRatio
Definition imgui_internal.h:2409
ImGuiID ActiveIdPreviousFrame
Definition imgui_internal.h:2282
ImGuiID DragDropTargetId
Definition imgui_internal.h:2421
ImPool< ImGuiTable > Tables
Definition imgui_internal.h:2442
ImGuiTextIndex InputTextLineIndex
Definition imgui_internal.h:2474
ImGuiID DebugHookIdInfoId
Definition imgui_internal.h:2258
ImVector< ImGuiMultiSelectTempData > MultiSelectTempData
Definition imgui_internal.h:2456
Definition imgui_internal.h:948
size_t Size
Definition imgui_internal.h:949
const char * Name
Definition imgui_internal.h:950
const char * PrintFmt
Definition imgui_internal.h:951
const char * ScanFmt
Definition imgui_internal.h:952
Definition imgui_internal.h:942
ImU8 Data[8]
Definition imgui_internal.h:943
Definition imgui_internal.h:1460
bool IsAlive
Definition imgui_internal.h:1464
bool HasBeenEditedBefore
Definition imgui_internal.h:1463
int ElapseFrame
Definition imgui_internal.h:1462
ImGuiID ID
Definition imgui_internal.h:1461
Definition imgui_internal.h:2108
ImS16 FreeCount
Definition imgui_internal.h:2111
ImS16 AllocCount
Definition imgui_internal.h:2110
int FrameCount
Definition imgui_internal.h:2109
Definition imgui_internal.h:2115
ImGuiDebugAllocEntry LastEntriesBuf[6]
Definition imgui_internal.h:2119
int TotalAllocCount
Definition imgui_internal.h:2116
ImS16 LastEntriesIdx
Definition imgui_internal.h:2118
ImGuiDebugAllocInfo()
Definition imgui_internal.h:2121
int TotalFreeCount
Definition imgui_internal.h:2117
Definition imgui_internal.h:2154
ImGuiTextBuffer ResultPathBuf
Definition imgui_internal.h:2161
ImGuiTextBuffer ResultsDescBuf
Definition imgui_internal.h:2160
ImGuiDebugItemPathQuery()
Definition imgui_internal.h:2163
ImVector< ImGuiStackLevelInfo > Results
Definition imgui_internal.h:2159
bool Complete
Definition imgui_internal.h:2157
bool Active
Definition imgui_internal.h:2156
ImGuiID MainID
Definition imgui_internal.h:2155
ImS8 Step
Definition imgui_internal.h:2158
Definition imgui_internal.h:1416
short SizeOfColorStack
Definition imgui_internal.h:1420
short SizeOfBeginPopupStack
Definition imgui_internal.h:1426
ImGuiErrorRecoveryState()
Definition imgui_internal.h:1429
short SizeOfWindowStack
Definition imgui_internal.h:1417
short SizeOfTreeStack
Definition imgui_internal.h:1419
short SizeOfDisabledStack
Definition imgui_internal.h:1427
short SizeOfGroupStack
Definition imgui_internal.h:1424
short SizeOfFontStack
Definition imgui_internal.h:1422
short SizeOfFocusScopeStack
Definition imgui_internal.h:1423
short SizeOfStyleVarStack
Definition imgui_internal.h:1421
short SizeOfItemFlagsStack
Definition imgui_internal.h:1425
short SizeOfIDStack
Definition imgui_internal.h:1418
Definition imgui_internal.h:1780
ImGuiID WindowID
Definition imgui_internal.h:1782
ImGuiID ID
Definition imgui_internal.h:1781
Definition imgui_internal.h:1178
ImVec1 BackupIndent
Definition imgui_internal.h:1183
float BackupCurrLineTextBaseOffset
Definition imgui_internal.h:1186
bool BackupIsSameLine
Definition imgui_internal.h:1191
bool BackupActiveIdHasBeenEditedThisFrame
Definition imgui_internal.h:1188
bool BackupHoveredIdIsAlive
Definition imgui_internal.h:1190
ImVec2 BackupCursorPosPrevLine
Definition imgui_internal.h:1182
ImVec2 BackupCursorPos
Definition imgui_internal.h:1180
ImGuiID BackupActiveIdIsAlive
Definition imgui_internal.h:1187
ImVec2 BackupCursorMaxPos
Definition imgui_internal.h:1181
bool EmitItem
Definition imgui_internal.h:1192
ImGuiID WindowID
Definition imgui_internal.h:1179
ImVec2 BackupCurrLineSize
Definition imgui_internal.h:1185
ImVec1 BackupGroupOffset
Definition imgui_internal.h:1184
bool BackupDeactivatedIdIsAlive
Definition imgui_internal.h:1189
Definition imgui_internal.h:2168
ImGuiIDStackTool()
Definition imgui_internal.h:2174
float CopyToClipboardLastTime
Definition imgui_internal.h:2172
bool OptHexEncodeNonAsciiChars
Definition imgui_internal.h:2169
bool OptCopyToClipboardOnCtrlC
Definition imgui_internal.h:2170
int LastActiveFrame
Definition imgui_internal.h:2171
Definition imgui.h:2400
Definition imgui_internal.h:1550
bool Focused
Definition imgui_internal.h:1550
Definition imgui_internal.h:1548
bool Down
Definition imgui_internal.h:1548
float AnalogValue
Definition imgui_internal.h:1548
ImGuiKey Key
Definition imgui_internal.h:1548
Definition imgui_internal.h:1547
int Button
Definition imgui_internal.h:1547
bool Down
Definition imgui_internal.h:1547
ImGuiMouseSource MouseSource
Definition imgui_internal.h:1547
Definition imgui_internal.h:1545
float PosY
Definition imgui_internal.h:1545
float PosX
Definition imgui_internal.h:1545
ImGuiMouseSource MouseSource
Definition imgui_internal.h:1545
Definition imgui_internal.h:1546
float WheelX
Definition imgui_internal.h:1546
float WheelY
Definition imgui_internal.h:1546
ImGuiMouseSource MouseSource
Definition imgui_internal.h:1546
Definition imgui_internal.h:1549
unsigned int Char
Definition imgui_internal.h:1549
ImGuiInputEvent()
Definition imgui_internal.h:1568
ImGuiInputEventType Type
Definition imgui_internal.h:1554
ImGuiInputEventAppFocused AppFocused
Definition imgui_internal.h:1564
ImGuiInputEventKey Key
Definition imgui_internal.h:1562
ImGuiInputEventMouseButton MouseButton
Definition imgui_internal.h:1561
ImGuiInputSource Source
Definition imgui_internal.h:1555
bool AddedByTestEngine
Definition imgui_internal.h:1566
ImGuiInputEventMouseWheel MouseWheel
Definition imgui_internal.h:1560
ImGuiInputEventMousePos MousePos
Definition imgui_internal.h:1559
ImGuiInputEventText Text
Definition imgui_internal.h:1563
ImU32 EventId
Definition imgui_internal.h:1556
Definition imgui_internal.h:1215
ImVector< char > TextA
Definition imgui_internal.h:1217
ImGuiID ID
Definition imgui_internal.h:1216
void ClearFreeMemory()
Definition imgui_internal.h:1220
ImGuiInputTextDeactivatedState()
Definition imgui_internal.h:1219
Definition imgui_internal.h:1237
void CursorClamp()
Definition imgui_widgets.cpp:4324
bool EditedBefore
Definition imgui_internal.h:1255
ImGuiContext * Ctx
Definition imgui_internal.h:1238
ImGuiInputTextFlags Flags
Definition imgui_internal.h:1240
bool WantReloadUserBuf
Definition imgui_internal.h:1257
int LineCount
Definition imgui_internal.h:1249
ImVector< char > CallbackTextBackup
Definition imgui_internal.h:1246
int BufCapacity
Definition imgui_internal.h:1247
bool SelectedAllMouseLock
Definition imgui_internal.h:1254
void ClearText()
Definition imgui_internal.h:1264
bool CursorCenterY
Definition imgui_internal.h:1253
const char * TextSrc
Definition imgui_internal.h:1243
const char * GetText()
Definition imgui_internal.h:1269
ImVector< char > TextToRevertTo
Definition imgui_internal.h:1245
void ClearFreeMemory()
Definition imgui_internal.h:1265
bool CursorFollow
Definition imgui_internal.h:1252
ImGuiID ID
Definition imgui_internal.h:1241
float CursorAnim
Definition imgui_internal.h:1251
float WrapWidth
Definition imgui_internal.h:1250
ImS8 LastMoveDirectionLR
Definition imgui_internal.h:1258
ImVector< char > TextA
Definition imgui_internal.h:1244
ImGuiInputTextState()
Definition imgui_widgets.cpp:4287
int ReloadSelectionStart
Definition imgui_internal.h:1259
bool EditedThisFrame
Definition imgui_internal.h:1256
int TextLen
Definition imgui_internal.h:1242
int ReloadSelectionEnd
Definition imgui_internal.h:1260
ImStbTexteditState * Stb
Definition imgui_internal.h:1239
ImVec2 Scroll
Definition imgui_internal.h:1248
Definition imgui.h:2392
Definition imgui_internal.h:1606
ImGuiKeyOwnerData()
Definition imgui_internal.h:1612
bool LockThisFrame
Definition imgui_internal.h:1609
bool LockUntilRelease
Definition imgui_internal.h:1610
ImGuiID OwnerCurr
Definition imgui_internal.h:1607
ImGuiID OwnerNext
Definition imgui_internal.h:1608
Definition imgui_internal.h:1580
ImGuiKeyRoutingData()
Definition imgui_internal.h:1588
ImU16 Mods
Definition imgui_internal.h:1582
ImU16 RoutingCurrScore
Definition imgui_internal.h:1583
ImGuiID RoutingNext
Definition imgui_internal.h:1586
ImU16 RoutingNextScore
Definition imgui_internal.h:1584
ImGuiKeyRoutingIndex NextEntryIndex
Definition imgui_internal.h:1581
ImGuiID RoutingCurr
Definition imgui_internal.h:1585
Definition imgui_internal.h:1594
ImGuiKeyRoutingTable()
Definition imgui_internal.h:1599
ImVector< ImGuiKeyRoutingData > Entries
Definition imgui_internal.h:1596
ImVector< ImGuiKeyRoutingData > EntriesNext
Definition imgui_internal.h:1597
ImGuiKeyRoutingIndex Index[ImGuiKey_NamedKey_COUNT]
Definition imgui_internal.h:1595
void Clear()
Definition imgui_internal.h:1600
Definition imgui_internal.h:1385
ImGuiID ID
Definition imgui_internal.h:1386
ImRect ClipRect
Definition imgui_internal.h:1393
ImGuiItemStatusFlags StatusFlags
Definition imgui_internal.h:1388
ImRect NavRect
Definition imgui_internal.h:1390
ImGuiItemFlags ItemFlags
Definition imgui_internal.h:1387
ImGuiKeyChord Shortcut
Definition imgui_internal.h:1394
ImGuiLastItemData()
Definition imgui_internal.h:1396
ImRect Rect
Definition imgui_internal.h:1389
ImRect DisplayRect
Definition imgui_internal.h:1392
ImGuiListClipperData()
Definition imgui_internal.h:1683
void Reset(ImGuiListClipper *clipper)
Definition imgui_internal.h:1684
float LossynessOffset
Definition imgui_internal.h:1678
int StepNo
Definition imgui_internal.h:1679
ImVector< ImGuiListClipperRange > Ranges
Definition imgui_internal.h:1681
int ItemsFrozen
Definition imgui_internal.h:1680
ImGuiListClipper * ListClipper
Definition imgui_internal.h:1677
Definition imgui_internal.h:1663
ImS8 PosToIndexOffsetMax
Definition imgui_internal.h:1668
static ImGuiListClipperRange FromPositions(float y1, float y2, int off_min, int off_max)
Definition imgui_internal.h:1671
int Max
Definition imgui_internal.h:1665
int Min
Definition imgui_internal.h:1664
ImS8 PosToIndexOffsetMin
Definition imgui_internal.h:1667
bool PosToIndexConvert
Definition imgui_internal.h:1666
static ImGuiListClipperRange FromIndices(int min, int max)
Definition imgui_internal.h:1670
Definition imgui.h:2859
Definition imgui_internal.h:2056
const char * Text
Definition imgui_internal.h:2058
ImGuiLocKey Key
Definition imgui_internal.h:2057
Definition imgui_internal.h:1197
ImU16 Widths[4]
Definition imgui_internal.h:1205
ImU32 TotalWidth
Definition imgui_internal.h:1198
ImU16 OffsetIcon
Definition imgui_internal.h:1201
ImU16 OffsetLabel
Definition imgui_internal.h:1202
ImU16 OffsetShortcut
Definition imgui_internal.h:1203
ImU32 NextTotalWidth
Definition imgui_internal.h:1199
ImGuiMenuColumns()
Definition imgui_internal.h:1207
ImU16 Spacing
Definition imgui_internal.h:1200
ImU16 OffsetMark
Definition imgui_internal.h:1204
Definition imgui_internal.h:2125
int ShowWindowsRectsType
Definition imgui_internal.h:2135
bool ShowDrawCmdBoundingBoxes
Definition imgui_internal.h:2132
bool ShowTextEncodingViewer
Definition imgui_internal.h:2133
bool ShowDebugLog
Definition imgui_internal.h:2126
bool ShowDrawCmdMesh
Definition imgui_internal.h:2131
int HighlightMonitorIdx
Definition imgui_internal.h:2137
int ShowTablesRectsType
Definition imgui_internal.h:2136
bool ShowIDStackTool
Definition imgui_internal.h:2127
bool ShowWindowsRects
Definition imgui_internal.h:2128
bool ShowTablesRects
Definition imgui_internal.h:2130
bool ShowWindowsBeginOrder
Definition imgui_internal.h:2129
bool ShowFontPreview
Definition imgui_internal.h:2139
bool ShowTextureUsedRect
Definition imgui_internal.h:2134
ImGuiID HighlightViewportID
Definition imgui_internal.h:2138
Definition imgui.h:3063
Definition imgui_internal.h:1942
ImGuiID ID
Definition imgui_internal.h:1944
ImGuiWindow * Window
Definition imgui_internal.h:1943
ImS8 RangeSelected
Definition imgui_internal.h:1947
ImGuiSelectionUserData RangeSrcItem
Definition imgui_internal.h:1949
ImGuiSelectionUserData NavIdItem
Definition imgui_internal.h:1950
ImGuiMultiSelectState()
Definition imgui_internal.h:1952
ImS8 NavIdSelected
Definition imgui_internal.h:1948
int LastFrameActive
Definition imgui_internal.h:1945
int LastSelectionSize
Definition imgui_internal.h:1946
Definition imgui_internal.h:1916
ImGuiMultiSelectIO IO
Definition imgui_internal.h:1917
ImS8 LoopRequestSetAll
Definition imgui_internal.h:1927
ImGuiID FocusScopeId
Definition imgui_internal.h:1919
bool IsFocused
Definition imgui_internal.h:1929
bool IsEndIO
Definition imgui_internal.h:1928
bool IsKeyboardSetRange
Definition imgui_internal.h:1930
bool NavIdPassedBy
Definition imgui_internal.h:1931
bool RangeDstPassedBy
Definition imgui_internal.h:1933
ImGuiID BoxSelectId
Definition imgui_internal.h:1925
ImGuiMultiSelectFlags Flags
Definition imgui_internal.h:1920
ImGuiMultiSelectTempData()
Definition imgui_internal.h:1935
bool RangeSrcPassedBy
Definition imgui_internal.h:1932
ImGuiMultiSelectState * Storage
Definition imgui_internal.h:1918
ImVec2 BackupCursorMaxPos
Definition imgui_internal.h:1922
ImVec2 ScopeRectMin
Definition imgui_internal.h:1921
void Clear()
Definition imgui_internal.h:1936
ImGuiKeyChord KeyMods
Definition imgui_internal.h:1926
void ClearIO()
Definition imgui_internal.h:1937
Definition imgui_internal.h:1763
ImGuiID ID
Definition imgui_internal.h:1765
float DistBox
Definition imgui_internal.h:1769
ImGuiSelectionUserData SelectionUserData
Definition imgui_internal.h:1772
ImGuiNavItemData()
Definition imgui_internal.h:1774
ImRect RectRel
Definition imgui_internal.h:1767
void Clear()
Definition imgui_internal.h:1775
float DistCenter
Definition imgui_internal.h:1770
ImGuiID FocusScopeId
Definition imgui_internal.h:1766
ImGuiWindow * Window
Definition imgui_internal.h:1764
float DistAxial
Definition imgui_internal.h:1771
ImGuiItemFlags ItemFlags
Definition imgui_internal.h:1768
Definition imgui_internal.h:1363
void ClearFlags()
Definition imgui_internal.h:1380
ImGuiNextItemData()
Definition imgui_internal.h:1379
ImGuiID FocusScopeId
Definition imgui_internal.h:1368
ImGuiKeyChord Shortcut
Definition imgui_internal.h:1371
ImGuiInputFlags ShortcutFlags
Definition imgui_internal.h:1372
ImGuiItemFlags ItemFlags
Definition imgui_internal.h:1365
ImU32 ColorMarker
Definition imgui_internal.h:1377
ImGuiID StorageId
Definition imgui_internal.h:1376
bool OpenVal
Definition imgui_internal.h:1373
float Width
Definition imgui_internal.h:1370
ImGuiNextItemDataFlags HasFlags
Definition imgui_internal.h:1364
ImGuiDataTypeStorage RefVal
Definition imgui_internal.h:1375
ImU8 OpenCond
Definition imgui_internal.h:1374
ImGuiSelectionUserData SelectionUserData
Definition imgui_internal.h:1369
Definition imgui_internal.h:1325
ImGuiNextWindowData()
Definition imgui_internal.h:1347
ImVec2 ContentSizeVal
Definition imgui_internal.h:1335
ImGuiNextWindowDataFlags HasFlags
Definition imgui_internal.h:1326
bool CollapsedVal
Definition imgui_internal.h:1339
ImGuiCond SizeCond
Definition imgui_internal.h:1330
ImVec2 PosPivotVal
Definition imgui_internal.h:1333
float BgAlphaVal
Definition imgui_internal.h:1343
void * SizeCallbackUserData
Definition imgui_internal.h:1342
ImGuiWindowRefreshFlags RefreshFlagsVal
Definition imgui_internal.h:1345
ImGuiWindowFlags WindowFlags
Definition imgui_internal.h:1337
ImRect SizeConstraintRect
Definition imgui_internal.h:1340
ImGuiChildFlags ChildFlags
Definition imgui_internal.h:1338
ImGuiCond CollapsedCond
Definition imgui_internal.h:1331
void ClearFlags()
Definition imgui_internal.h:1348
ImVec2 PosVal
Definition imgui_internal.h:1332
ImVec2 MenuBarOffsetMinVal
Definition imgui_internal.h:1344
ImGuiSizeCallback SizeCallback
Definition imgui_internal.h:1341
ImGuiCond PosCond
Definition imgui_internal.h:1329
ImVec2 ScrollVal
Definition imgui_internal.h:1336
ImVec2 SizeVal
Definition imgui_internal.h:1334
Definition imgui_internal.h:1848
ImRect ClipRect
Definition imgui_internal.h:1852
ImGuiOldColumnData()
Definition imgui_internal.h:1854
float OffsetNorm
Definition imgui_internal.h:1849
float OffsetNormBeforeResize
Definition imgui_internal.h:1850
ImGuiOldColumnFlags Flags
Definition imgui_internal.h:1851
Definition imgui_internal.h:1858
ImDrawListSplitter Splitter
Definition imgui_internal.h:1873
float OffMaxX
Definition imgui_internal.h:1865
bool IsBeingResized
Definition imgui_internal.h:1862
float LineMinY
Definition imgui_internal.h:1866
float LineMaxY
Definition imgui_internal.h:1866
float OffMinX
Definition imgui_internal.h:1865
float HostCursorMaxPosX
Definition imgui_internal.h:1868
bool IsFirstFrame
Definition imgui_internal.h:1861
ImRect HostBackupClipRect
Definition imgui_internal.h:1870
ImRect HostInitialClipRect
Definition imgui_internal.h:1869
ImGuiOldColumnFlags Flags
Definition imgui_internal.h:1860
ImVector< ImGuiOldColumnData > Columns
Definition imgui_internal.h:1872
ImGuiOldColumns()
Definition imgui_internal.h:1875
int Count
Definition imgui_internal.h:1864
int Current
Definition imgui_internal.h:1863
float HostCursorPosY
Definition imgui_internal.h:1867
ImGuiID ID
Definition imgui_internal.h:1859
ImRect HostBackupParentWorkRect
Definition imgui_internal.h:1871
Definition imgui.h:2687
Definition imgui.h:3984
Definition imgui.h:4047
Definition imgui_internal.h:1480
int OpenFrameCount
Definition imgui_internal.h:1485
ImGuiID PopupId
Definition imgui_internal.h:1481
ImGuiPopupData()
Definition imgui_internal.h:1490
ImVec2 OpenPopupPos
Definition imgui_internal.h:1487
ImVec2 OpenMousePos
Definition imgui_internal.h:1488
ImGuiWindow * RestoreNavWindow
Definition imgui_internal.h:1483
ImGuiWindow * Window
Definition imgui_internal.h:1482
int ParentNavLayer
Definition imgui_internal.h:1484
ImGuiID OpenParentId
Definition imgui_internal.h:1486
ImGuiPtrOrIndex(void *ptr)
Definition imgui_internal.h:1454
int Index
Definition imgui_internal.h:1452
void * Ptr
Definition imgui_internal.h:1451
ImGuiPtrOrIndex(int index)
Definition imgui_internal.h:1455
Definition imgui_internal.h:2021
void(* ReadLineFn)(ImGuiContext *ctx, ImGuiSettingsHandler *handler, void *entry, const char *line)
Definition imgui_internal.h:2027
void(* ReadInitFn)(ImGuiContext *ctx, ImGuiSettingsHandler *handler)
Definition imgui_internal.h:2025
const char * TypeName
Definition imgui_internal.h:2022
void(* ClearAllFn)(ImGuiContext *ctx, ImGuiSettingsHandler *handler)
Definition imgui_internal.h:2024
void * UserData
Definition imgui_internal.h:2030
void(* ApplyAllFn)(ImGuiContext *ctx, ImGuiSettingsHandler *handler)
Definition imgui_internal.h:2028
void(* WriteAllFn)(ImGuiContext *ctx, ImGuiSettingsHandler *handler, ImGuiTextBuffer *out_buf)
Definition imgui_internal.h:2029
ImGuiSettingsHandler()
Definition imgui_internal.h:2032
ImGuiID TypeHash
Definition imgui_internal.h:2023
Definition imgui_internal.h:1443
float Width
Definition imgui_internal.h:1445
int Index
Definition imgui_internal.h:1444
float InitialWidth
Definition imgui_internal.h:1446
int DescOffset
Definition imgui_internal.h:2148
ImS8 QueryFrameCount
Definition imgui_internal.h:2145
ImS8 DataType
Definition imgui_internal.h:2147
ImGuiStackLevelInfo()
Definition imgui_internal.h:2150
ImGuiID ID
Definition imgui_internal.h:2144
bool QuerySuccess
Definition imgui_internal.h:2146
Definition imgui.h:2778
Definition imgui.h:2795
Definition imgui_internal.h:929
ImGuiStyleMod(ImGuiStyleVar idx, ImVec2 v)
Definition imgui_internal.h:934
int BackupInt[2]
Definition imgui_internal.h:931
ImGuiStyleMod(ImGuiStyleVar idx, float v)
Definition imgui_internal.h:933
ImGuiStyleVar VarIdx
Definition imgui_internal.h:930
ImGuiStyleMod(ImGuiStyleVar idx, int v)
Definition imgui_internal.h:932
float BackupFloat[2]
Definition imgui_internal.h:931
Definition imgui_internal.h:913
void * GetVarPtr(void *parent) const
Definition imgui_internal.h:917
ImGuiDataType DataType
Definition imgui_internal.h:915
ImU32 Count
Definition imgui_internal.h:914
ImU32 Offset
Definition imgui_internal.h:916
Definition imgui.h:2282
float _MainScale
Definition imgui.h:2364
Definition imgui_internal.h:2834
float PrevTabsContentsHeight
Definition imgui_internal.h:2848
ImGuiID ID
Definition imgui_internal.h:2838
ImVec2 BackupCursorPos
Definition imgui_internal.h:2870
float SeparatorMinX
Definition imgui_internal.h:2857
float ScrollingRectMaxX
Definition imgui_internal.h:2856
float ScrollingAnim
Definition imgui_internal.h:2851
ImGuiID VisibleTabId
Definition imgui_internal.h:2842
float ScrollingTarget
Definition imgui_internal.h:2852
float WidthAllTabs
Definition imgui_internal.h:2849
float ScrollingSpeed
Definition imgui_internal.h:2854
ImGuiID SelectedTabId
Definition imgui_internal.h:2839
ImVector< ImGuiTabItem > Tabs
Definition imgui_internal.h:2836
ImS16 LastTabItemIdx
Definition imgui_internal.h:2867
ImS16 TabsActiveCount
Definition imgui_internal.h:2866
bool TabsAddedNew
Definition imgui_internal.h:2864
ImGuiID ReorderRequestTabId
Definition imgui_internal.h:2859
ImRect BarRect
Definition imgui_internal.h:2845
int CurrFrameVisible
Definition imgui_internal.h:2843
ImGuiTabBar()
Definition imgui_widgets.cpp:9719
ImGuiID NextScrollToTabId
Definition imgui_internal.h:2841
bool VisibleTabWasSubmitted
Definition imgui_internal.h:2863
ImGuiWindow * Window
Definition imgui_internal.h:2835
ImVec2 FramePadding
Definition imgui_internal.h:2869
ImGuiTabBarFlags Flags
Definition imgui_internal.h:2837
float CurrTabsContentsHeight
Definition imgui_internal.h:2847
ImGuiID NextSelectedTabId
Definition imgui_internal.h:2840
float ScrollingTargetDistToVisibility
Definition imgui_internal.h:2853
int PrevFrameVisible
Definition imgui_internal.h:2844
float ScrollingRectMinX
Definition imgui_internal.h:2855
bool WantLayout
Definition imgui_internal.h:2862
float WidthAllTabsIdeal
Definition imgui_internal.h:2850
float SeparatorMaxX
Definition imgui_internal.h:2858
bool ScrollButtonEnabled
Definition imgui_internal.h:2865
ImS8 BeginCount
Definition imgui_internal.h:2861
ImS16 ReorderRequestOffset
Definition imgui_internal.h:2860
float BarRectPrevWidth
Definition imgui_internal.h:2846
float ItemSpacingY
Definition imgui_internal.h:2868
ImGuiTextBuffer TabsNames
Definition imgui_internal.h:2871
Definition imgui_internal.h:2815
float ContentWidth
Definition imgui_internal.h:2822
float Width
Definition imgui_internal.h:2821
ImGuiTabItem()
Definition imgui_internal.h:2829
ImS16 IndexDuringLayout
Definition imgui_internal.h:2826
float RequestedWidth
Definition imgui_internal.h:2823
int LastFrameVisible
Definition imgui_internal.h:2818
ImS32 NameOffset
Definition imgui_internal.h:2824
ImGuiTabItemFlags Flags
Definition imgui_internal.h:2817
bool WantClose
Definition imgui_internal.h:2827
ImS16 BeginOrder
Definition imgui_internal.h:2825
ImGuiID ID
Definition imgui_internal.h:2816
float Offset
Definition imgui_internal.h:2820
int LastFrameSelected
Definition imgui_internal.h:2819
Definition imgui_internal.h:2948
ImU32 BgColor
Definition imgui_internal.h:2949
ImGuiTableColumnIdx Column
Definition imgui_internal.h:2950
Definition imgui_internal.h:3130
ImGuiTableColumnIdx SortOrder
Definition imgui_internal.h:3135
ImS8 IsEnabled
Definition imgui_internal.h:3137
ImGuiID UserID
Definition imgui_internal.h:3132
ImGuiTableColumnIdx DisplayOrder
Definition imgui_internal.h:3134
ImGuiTableColumnIdx Index
Definition imgui_internal.h:3133
ImU8 IsStretch
Definition imgui_internal.h:3138
ImU8 SortDirection
Definition imgui_internal.h:3136
ImGuiTableColumnSettings()
Definition imgui_internal.h:3140
float WidthOrWeight
Definition imgui_internal.h:3131
Definition imgui.h:2158
Definition imgui_internal.h:2888
float ContentMaxXHeadersIdeal
Definition imgui_internal.h:2906
ImS8 NavLayerCurrent
Definition imgui_internal.h:2924
bool IsUserEnabledNextFrame
Definition imgui_internal.h:2918
ImU8 AutoFitQueue
Definition imgui_internal.h:2925
bool IsUserEnabled
Definition imgui_internal.h:2917
float StretchWeight
Definition imgui_internal.h:2896
float ContentMaxXFrozen
Definition imgui_internal.h:2903
ImGuiTableColumnIdx DisplayOrder
Definition imgui_internal.h:2908
ImGuiTableColumnIdx PrevEnabledColumn
Definition imgui_internal.h:2910
bool IsPreserveWidthAuto
Definition imgui_internal.h:2923
float InitStretchWeightOrWidth
Definition imgui_internal.h:2897
float WidthAuto
Definition imgui_internal.h:2894
ImGuiID UserID
Definition imgui_internal.h:2899
ImGuiTableColumnFlags Flags
Definition imgui_internal.h:2889
ImU8 SortDirectionsAvailCount
Definition imgui_internal.h:2928
ImGuiTableDrawChannelIdx DrawChannelUnfrozen
Definition imgui_internal.h:2915
ImS16 NameOffset
Definition imgui_internal.h:2907
float WorkMaxX
Definition imgui_internal.h:2901
ImU8 SortDirection
Definition imgui_internal.h:2927
ImGuiTableDrawChannelIdx DrawChannelFrozen
Definition imgui_internal.h:2914
float WidthRequest
Definition imgui_internal.h:2893
float WidthGiven
Definition imgui_internal.h:2890
ImGuiTableColumnIdx IndexWithinEnabledSet
Definition imgui_internal.h:2909
ImGuiTableColumn()
Definition imgui_internal.h:2932
ImGuiTableColumnIdx NextEnabledColumn
Definition imgui_internal.h:2911
float WidthMax
Definition imgui_internal.h:2895
float MinX
Definition imgui_internal.h:2891
bool IsRequestOutput
Definition imgui_internal.h:2921
bool IsVisibleY
Definition imgui_internal.h:2920
float MaxX
Definition imgui_internal.h:2892
float ContentMaxXHeadersUsed
Definition imgui_internal.h:2905
bool IsSkipItems
Definition imgui_internal.h:2922
bool IsEnabled
Definition imgui_internal.h:2916
ImU8 CannotSkipItemsQueue
Definition imgui_internal.h:2926
ImU8 SortDirectionsAvailList
Definition imgui_internal.h:2930
ImRect ClipRect
Definition imgui_internal.h:2898
float WorkMinX
Definition imgui_internal.h:2900
float ContentMaxXUnfrozen
Definition imgui_internal.h:2904
ImGuiTableDrawChannelIdx DrawChannelCurrent
Definition imgui_internal.h:2913
ImGuiTableColumnIdx SortOrder
Definition imgui_internal.h:2912
ImU8 SortDirectionsAvailMask
Definition imgui_internal.h:2929
bool IsVisibleX
Definition imgui_internal.h:2919
float ItemWidth
Definition imgui_internal.h:2902
Definition imgui_internal.h:2957
ImU32 BgColor1
Definition imgui_internal.h:2961
ImGuiTableColumnIdx Index
Definition imgui_internal.h:2958
ImU32 TextColor
Definition imgui_internal.h:2959
ImU32 BgColor0
Definition imgui_internal.h:2960
Definition imgui_internal.h:2967
float LastOuterHeight
Definition imgui_internal.h:2969
float LastTopHeadersRowHeight
Definition imgui_internal.h:2970
float LastFrozenHeight
Definition imgui_internal.h:2971
ImGuiID TableInstanceID
Definition imgui_internal.h:2968
ImGuiTableInstanceData()
Definition imgui_internal.h:2975
int HoveredRowNext
Definition imgui_internal.h:2973
int HoveredRowLast
Definition imgui_internal.h:2972
Definition imgui_internal.h:3154
bool WantApply
Definition imgui_internal.h:3160
float RefScale
Definition imgui_internal.h:3157
ImGuiTableFlags SaveFlags
Definition imgui_internal.h:3156
ImGuiTableColumnIdx ColumnsCountMax
Definition imgui_internal.h:3159
ImGuiTableColumnSettings * GetColumnSettings()
Definition imgui_internal.h:3163
ImGuiTableSettings()
Definition imgui_internal.h:3162
ImGuiTableColumnIdx ColumnsCount
Definition imgui_internal.h:3158
ImGuiID ID
Definition imgui_internal.h:3155
Definition imgui.h:2148
Definition imgui_internal.h:3106
float LastTimeActive
Definition imgui_internal.h:3109
ImRect HostBackupWorkRect
Definition imgui_internal.h:3116
ImVec2 HostBackupCursorMaxPos
Definition imgui_internal.h:3120
ImVec2 HostBackupPrevLineSize
Definition imgui_internal.h:3118
ImDrawListSplitter DrawSplitter
Definition imgui_internal.h:3114
ImVec1 HostBackupColumnsOffset
Definition imgui_internal.h:3121
ImGuiID WindowID
Definition imgui_internal.h:3107
ImVector< ImGuiTableHeaderData > AngledHeadersRequests
Definition imgui_internal.h:3111
ImGuiTableTempData()
Definition imgui_internal.h:3125
ImVec2 UserOuterSize
Definition imgui_internal.h:3113
ImVec2 HostBackupCurrLineSize
Definition imgui_internal.h:3119
int HostBackupItemWidthStackSize
Definition imgui_internal.h:3123
float AngledHeadersExtraWidth
Definition imgui_internal.h:3110
float HostBackupItemWidth
Definition imgui_internal.h:3122
int TableIndex
Definition imgui_internal.h:3108
ImRect HostBackupParentWorkRect
Definition imgui_internal.h:3117
Definition imgui_internal.h:2980
bool IsUnfrozenRows
Definition imgui_internal.h:3087
float BorderX2
Definition imgui_internal.h:3012
ImGuiTableInstanceData InstanceDataFirst
Definition imgui_internal.h:3041
float OuterPaddingX
Definition imgui_internal.h:3015
bool IsSortSpecsDirty
Definition imgui_internal.h:3078
ImBitArrayPtr VisibleMaskByIndex
Definition imgui_internal.h:2990
ImRect BgClipRect
Definition imgui_internal.h:3032
ImGuiTableFlags SettingsLoadedFlags
Definition imgui_internal.h:2991
bool IsActiveIdInTable
Definition imgui_internal.h:3090
ImGuiTableColumnIdx LeftMostStretchedColumn
Definition imgui_internal.h:3063
bool IsLayoutLocked
Definition imgui_internal.h:3075
ImRect Bg0ClipRectForDrawCmd
Definition imgui_internal.h:3033
ImRect Bg2ClipRectForDrawCmd
Definition imgui_internal.h:3034
ImGuiTableColumnIdx HoveredColumnBorder
Definition imgui_internal.h:3052
ImGuiTableDrawChannelIdx DummyDrawChannel
Definition imgui_internal.h:3071
int CurrentRow
Definition imgui_internal.h:2995
ImGuiID ID
Definition imgui_internal.h:2981
bool HostSkipItems
Definition imgui_internal.h:3094
float RefScale
Definition imgui_internal.h:3025
ImU32 RowBgColor[2]
Definition imgui_internal.h:3008
bool IsInitializing
Definition imgui_internal.h:3077
ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent
Definition imgui_internal.h:3072
ImBitArrayPtr EnabledMaskByDisplayOrder
Definition imgui_internal.h:2988
bool IsResetAllRequest
Definition imgui_internal.h:3085
bool IsInsideRow
Definition imgui_internal.h:3076
ImBitArrayPtr EnabledMaskByIndex
Definition imgui_internal.h:2989
ImGuiTableColumnIdx AutoFitSingleColumn
Definition imgui_internal.h:3054
ImRect HostBackupInnerClipRect
Definition imgui_internal.h:3036
ImGuiTableColumnIdx HoveredColumnBody
Definition imgui_internal.h:3051
ImGuiTableColumnIdx RowCellDataCurrent
Definition imgui_internal.h:3070
float CellSpacingX1
Definition imgui_internal.h:3017
float ColumnsStretchSumWeights
Definition imgui_internal.h:3022
ImGuiTableColumnIdx RightMostStretchedColumn
Definition imgui_internal.h:3064
ImRect HostClipRect
Definition imgui_internal.h:3035
float RowPosY2
Definition imgui_internal.h:3000
bool IsSettingsDirty
Definition imgui_internal.h:3083
ImRect WorkRect
Definition imgui_internal.h:3030
float MinColumnWidth
Definition imgui_internal.h:3014
ImSpan< ImGuiTableColumnIdx > DisplayOrderToIndex
Definition imgui_internal.h:2986
ImGuiTableColumnIdx ColumnsEnabledCount
Definition imgui_internal.h:3047
bool IsContextPopupOpen
Definition imgui_internal.h:3080
float BorderX1
Definition imgui_internal.h:3011
float CellSpacingX2
Definition imgui_internal.h:3018
bool DisableDefaultContextMenu
Definition imgui_internal.h:3081
float CellPaddingX
Definition imgui_internal.h:3016
ImSpan< ImGuiTableCellData > RowCellData
Definition imgui_internal.h:2987
ImRect InnerClipRect
Definition imgui_internal.h:3031
ImSpan< ImGuiTableColumn > Columns
Definition imgui_internal.h:2985
int LastFrameActive
Definition imgui_internal.h:2993
ImRect InnerRect
Definition imgui_internal.h:3029
ImGuiTableColumnIdx ReorderColumnDstOrder
Definition imgui_internal.h:3060
float AngledHeadersSlope
Definition imgui_internal.h:3027
int RowBgColorCounter
Definition imgui_internal.h:3007
ImRect OuterRect
Definition imgui_internal.h:3028
ImGuiTableColumnIdx SortSpecsCount
Definition imgui_internal.h:3046
ImGuiTableColumnIdx FreezeColumnsRequest
Definition imgui_internal.h:3068
ImS16 InstanceCurrent
Definition imgui_internal.h:2997
bool HasScrollbarYCurr
Definition imgui_internal.h:3091
float ColumnsAutoFitWidth
Definition imgui_internal.h:3021
void * RawData
Definition imgui_internal.h:2983
bool IsDefaultSizingPolicy
Definition imgui_internal.h:3088
ImGuiTableSortSpecs SortSpecs
Definition imgui_internal.h:3045
ImGuiTableTempData * TempData
Definition imgui_internal.h:2984
ImGuiTableColumnIdx RightMostEnabledColumn
Definition imgui_internal.h:3062
ImGuiTableColumnIdx DeclColumnsCount
Definition imgui_internal.h:3049
float ResizeLockMinContentsX2
Definition imgui_internal.h:3024
ImU32 BorderColorStrong
Definition imgui_internal.h:3009
int CurrentColumn
Definition imgui_internal.h:2996
bool IsActiveIdAliveBeforeTable
Definition imgui_internal.h:3089
bool IsUsingHeaders
Definition imgui_internal.h:3079
bool MemoryCompacted
Definition imgui_internal.h:3093
ImGuiTableColumnIdx HighlightColumnHeader
Definition imgui_internal.h:3053
bool IsDefaultDisplayOrder
Definition imgui_internal.h:3084
ImGuiTableColumnIdx FreezeRowsRequest
Definition imgui_internal.h:3066
ImGuiTableColumnIdx LeftMostEnabledColumn
Definition imgui_internal.h:3061
bool IsResetDisplayOrderRequest
Definition imgui_internal.h:3086
bool IsSettingsRequestLoad
Definition imgui_internal.h:3082
float ResizedColumnNextWidth
Definition imgui_internal.h:3023
bool HasScrollbarYPrev
Definition imgui_internal.h:3092
ImS8 NavLayer
Definition imgui_internal.h:3074
float RowCellPaddingY
Definition imgui_internal.h:3002
ImGuiWindow * OuterWindow
Definition imgui_internal.h:3037
ImVector< ImGuiTableColumnSortSpecs > SortSpecsMulti
Definition imgui_internal.h:3044
float RowIndentOffsetX
Definition imgui_internal.h:3004
ImS16 InstanceInteracted
Definition imgui_internal.h:2998
ImGuiTableFlags Flags
Definition imgui_internal.h:2982
ImU32 BorderColorLight
Definition imgui_internal.h:3010
~ImGuiTable()
Definition imgui_internal.h:3097
float InnerWidth
Definition imgui_internal.h:3019
ImGuiTableColumnSortSpecs SortSpecsSingle
Definition imgui_internal.h:3043
ImGuiTableColumnIdx LastHeldHeaderColumn
Definition imgui_internal.h:3058
ImGuiWindow * InnerWindow
Definition imgui_internal.h:3038
float HostIndentX
Definition imgui_internal.h:3013
ImGuiTableColumnIdx LastResizedColumn
Definition imgui_internal.h:3056
ImGuiTableColumnIdx FreezeRowsCount
Definition imgui_internal.h:3067
ImGuiTable()
Definition imgui_internal.h:3096
ImGuiTableRowFlags LastRowFlags
Definition imgui_internal.h:3006
ImGuiTableColumnIdx FreezeColumnsCount
Definition imgui_internal.h:3069
ImGuiTableRowFlags RowFlags
Definition imgui_internal.h:3005
ImVector< ImGuiTableInstanceData > InstanceDataExtra
Definition imgui_internal.h:3042
ImGuiTableColumnIdx AngledHeadersCount
Definition imgui_internal.h:3050
float AngledHeadersHeight
Definition imgui_internal.h:3026
ImGuiTableColumnIdx ContextPopupColumn
Definition imgui_internal.h:3065
ImGuiTableColumnIdx ColumnsEnabledFixedCount
Definition imgui_internal.h:3048
ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen
Definition imgui_internal.h:3073
float ColumnsGivenWidth
Definition imgui_internal.h:3020
ImGuiTableColumnIdx ResizedColumn
Definition imgui_internal.h:3055
float RowMinHeight
Definition imgui_internal.h:3001
int SettingsOffset
Definition imgui_internal.h:2992
float RowTextBaseline
Definition imgui_internal.h:3003
ImGuiTableColumnIdx HeldHeaderColumn
Definition imgui_internal.h:3057
float RowPosY1
Definition imgui_internal.h:2999
ImGuiTextBuffer ColumnsNames
Definition imgui_internal.h:3039
ImGuiTableColumnIdx ReorderColumn
Definition imgui_internal.h:3059
ImDrawListSplitter * DrawSplitter
Definition imgui_internal.h:3040
int ColumnsCount
Definition imgui_internal.h:2994
Definition imgui.h:2757
Definition imgui_internal.h:819
int size()
Definition imgui_internal.h:824
ImVector< int > Offsets
Definition imgui_internal.h:820
const char * get_line_end(const char *base, int n)
Definition imgui_internal.h:826
void clear()
Definition imgui_internal.h:823
int EndOffset
Definition imgui_internal.h:821
const char * get_line_begin(const char *base, int n)
Definition imgui_internal.h:825
void append(const char *base, int old_size, int new_size)
Definition imgui.cpp:3187
Definition imgui_internal.h:1404
ImGuiID ID
Definition imgui_internal.h:1405
ImGuiTableColumnIdx DrawLinesTableColumn
Definition imgui_internal.h:1411
ImGuiTreeNodeFlags TreeFlags
Definition imgui_internal.h:1406
float DrawLinesX1
Definition imgui_internal.h:1409
ImRect NavRect
Definition imgui_internal.h:1408
float DrawLinesToNodesY2
Definition imgui_internal.h:1410
ImGuiItemFlags ItemFlags
Definition imgui_internal.h:1407
Definition imgui_internal.h:1799
bool SelectRequest
Definition imgui_internal.h:1803
ImGuiTypingSelectFlags Flags
Definition imgui_internal.h:1800
int SearchBufferLen
Definition imgui_internal.h:1801
const char * SearchBuffer
Definition imgui_internal.h:1802
bool SingleCharMode
Definition imgui_internal.h:1804
ImS8 SingleCharSize
Definition imgui_internal.h:1805
Definition imgui_internal.h:1810
int LastRequestFrame
Definition imgui_internal.h:1814
bool SingleCharModeLock
Definition imgui_internal.h:1816
void Clear()
Definition imgui_internal.h:1819
ImGuiTypingSelectRequest Request
Definition imgui_internal.h:1811
char SearchBuffer[64]
Definition imgui_internal.h:1812
float LastRequestTime
Definition imgui_internal.h:1815
ImGuiTypingSelectState()
Definition imgui_internal.h:1818
ImGuiID FocusScope
Definition imgui_internal.h:1813
Definition imgui_internal.h:1970
void UpdateWorkRect()
Definition imgui_internal.h:1991
ImVec2 WorkInsetMax
Definition imgui_internal.h:1981
ImDrawList * BgFgDrawLists[2]
Definition imgui_internal.h:1972
~ImGuiViewportP()
Definition imgui_internal.h:1986
ImDrawDataBuilder DrawDataBuilder
Definition imgui_internal.h:1974
ImVec2 BuildWorkInsetMax
Definition imgui_internal.h:1983
ImGuiViewportP()
Definition imgui_internal.h:1985
ImVec2 WorkInsetMin
Definition imgui_internal.h:1980
ImVec2 BuildWorkInsetMin
Definition imgui_internal.h:1982
ImRect GetBuildWorkRect() const
Definition imgui_internal.h:1996
ImVec2 CalcWorkRectPos(const ImVec2 &inset_min) const
Definition imgui_internal.h:1989
float BgFgDrawListsLastTimeActive[2]
Definition imgui_internal.h:1971
ImDrawData DrawDataP
Definition imgui_internal.h:1973
ImRect GetMainRect() const
Definition imgui_internal.h:1994
ImRect GetWorkRect() const
Definition imgui_internal.h:1995
ImVec2 CalcWorkRectSize(const ImVec2 &inset_min, const ImVec2 &inset_max) const
Definition imgui_internal.h:1990
Definition imgui.h:3958
ImVec2 Pos
Definition imgui.h:3961
ImVec2 WorkPos
Definition imgui.h:3964
ImGuiViewport()
Definition imgui.h:3971
ImVec2 Size
Definition imgui.h:3962
ImVec2 WorkSize
Definition imgui.h:3965
Definition imgui_internal.h:2007
bool WantDelete
Definition imgui_internal.h:2014
bool WantApply
Definition imgui_internal.h:2013
ImGuiID ID
Definition imgui_internal.h:2008
ImGuiWindowSettings()
Definition imgui_internal.h:2016
bool Collapsed
Definition imgui_internal.h:2011
char * GetName()
Definition imgui_internal.h:2017
ImVec2ih Size
Definition imgui_internal.h:2010
bool IsChild
Definition imgui_internal.h:2012
ImVec2ih Pos
Definition imgui_internal.h:2009
Definition imgui_internal.h:1434
ImGuiLastItemData ParentLastItemDataBackup
Definition imgui_internal.h:1436
float DisabledOverrideReenableAlphaBackup
Definition imgui_internal.h:1439
bool DisabledOverrideReenable
Definition imgui_internal.h:1438
ImGuiErrorRecoveryState StackSizesInBegin
Definition imgui_internal.h:1437
ImGuiWindow * Window
Definition imgui_internal.h:1435
Definition imgui_internal.h:2608
bool NavHideHighlightOneFrame
Definition imgui_internal.h:2631
float ItemWidthDefault
Definition imgui_internal.h:2654
ImVec2 IdealMaxPos
Definition imgui_internal.h:2614
ImVec2 CurrLineSize
Definition imgui_internal.h:2615
ImVec1 Indent
Definition imgui_internal.h:2621
ImVec1 GroupOffset
Definition imgui_internal.h:2623
ImVec2 CursorMaxPos
Definition imgui_internal.h:2613
bool NavWindowHasScrollY
Definition imgui_internal.h:2632
bool IsSetPos
Definition imgui_internal.h:2620
float CurrLineTextBaseOffset
Definition imgui_internal.h:2617
ImVec2 CursorStartPosLossyness
Definition imgui_internal.h:2624
short NavLayersActiveMask
Definition imgui_internal.h:2628
ImVec2 CursorStartPos
Definition imgui_internal.h:2612
float TextWrapPos
Definition imgui_internal.h:2655
ImU32 ModalDimBgColor
Definition imgui_internal.h:2647
ImGuiLayoutType LayoutType
Definition imgui_internal.h:2645
float PrevLineTextBaseOffset
Definition imgui_internal.h:2618
short NavLayersActiveMaskNext
Definition imgui_internal.h:2629
ImU32 TreeHasStackDataDepthMask
Definition imgui_internal.h:2639
int CurrentTableIdx
Definition imgui_internal.h:2644
ImU32 TreeRecordsClippedNodesY2Mask
Definition imgui_internal.h:2640
ImGuiMenuColumns MenuColumns
Definition imgui_internal.h:2637
ImGuiItemStatusFlags WindowItemStatusFlags
Definition imgui_internal.h:2648
ImGuiNavLayer NavLayerCurrent
Definition imgui_internal.h:2627
bool MenuBarAppending
Definition imgui_internal.h:2635
ImVector< float > TextWrapPosStack
Definition imgui_internal.h:2657
ImVec2 CursorPos
Definition imgui_internal.h:2610
ImVec2 PrevLineSize
Definition imgui_internal.h:2616
int TreeDepth
Definition imgui_internal.h:2638
float ItemWidth
Definition imgui_internal.h:2653
ImVector< float > ItemWidthStack
Definition imgui_internal.h:2656
ImVector< ImGuiWindow * > ChildWindows
Definition imgui_internal.h:2641
ImGuiItemStatusFlags ChildItemStatusFlags
Definition imgui_internal.h:2649
ImGuiOldColumns * CurrentColumns
Definition imgui_internal.h:2643
ImVec2 MenuBarOffset
Definition imgui_internal.h:2636
bool IsSameLine
Definition imgui_internal.h:2619
ImVec2 CursorPosPrevLine
Definition imgui_internal.h:2611
bool NavIsScrollPushableX
Definition imgui_internal.h:2630
ImGuiStorage * StateStorage
Definition imgui_internal.h:2642
ImGuiLayoutType ParentLayoutType
Definition imgui_internal.h:2646
ImVec1 ColumnsOffset
Definition imgui_internal.h:2622
Definition imgui_internal.h:2662
int SettingsOffset
Definition imgui_internal.h:2750
ImVec2 ScrollbarSizes
Definition imgui_internal.h:2691
short BeginCount
Definition imgui_internal.h:2709
bool Collapsed
Definition imgui_internal.h:2698
ImRect TitleBarRect() const
Definition imgui_internal.h:2784
ImGuiContext * Ctx
Definition imgui_internal.h:2663
ImGuiCond SetWindowSizeAllowFlags
Definition imgui_internal.h:2723
ImRect InnerRect
Definition imgui_internal.h:2734
ImS8 AutoFitFramesY
Definition imgui_internal.h:2715
int MemoryDrawListVtxCapacity
Definition imgui_internal.h:2769
ImVec2 Pos
Definition imgui_internal.h:2669
ImRect Rect() const
Definition imgui_internal.h:2783
bool Appearing
Definition imgui_internal.h:2702
ImGuiID ChildId
Definition imgui_internal.h:2684
float DecoOuterSizeX2
Definition imgui_internal.h:2680
short BeginCountPreviousFrame
Definition imgui_internal.h:2710
ImVector< ImGuiID > IDStack
Definition imgui_internal.h:2728
int NameBufLen
Definition imgui_internal.h:2682
ImGuiID NavLastIds[ImGuiNavLayer_COUNT]
Definition imgui_internal.h:2763
ImGuiStorage StateStorage
Definition imgui_internal.h:2745
ImS8 DisableInputsFrames
Definition imgui_internal.h:2720
signed char ResizeBorderHeld
Definition imgui_internal.h:2708
ImGuiID PopupId
Definition imgui_internal.h:2685
ImGuiChildFlags ChildFlags
Definition imgui_internal.h:2667
bool AutoFitOnlyGrows
Definition imgui_internal.h:2716
ImDrawList * DrawList
Definition imgui_internal.h:2752
bool WriteAccessed
Definition imgui_internal.h:2697
ImRect WorkRect
Definition imgui_internal.h:2736
bool WantCollapseToggle
Definition imgui_internal.h:2699
ImVec2 ScrollTargetCenterRatio
Definition imgui_internal.h:2689
bool Active
Definition imgui_internal.h:2695
ImGuiID GetIDFromRectangle(const ImRect &r_abs)
Definition imgui.cpp:9232
ImGuiID GetIDFromPos(const ImVec2 &p_abs)
Definition imgui.cpp:9223
ImU8 ScrollbarXStabilizeToggledHistory
Definition imgui_internal.h:2694
ImGuiCond SetWindowCollapsedAllowFlags
Definition imgui_internal.h:2724
bool Hidden
Definition imgui_internal.h:2703
float DecoOuterSizeX1
Definition imgui_internal.h:2679
ImVec2 SetWindowPosPivot
Definition imgui_internal.h:2726
ImVec2 WindowPadding
Definition imgui_internal.h:2675
float FontWindowScale
Definition imgui_internal.h:2747
ImGuiID ID
Definition imgui_internal.h:2665
ImRect InnerClipRect
Definition imgui_internal.h:2735
ImRect MenuBarRect() const
Definition imgui_internal.h:2785
bool ScrollbarX
Definition imgui_internal.h:2692
ImGuiWindow * RootWindowPopupTree
Definition imgui_internal.h:2757
ImGuiID NavRootFocusScopeId
Definition imgui_internal.h:2766
ImGuiWindow * ParentWindow
Definition imgui_internal.h:2754
ImS8 HiddenFramesForRenderOnly
Definition imgui_internal.h:2719
short FocusOrder
Definition imgui_internal.h:2713
ImVec2ih HitTestHoleOffset
Definition imgui_internal.h:2741
ImGuiID MoveId
Definition imgui_internal.h:2683
ImVec2 ContentSize
Definition imgui_internal.h:2672
ImVec2 SetWindowPosVal
Definition imgui_internal.h:2725
ImS8 AutoFitFramesX
Definition imgui_internal.h:2715
int LastFrameActive
Definition imgui_internal.h:2743
ImGuiWindow * NavLastChildNavWindow
Definition imgui_internal.h:2762
ImS8 HiddenFramesCannotSkipItems
Definition imgui_internal.h:2718
ImGuiWindowTempData DC
Definition imgui_internal.h:2729
ImVec2 ScrollTarget
Definition imgui_internal.h:2688
ImGuiWindowFlags Flags
Definition imgui_internal.h:2666
signed char ResizeBorderHovered
Definition imgui_internal.h:2707
ImGuiWindow * ParentWindowForFocusRoute
Definition imgui_internal.h:2760
float WindowRounding
Definition imgui_internal.h:2676
ImVec2 Size
Definition imgui_internal.h:2670
bool SkipRefresh
Definition imgui_internal.h:2701
float FontRefSize
Definition imgui_internal.h:2749
ImGuiCond SetWindowPosAllowFlags
Definition imgui_internal.h:2722
ImGuiWindow * RootWindowForNav
Definition imgui_internal.h:2759
ImRect ClipRect
Definition imgui_internal.h:2738
int MemoryDrawListIdxCapacity
Definition imgui_internal.h:2768
float DecoInnerSizeX1
Definition imgui_internal.h:2681
ImGuiWindow * ParentWindowInBeginStack
Definition imgui_internal.h:2755
ImVec2 ScrollTargetEdgeSnapDist
Definition imgui_internal.h:2690
float MenuBarHeight
Definition imgui_internal.h:2678
short BeginOrderWithinParent
Definition imgui_internal.h:2711
ImGuiDir AutoPosLastDirection
Definition imgui_internal.h:2714
ImVec2 ContentSizeExplicit
Definition imgui_internal.h:2674
ImDrawList DrawListInst
Definition imgui_internal.h:2753
ImVec2ih HitTestHoleSize
Definition imgui_internal.h:2740
bool IsExplicitChild
Definition imgui_internal.h:2705
ImVec2 ContentSizeIdeal
Definition imgui_internal.h:2673
ImRect NavRectRel[ImGuiNavLayer_COUNT]
Definition imgui_internal.h:2764
bool WasActive
Definition imgui_internal.h:2696
float TitleBarHeight
Definition imgui_internal.h:2678
char * Name
Definition imgui_internal.h:2664
ImGuiViewportP * Viewport
Definition imgui_internal.h:2668
float DecoInnerSizeY1
Definition imgui_internal.h:2681
ImVec2 Scroll
Definition imgui_internal.h:2686
ImVec2 NavPreferredScoringPosRel[ImGuiNavLayer_COUNT]
Definition imgui_internal.h:2765
ImVec2 SizeFull
Definition imgui_internal.h:2671
ImRect OuterRectClipped
Definition imgui_internal.h:2733
bool SkipItems
Definition imgui_internal.h:2700
float FontWindowScaleParents
Definition imgui_internal.h:2748
float DecoOuterSizeY1
Definition imgui_internal.h:2679
ImGuiWindow(ImGuiContext *context, const char *name)
Definition imgui.cpp:4572
float WindowBorderSize
Definition imgui_internal.h:2677
float DecoOuterSizeY2
Definition imgui_internal.h:2680
ImVector< ImGuiOldColumns > ColumnsStorage
Definition imgui_internal.h:2746
ImRect ParentWorkRect
Definition imgui_internal.h:2737
bool ScrollbarXStabilizeEnabled
Definition imgui_internal.h:2693
ImGuiWindow * RootWindowForTitleBarHighlight
Definition imgui_internal.h:2758
ImRect ContentRegionRect
Definition imgui_internal.h:2739
bool ScrollbarY
Definition imgui_internal.h:2692
float LastTimeActive
Definition imgui_internal.h:2744
bool HasCloseButton
Definition imgui_internal.h:2706
ImGuiWindow * RootWindow
Definition imgui_internal.h:2756
ImVec2 ScrollMax
Definition imgui_internal.h:2687
bool IsFallbackWindow
Definition imgui_internal.h:2704
ImS8 HiddenFramesCanSkipItems
Definition imgui_internal.h:2717
bool MemoryCompacted
Definition imgui_internal.h:2770
short BeginOrderWithinContext
Definition imgui_internal.h:2712
ImGuiID GetID(const char *str, const char *str_end=NULL)
Definition imgui.cpp:9185
ImGuiWindowBgClickFlags BgClickFlags
Definition imgui_internal.h:2721
Definition imgui_internal.h:766
T * GetByIndex(ImPoolIdx n)
Definition imgui_internal.h:775
bool Contains(const T *p) const
Definition imgui_internal.h:778
int GetAliveCount() const
Definition imgui_internal.h:787
T * TryGetMapData(ImPoolIdx n)
Definition imgui_internal.h:790
T * Add()
Definition imgui_internal.h:780
ImPoolIdx GetIndex(const T *p) const
Definition imgui_internal.h:776
T * GetOrAddByKey(ImGuiID key)
Definition imgui_internal.h:777
int GetBufSize() const
Definition imgui_internal.h:788
int GetMapSize() const
Definition imgui_internal.h:789
void Clear()
Definition imgui_internal.h:779
void Reserve(int capacity)
Definition imgui_internal.h:783
ImGuiStorage Map
Definition imgui_internal.h:768
void Remove(ImGuiID key, const T *p)
Definition imgui_internal.h:781
ImPool()
Definition imgui_internal.h:772
void Remove(ImGuiID key, ImPoolIdx idx)
Definition imgui_internal.h:782
~ImPool()
Definition imgui_internal.h:773
ImPoolIdx AliveCount
Definition imgui_internal.h:770
ImVector< T > Buf
Definition imgui_internal.h:767
T * GetByKey(ImGuiID key)
Definition imgui_internal.h:774
ImPoolIdx FreeIdx
Definition imgui_internal.h:769
Definition imgui_internal.h:586
bool Overlaps(const ImRect &r) const
Definition imgui_internal.h:607
bool IsInverted() const
Definition imgui_internal.h:619
ImVec2 GetTL() const
Definition imgui_internal.h:600
constexpr ImRect()
Definition imgui_internal.h:590
void TranslateX(float dx)
Definition imgui_internal.h:615
ImVec4 ToVec4() const
Definition imgui_internal.h:620
void ClipWithFull(const ImRect &r)
Definition imgui_internal.h:618
ImVec2 GetBL() const
Definition imgui_internal.h:602
void Add(const ImVec2 &p)
Definition imgui_internal.h:608
float GetHeight() const
Definition imgui_internal.h:598
constexpr ImRect(const ImVec4 &v)
Definition imgui_internal.h:592
void Translate(const ImVec2 &d)
Definition imgui_internal.h:614
constexpr ImRect(float x1, float y1, float x2, float y2)
Definition imgui_internal.h:593
const ImVec4 & AsVec4() const
Definition imgui_internal.h:621
bool ContainsWithPad(const ImVec2 &p, const ImVec2 &pad) const
Definition imgui_internal.h:606
ImVec2 Max
Definition imgui_internal.h:588
ImVec2 GetCenter() const
Definition imgui_internal.h:595
void Add(const ImRect &r)
Definition imgui_internal.h:609
void TranslateY(float dy)
Definition imgui_internal.h:616
void ClipWith(const ImRect &r)
Definition imgui_internal.h:617
void Expand(const ImVec2 &amount)
Definition imgui_internal.h:613
bool Contains(const ImVec2 &p) const
Definition imgui_internal.h:604
ImVec2 GetTR() const
Definition imgui_internal.h:601
float GetArea() const
Definition imgui_internal.h:599
ImVec2 GetBR() const
Definition imgui_internal.h:603
bool Contains(const ImRect &r) const
Definition imgui_internal.h:605
ImVec2 GetSize() const
Definition imgui_internal.h:596
void AddX(float x)
Definition imgui_internal.h:610
void Expand(const float amount)
Definition imgui_internal.h:612
constexpr ImRect(const ImVec2 &min, const ImVec2 &max)
Definition imgui_internal.h:591
ImVec2 Min
Definition imgui_internal.h:587
float GetWidth() const
Definition imgui_internal.h:597
void AddY(float y)
Definition imgui_internal.h:611
char * BasePtr
Definition imgui_internal.h:711
void GetSpan(int n, ImSpan< T > *span)
Definition imgui_internal.h:724
int Offsets[CHUNKS]
Definition imgui_internal.h:714
int CurrIdx
Definition imgui_internal.h:713
int GetArenaSizeInBytes()
Definition imgui_internal.h:719
void Reserve(int n, size_t sz, int a=4)
Definition imgui_internal.h:718
void * GetSpanPtrBegin(int n)
Definition imgui_internal.h:721
void * GetSpanPtrEnd(int n)
Definition imgui_internal.h:722
int CurrOff
Definition imgui_internal.h:712
void SetArenaBasePtr(void *base_ptr)
Definition imgui_internal.h:720
ImSpanAllocator()
Definition imgui_internal.h:717
int Sizes[CHUNKS]
Definition imgui_internal.h:715
Definition imgui_internal.h:680
void set(T *data, int size)
Definition imgui_internal.h:689
T * DataEnd
Definition imgui_internal.h:682
int size_in_bytes() const
Definition imgui_internal.h:692
T & operator[](int i)
Definition imgui_internal.h:693
ImSpan(T *data, int size)
Definition imgui_internal.h:686
T * end()
Definition imgui_internal.h:698
const T * end() const
Definition imgui_internal.h:699
ImSpan()
Definition imgui_internal.h:685
T * begin()
Definition imgui_internal.h:696
int index_from_ptr(const T *it) const
Definition imgui_internal.h:702
int size() const
Definition imgui_internal.h:691
T * Data
Definition imgui_internal.h:681
void set(T *data, T *data_end)
Definition imgui_internal.h:690
const T * begin() const
Definition imgui_internal.h:697
ImSpan(T *data, T *data_end)
Definition imgui_internal.h:687
const T & operator[](int i) const
Definition imgui_internal.h:694
Definition imgui_internal.h:733
~ImStableVector()
Definition imgui_internal.h:739
int Size
Definition imgui_internal.h:734
T & operator[](int i)
Definition imgui_internal.h:755
void clear()
Definition imgui_internal.h:741
T * push_back(const T &v)
Definition imgui_internal.h:757
ImVector< T * > Blocks
Definition imgui_internal.h:736
const T & operator[](int i) const
Definition imgui_internal.h:756
void reserve(int new_cap)
Definition imgui_internal.h:743
void resize(int new_size)
Definition imgui_internal.h:742
int Capacity
Definition imgui_internal.h:735
Definition imgui_widgets.cpp:344
Definition imgui.h:3509
Definition imgui.h:3496
Definition imgui.h:368
ImTextureData * _TexData
Definition imgui.h:378
ImTextureID _TexID
Definition imgui.h:379
Definition imgui_internal.h:560
constexpr ImVec1(float _x)
Definition imgui_internal.h:563
float x
Definition imgui_internal.h:561
constexpr ImVec1()
Definition imgui_internal.h:562
Definition imgui.h:296
float y
Definition imgui.h:297
float x
Definition imgui.h:297
Definition imgui_internal.h:568
int y
Definition imgui_internal.h:569
constexpr ImVec2i(int _x, int _y)
Definition imgui_internal.h:571
constexpr ImVec2i()
Definition imgui_internal.h:570
int x
Definition imgui_internal.h:569
Definition imgui_internal.h:576
short x
Definition imgui_internal.h:577
constexpr ImVec2ih(const ImVec2 &rhs)
Definition imgui_internal.h:580
constexpr ImVec2ih(short _x, short _y)
Definition imgui_internal.h:579
constexpr ImVec2ih()
Definition imgui_internal.h:578
short y
Definition imgui_internal.h:577
Definition imgui.h:309
float x
Definition imgui.h:310
float y
Definition imgui.h:310
float z
Definition imgui.h:310
float w
Definition imgui.h:310
Definition imgui.h:2210
int index_from_ptr(const T *it) const
Definition imgui.h:2269
void swap(ImVector< T > &rhs)
Definition imgui.h:2246
Definition imgui_internal.h:3889
char data[80]
Definition imgui_internal.h:3889
Definition imstb_rectpack.h:180