25#define IMGUI_VERSION "1.89.3"
26#define IMGUI_VERSION_NUM 18930
27#define IMGUI_HAS_TABLE
53#ifdef IMGUI_USER_CONFIG
54#include IMGUI_USER_CONFIG
77#define IMGUI_IMPL_API IMGUI_API
83#define IM_ASSERT(_EXPR) assert(_EXPR)
85#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR))))
86#define IM_UNUSED(_VAR) ((void)(_VAR))
87#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER)
88#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx))
91#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__)
92#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1)))
93#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0)))
94#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__))
95#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1)))
96#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0)))
98#define IM_FMTARGS(FMT)
99#define IM_FMTLIST(FMT)
103#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID)
104#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off))
105#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop))
107#define IM_MSVC_RUNTIME_CHECKS_OFF
108#define IM_MSVC_RUNTIME_CHECKS_RESTORE
113#pragma warning (push)
114#pragma warning (disable: 26495)
116#if defined(__clang__)
117#pragma clang diagnostic push
118#pragma clang diagnostic ignored "-Wold-style-cast"
119#if __has_warning("-Wzero-as-null-pointer-constant")
120#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
122#elif defined(__GNUC__)
123#pragma GCC diagnostic push
124#pragma GCC diagnostic ignored "-Wpragmas"
125#pragma GCC diagnostic ignored "-Wclass-memaccess"
171typedef int ImGuiCond;
172typedef int ImGuiDataType;
174typedef int ImGuiMouseButton;
175typedef int ImGuiMouseCursor;
176typedef int ImGuiSortDirection;
177typedef int ImGuiStyleVar;
178typedef int ImGuiTableBgTarget;
184typedef int ImDrawFlags;
185typedef int ImDrawListFlags;
186typedef int ImFontAtlasFlags;
187typedef int ImGuiBackendFlags;
188typedef int ImGuiButtonFlags;
189typedef int ImGuiColorEditFlags;
190typedef int ImGuiConfigFlags;
191typedef int ImGuiComboFlags;
192typedef int ImGuiDragDropFlags;
193typedef int ImGuiFocusedFlags;
194typedef int ImGuiHoveredFlags;
195typedef int ImGuiInputTextFlags;
196typedef int ImGuiKeyChord;
197typedef int ImGuiPopupFlags;
198typedef int ImGuiSelectableFlags;
199typedef int ImGuiSliderFlags;
200typedef int ImGuiTabBarFlags;
201typedef int ImGuiTabItemFlags;
202typedef int ImGuiTableFlags;
203typedef int ImGuiTableColumnFlags;
204typedef int ImGuiTableRowFlags;
205typedef int ImGuiTreeNodeFlags;
206typedef int ImGuiViewportFlags;
207typedef int ImGuiWindowFlags;
213typedef void* ImTextureID;
220typedef unsigned short ImDrawIdx;
224typedef unsigned int ImGuiID;
225typedef signed char ImS8;
226typedef unsigned char ImU8;
227typedef signed short ImS16;
228typedef unsigned short ImU16;
229typedef signed int ImS32;
230typedef unsigned int ImU32;
231typedef signed long long ImS64;
232typedef unsigned long long ImU64;
236typedef unsigned short ImWchar16;
237typedef unsigned int ImWchar32;
238#ifdef IMGUI_USE_WCHAR32
239typedef ImWchar32 ImWchar;
241typedef ImWchar16 ImWchar;
247typedef void* (*ImGuiMemAllocFunc)(
size_t sz,
void* user_data);
248typedef void (*ImGuiMemFreeFunc)(
void* ptr,
void* user_data);
252IM_MSVC_RUNTIME_CHECKS_OFF
256 constexpr ImVec2() : x(0.0f), y(0.0f) { }
257 constexpr ImVec2(
float _x,
float _y) : x(_x), y(_y) { }
258 float operator[] (
size_t idx)
const { IM_ASSERT(idx == 0 || idx == 1);
return (&x)[idx]; }
259 float& operator[] (
size_t idx) { IM_ASSERT(idx == 0 || idx == 1);
return (&x)[idx]; }
260#ifdef IM_VEC2_CLASS_EXTRA
269 constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { }
270 constexpr ImVec4(
float _x,
float _y,
float _z,
float _w) : x(_x), y(_y), z(_z), w(_w) { }
271#ifdef IM_VEC4_CLASS_EXTRA
275IM_MSVC_RUNTIME_CHECKS_RESTORE
289 IMGUI_API
void DestroyContext(
ImGuiContext* ctx = NULL);
296 IMGUI_API
void NewFrame();
297 IMGUI_API
void EndFrame();
298 IMGUI_API
void Render();
302 IMGUI_API
void ShowDemoWindow(
bool* p_open = NULL);
303 IMGUI_API
void ShowMetricsWindow(
bool* p_open = NULL);
304 IMGUI_API
void ShowDebugLogWindow(
bool* p_open = NULL);
305 IMGUI_API
void ShowStackToolWindow(
bool* p_open = NULL);
306 IMGUI_API
void ShowAboutWindow(
bool* p_open = NULL);
307 IMGUI_API
void ShowStyleEditor(
ImGuiStyle* ref = NULL);
308 IMGUI_API
bool ShowStyleSelector(
const char* label);
309 IMGUI_API
void ShowFontSelector(
const char* label);
310 IMGUI_API
void ShowUserGuide();
311 IMGUI_API
const char* GetVersion();
314 IMGUI_API
void StyleColorsDark(
ImGuiStyle* dst = NULL);
315 IMGUI_API
void StyleColorsLight(
ImGuiStyle* dst = NULL);
316 IMGUI_API
void StyleColorsClassic(
ImGuiStyle* dst = NULL);
330 IMGUI_API
bool Begin(
const char* name,
bool* p_open = NULL, ImGuiWindowFlags flags = 0);
331 IMGUI_API
void End();
341 IMGUI_API
bool BeginChild(
const char* str_id,
const ImVec2& size =
ImVec2(0, 0),
bool border =
false, ImGuiWindowFlags flags = 0);
342 IMGUI_API
bool BeginChild(ImGuiID
id,
const ImVec2& size =
ImVec2(0, 0),
bool border =
false, ImGuiWindowFlags flags = 0);
343 IMGUI_API
void EndChild();
347 IMGUI_API
bool IsWindowAppearing();
348 IMGUI_API
bool IsWindowCollapsed();
349 IMGUI_API
bool IsWindowFocused(ImGuiFocusedFlags flags=0);
350 IMGUI_API
bool IsWindowHovered(ImGuiHoveredFlags flags=0);
352 IMGUI_API
ImVec2 GetWindowPos();
353 IMGUI_API
ImVec2 GetWindowSize();
354 IMGUI_API
float GetWindowWidth();
355 IMGUI_API
float GetWindowHeight();
359 IMGUI_API
void SetNextWindowPos(
const ImVec2& pos, ImGuiCond cond = 0,
const ImVec2& pivot =
ImVec2(0, 0));
360 IMGUI_API
void SetNextWindowSize(
const ImVec2& size, ImGuiCond cond = 0);
361 IMGUI_API
void SetNextWindowSizeConstraints(
const ImVec2& size_min,
const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL,
void* custom_callback_data = NULL);
362 IMGUI_API
void SetNextWindowContentSize(
const ImVec2& size);
363 IMGUI_API
void SetNextWindowCollapsed(
bool collapsed, ImGuiCond cond = 0);
364 IMGUI_API
void SetNextWindowFocus();
365 IMGUI_API
void SetNextWindowScroll(
const ImVec2& scroll);
366 IMGUI_API
void SetNextWindowBgAlpha(
float alpha);
367 IMGUI_API
void SetWindowPos(
const ImVec2& pos, ImGuiCond cond = 0);
368 IMGUI_API
void SetWindowSize(
const ImVec2& size, ImGuiCond cond = 0);
369 IMGUI_API
void SetWindowCollapsed(
bool collapsed, ImGuiCond cond = 0);
370 IMGUI_API
void SetWindowFocus();
371 IMGUI_API
void SetWindowFontScale(
float scale);
372 IMGUI_API
void SetWindowPos(
const char* name,
const ImVec2& pos, ImGuiCond cond = 0);
373 IMGUI_API
void SetWindowSize(
const char* name,
const ImVec2& size, ImGuiCond cond = 0);
374 IMGUI_API
void SetWindowCollapsed(
const char* name,
bool collapsed, ImGuiCond cond = 0);
375 IMGUI_API
void SetWindowFocus(
const char* name);
380 IMGUI_API
ImVec2 GetContentRegionAvail();
381 IMGUI_API
ImVec2 GetContentRegionMax();
382 IMGUI_API
ImVec2 GetWindowContentRegionMin();
383 IMGUI_API
ImVec2 GetWindowContentRegionMax();
388 IMGUI_API
float GetScrollX();
389 IMGUI_API
float GetScrollY();
390 IMGUI_API
void SetScrollX(
float scroll_x);
391 IMGUI_API
void SetScrollY(
float scroll_y);
392 IMGUI_API
float GetScrollMaxX();
393 IMGUI_API
float GetScrollMaxY();
394 IMGUI_API
void SetScrollHereX(
float center_x_ratio = 0.5f);
395 IMGUI_API
void SetScrollHereY(
float center_y_ratio = 0.5f);
396 IMGUI_API
void SetScrollFromPosX(
float local_x,
float center_x_ratio = 0.5f);
397 IMGUI_API
void SetScrollFromPosY(
float local_y,
float center_y_ratio = 0.5f);
400 IMGUI_API
void PushFont(
ImFont* font);
401 IMGUI_API
void PopFont();
402 IMGUI_API
void PushStyleColor(ImGuiCol idx, ImU32 col);
403 IMGUI_API
void PushStyleColor(ImGuiCol idx,
const ImVec4& col);
404 IMGUI_API
void PopStyleColor(
int count = 1);
405 IMGUI_API
void PushStyleVar(ImGuiStyleVar idx,
float val);
406 IMGUI_API
void PushStyleVar(ImGuiStyleVar idx,
const ImVec2& val);
407 IMGUI_API
void PopStyleVar(
int count = 1);
408 IMGUI_API
void PushAllowKeyboardFocus(
bool allow_keyboard_focus);
409 IMGUI_API
void PopAllowKeyboardFocus();
410 IMGUI_API
void PushButtonRepeat(
bool repeat);
411 IMGUI_API
void PopButtonRepeat();
414 IMGUI_API
void PushItemWidth(
float item_width);
415 IMGUI_API
void PopItemWidth();
416 IMGUI_API
void SetNextItemWidth(
float item_width);
417 IMGUI_API
float CalcItemWidth();
418 IMGUI_API
void PushTextWrapPos(
float wrap_local_pos_x = 0.0f);
419 IMGUI_API
void PopTextWrapPos();
423 IMGUI_API
ImFont* GetFont();
424 IMGUI_API
float GetFontSize();
425 IMGUI_API
ImVec2 GetFontTexUvWhitePixel();
426 IMGUI_API ImU32 GetColorU32(ImGuiCol idx,
float alpha_mul = 1.0f);
427 IMGUI_API ImU32 GetColorU32(
const ImVec4& col);
428 IMGUI_API ImU32 GetColorU32(ImU32 col);
429 IMGUI_API
const ImVec4& GetStyleColorVec4(ImGuiCol idx);
438 IMGUI_API
void Separator();
439 IMGUI_API
void SameLine(
float offset_from_start_x=0.0f,
float spacing=-1.0f);
440 IMGUI_API
void NewLine();
441 IMGUI_API
void Spacing();
442 IMGUI_API
void Dummy(
const ImVec2& size);
443 IMGUI_API
void Indent(
float indent_w = 0.0f);
444 IMGUI_API
void Unindent(
float indent_w = 0.0f);
445 IMGUI_API
void BeginGroup();
446 IMGUI_API
void EndGroup();
447 IMGUI_API
ImVec2 GetCursorPos();
448 IMGUI_API
float GetCursorPosX();
449 IMGUI_API
float GetCursorPosY();
450 IMGUI_API
void SetCursorPos(
const ImVec2& local_pos);
451 IMGUI_API
void SetCursorPosX(
float local_x);
452 IMGUI_API
void SetCursorPosY(
float local_y);
453 IMGUI_API
ImVec2 GetCursorStartPos();
454 IMGUI_API
ImVec2 GetCursorScreenPos();
455 IMGUI_API
void SetCursorScreenPos(
const ImVec2& pos);
456 IMGUI_API
void AlignTextToFramePadding();
457 IMGUI_API
float GetTextLineHeight();
458 IMGUI_API
float GetTextLineHeightWithSpacing();
459 IMGUI_API
float GetFrameHeight();
460 IMGUI_API
float GetFrameHeightWithSpacing();
473 IMGUI_API
void PushID(
const char* str_id);
474 IMGUI_API
void PushID(
const char* str_id_begin,
const char* str_id_end);
475 IMGUI_API
void PushID(
const void* ptr_id);
476 IMGUI_API
void PushID(
int int_id);
477 IMGUI_API
void PopID();
478 IMGUI_API ImGuiID GetID(
const char* str_id);
479 IMGUI_API ImGuiID GetID(
const char* str_id_begin,
const char* str_id_end);
480 IMGUI_API ImGuiID GetID(
const void* ptr_id);
483 IMGUI_API
void TextUnformatted(
const char* text,
const char* text_end = NULL);
484 IMGUI_API
void Text(
const char* fmt, ...) IM_FMTARGS(1);
485 IMGUI_API
void TextV(const
char* fmt, va_list args) IM_FMTLIST(1);
486 IMGUI_API
void TextColored(const
ImVec4& col, const
char* fmt, ...) IM_FMTARGS(2);
487 IMGUI_API
void TextColoredV(const
ImVec4& col, const
char* fmt, va_list args) IM_FMTLIST(2);
488 IMGUI_API
void TextDisabled(const
char* fmt, ...) IM_FMTARGS(1);
489 IMGUI_API
void TextDisabledV(const
char* fmt, va_list args) IM_FMTLIST(1);
490 IMGUI_API
void TextWrapped(const
char* fmt, ...) IM_FMTARGS(1);
491 IMGUI_API
void TextWrappedV(const
char* fmt, va_list args) IM_FMTLIST(1);
492 IMGUI_API
void LabelText(const
char* label, const
char* fmt, ...) IM_FMTARGS(2);
493 IMGUI_API
void LabelTextV(const
char* label, const
char* fmt, va_list args) IM_FMTLIST(2);
494 IMGUI_API
void BulletText(const
char* fmt, ...) IM_FMTARGS(1);
495 IMGUI_API
void BulletTextV(const
char* fmt, va_list args) IM_FMTLIST(1);
496 IMGUI_API
void SeparatorText(const
char* label);
501 IMGUI_API
bool Button(const
char* label, const
ImVec2& size =
ImVec2(0, 0));
502 IMGUI_API
bool SmallButton(const
char* label);
503 IMGUI_API
bool InvisibleButton(const
char* str_id, const
ImVec2& size, ImGuiButtonFlags flags = 0);
504 IMGUI_API
bool ArrowButton(const
char* str_id, ImGuiDir dir);
505 IMGUI_API
bool Checkbox(const
char* label,
bool* v);
506 IMGUI_API
bool CheckboxFlags(const
char* label,
int* flags,
int flags_value);
507 IMGUI_API
bool CheckboxFlags(const
char* label,
unsigned int* flags,
unsigned int flags_value);
508 IMGUI_API
bool RadioButton(const
char* label,
bool active);
509 IMGUI_API
bool RadioButton(const
char* label,
int* v,
int v_button);
510 IMGUI_API
void ProgressBar(
float fraction, const
ImVec2& size_arg =
ImVec2(-FLT_MIN, 0), const
char* overlay = NULL);
515 IMGUI_API
void Image(ImTextureID user_texture_id, const
ImVec2& size, const
ImVec2& uv0 =
ImVec2(0, 0), const
ImVec2& uv1 =
ImVec2(1, 1), const
ImVec4& tint_col =
ImVec4(1, 1, 1, 1), const
ImVec4& border_col =
ImVec4(0, 0, 0, 0));
516 IMGUI_API
bool ImageButton(const
char* str_id, ImTextureID user_texture_id, const
ImVec2& size, const
ImVec2& uv0 =
ImVec2(0, 0), const
ImVec2& uv1 =
ImVec2(1, 1), const
ImVec4& bg_col =
ImVec4(0, 0, 0, 0), const
ImVec4& tint_col =
ImVec4(1, 1, 1, 1));
521 IMGUI_API
bool BeginCombo(const
char* label, const
char* preview_value, ImGuiComboFlags flags = 0);
522 IMGUI_API
void EndCombo();
523 IMGUI_API
bool Combo(const
char* label,
int* current_item, const
char* const items[],
int items_count,
int popup_max_height_in_items = -1);
524 IMGUI_API
bool Combo(const
char* label,
int* current_item, const
char* items_separated_by_zeros,
int popup_max_height_in_items = -1);
525 IMGUI_API
bool Combo(const
char* label,
int* current_item,
bool(*items_getter)(
void* data,
int idx, const
char** out_text),
void* data,
int items_count,
int popup_max_height_in_items = -1);
539 IMGUI_API
bool DragFloat(const
char* label,
float* v,
float v_speed = 1.0f,
float v_min = 0.0f,
float v_max = 0.0f, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
540 IMGUI_API
bool DragFloat2(const
char* label,
float v[2],
float v_speed = 1.0f,
float v_min = 0.0f,
float v_max = 0.0f, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
541 IMGUI_API
bool DragFloat3(const
char* label,
float v[3],
float v_speed = 1.0f,
float v_min = 0.0f,
float v_max = 0.0f, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
542 IMGUI_API
bool DragFloat4(const
char* label,
float v[4],
float v_speed = 1.0f,
float v_min = 0.0f,
float v_max = 0.0f, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
543 IMGUI_API
bool DragFloatRange2(const
char* label,
float* v_current_min,
float* v_current_max,
float v_speed = 1.0f,
float v_min = 0.0f,
float v_max = 0.0f, const
char* format = "%.3f", const
char* format_max = NULL, ImGuiSliderFlags flags = 0);
544 IMGUI_API
bool DragInt(const
char* label,
int* v,
float v_speed = 1.0f,
int v_min = 0,
int v_max = 0, const
char* format = "%d", ImGuiSliderFlags flags = 0);
545 IMGUI_API
bool DragInt2(const
char* label,
int v[2],
float v_speed = 1.0f,
int v_min = 0,
int v_max = 0, const
char* format = "%d", ImGuiSliderFlags flags = 0);
546 IMGUI_API
bool DragInt3(const
char* label,
int v[3],
float v_speed = 1.0f,
int v_min = 0,
int v_max = 0, const
char* format = "%d", ImGuiSliderFlags flags = 0);
547 IMGUI_API
bool DragInt4(const
char* label,
int v[4],
float v_speed = 1.0f,
int v_min = 0,
int v_max = 0, const
char* format = "%d", ImGuiSliderFlags flags = 0);
548 IMGUI_API
bool DragIntRange2(const
char* label,
int* v_current_min,
int* v_current_max,
float v_speed = 1.0f,
int v_min = 0,
int v_max = 0, const
char* format = "%d", const
char* format_max = NULL, ImGuiSliderFlags flags = 0);
549 IMGUI_API
bool DragScalar(const
char* label, ImGuiDataType data_type,
void* p_data,
float v_speed = 1.0f, const
void* p_min = NULL, const
void* p_max = NULL, const
char* format = NULL, ImGuiSliderFlags flags = 0);
550 IMGUI_API
bool DragScalarN(const
char* label, ImGuiDataType data_type,
void* p_data,
int components,
float v_speed = 1.0f, const
void* p_min = NULL, const
void* p_max = NULL, const
char* format = NULL, ImGuiSliderFlags flags = 0);
558 IMGUI_API
bool SliderFloat(const
char* label,
float* v,
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
559 IMGUI_API
bool SliderFloat2(const
char* label,
float v[2],
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
560 IMGUI_API
bool SliderFloat3(const
char* label,
float v[3],
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
561 IMGUI_API
bool SliderFloat4(const
char* label,
float v[4],
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
562 IMGUI_API
bool SliderAngle(const
char* label,
float* v_rad,
float v_degrees_min = -360.0f,
float v_degrees_max = +360.0f, const
char* format = "%.0f deg", ImGuiSliderFlags flags = 0);
563 IMGUI_API
bool SliderInt(const
char* label,
int* v,
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
564 IMGUI_API
bool SliderInt2(const
char* label,
int v[2],
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
565 IMGUI_API
bool SliderInt3(const
char* label,
int v[3],
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
566 IMGUI_API
bool SliderInt4(const
char* label,
int v[4],
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
567 IMGUI_API
bool SliderScalar(const
char* label, ImGuiDataType data_type,
void* p_data, const
void* p_min, const
void* p_max, const
char* format = NULL, ImGuiSliderFlags flags = 0);
568 IMGUI_API
bool SliderScalarN(const
char* label, ImGuiDataType data_type,
void* p_data,
int components, const
void* p_min, const
void* p_max, const
char* format = NULL, ImGuiSliderFlags flags = 0);
569 IMGUI_API
bool VSliderFloat(const
char* label, const
ImVec2& size,
float* v,
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
570 IMGUI_API
bool VSliderInt(const
char* label, const
ImVec2& size,
int* v,
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
571 IMGUI_API
bool VSliderScalar(const
char* label, const
ImVec2& size, ImGuiDataType data_type,
void* p_data, const
void* p_min, const
void* p_max, const
char* format = NULL, ImGuiSliderFlags flags = 0);
576 IMGUI_API
bool InputText(const
char* label,
char* buf,
size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL,
void* user_data = NULL);
577 IMGUI_API
bool InputTextMultiline(const
char* label,
char* buf,
size_t buf_size, const
ImVec2& size =
ImVec2(0, 0), ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL,
void* user_data = NULL);
578 IMGUI_API
bool InputTextWithHint(const
char* label, const
char* hint,
char* buf,
size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL,
void* user_data = NULL);
579 IMGUI_API
bool InputFloat(const
char* label,
float* v,
float step = 0.0f,
float step_fast = 0.0f, const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
580 IMGUI_API
bool InputFloat2(const
char* label,
float v[2], const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
581 IMGUI_API
bool InputFloat3(const
char* label,
float v[3], const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
582 IMGUI_API
bool InputFloat4(const
char* label,
float v[4], const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
583 IMGUI_API
bool InputInt(const
char* label,
int* v,
int step = 1,
int step_fast = 100, ImGuiInputTextFlags flags = 0);
584 IMGUI_API
bool InputInt2(const
char* label,
int v[2], ImGuiInputTextFlags flags = 0);
585 IMGUI_API
bool InputInt3(const
char* label,
int v[3], ImGuiInputTextFlags flags = 0);
586 IMGUI_API
bool InputInt4(const
char* label,
int v[4], ImGuiInputTextFlags flags = 0);
587 IMGUI_API
bool InputDouble(const
char* label,
double* v,
double step = 0.0,
double step_fast = 0.0, const
char* format = "%.6f", ImGuiInputTextFlags flags = 0);
588 IMGUI_API
bool InputScalar(const
char* label, ImGuiDataType data_type,
void* p_data, const
void* p_step = NULL, const
void* p_step_fast = NULL, const
char* format = NULL, ImGuiInputTextFlags flags = 0);
589 IMGUI_API
bool InputScalarN(const
char* label, ImGuiDataType data_type,
void* p_data,
int components, const
void* p_step = NULL, const
void* p_step_fast = NULL, const
char* format = NULL, ImGuiInputTextFlags flags = 0);
594 IMGUI_API
bool ColorEdit3(const
char* label,
float col[3], ImGuiColorEditFlags flags = 0);
595 IMGUI_API
bool ColorEdit4(const
char* label,
float col[4], ImGuiColorEditFlags flags = 0);
596 IMGUI_API
bool ColorPicker3(const
char* label,
float col[3], ImGuiColorEditFlags flags = 0);
597 IMGUI_API
bool ColorPicker4(const
char* label,
float col[4], ImGuiColorEditFlags flags = 0, const
float* ref_col = NULL);
598 IMGUI_API
bool ColorButton(const
char* desc_id, const
ImVec4& col, ImGuiColorEditFlags flags = 0, const
ImVec2& size =
ImVec2(0, 0));
599 IMGUI_API
void SetColorEditOptions(ImGuiColorEditFlags flags);
603 IMGUI_API
bool TreeNode(const
char* label);
604 IMGUI_API
bool TreeNode(const
char* str_id, const
char* fmt, ...) IM_FMTARGS(2);
605 IMGUI_API
bool TreeNode(const
void* ptr_id, const
char* fmt, ...) IM_FMTARGS(2);
606 IMGUI_API
bool TreeNodeV(const
char* str_id, const
char* fmt, va_list args) IM_FMTLIST(2);
607 IMGUI_API
bool TreeNodeV(const
void* ptr_id, const
char* fmt, va_list args) IM_FMTLIST(2);
608 IMGUI_API
bool TreeNodeEx(const
char* label, ImGuiTreeNodeFlags flags = 0);
609 IMGUI_API
bool TreeNodeEx(const
char* str_id, ImGuiTreeNodeFlags flags, const
char* fmt, ...) IM_FMTARGS(3);
610 IMGUI_API
bool TreeNodeEx(const
void* ptr_id, ImGuiTreeNodeFlags flags, const
char* fmt, ...) IM_FMTARGS(3);
611 IMGUI_API
bool TreeNodeExV(const
char* str_id, ImGuiTreeNodeFlags flags, const
char* fmt, va_list args) IM_FMTLIST(3);
612 IMGUI_API
bool TreeNodeExV(const
void* ptr_id, ImGuiTreeNodeFlags flags, const
char* fmt, va_list args) IM_FMTLIST(3);
613 IMGUI_API
void TreePush(const
char* str_id);
614 IMGUI_API
void TreePush(const
void* ptr_id);
615 IMGUI_API
void TreePop();
616 IMGUI_API
float GetTreeNodeToLabelSpacing();
617 IMGUI_API
bool CollapsingHeader(const
char* label, ImGuiTreeNodeFlags flags = 0);
618 IMGUI_API
bool CollapsingHeader(const
char* label,
bool* p_visible, ImGuiTreeNodeFlags flags = 0);
619 IMGUI_API
void SetNextItemOpen(
bool is_open, ImGuiCond cond = 0);
624 IMGUI_API
bool Selectable(const
char* label,
bool selected = false, ImGuiSelectableFlags flags = 0, const
ImVec2& size =
ImVec2(0, 0));
625 IMGUI_API
bool Selectable(const
char* label,
bool* p_selected, ImGuiSelectableFlags flags = 0, const
ImVec2& size =
ImVec2(0, 0));
633 IMGUI_API
bool BeginListBox(const
char* label, const
ImVec2& size =
ImVec2(0, 0));
634 IMGUI_API
void EndListBox();
635 IMGUI_API
bool ListBox(const
char* label,
int* current_item, const
char* const items[],
int items_count,
int height_in_items = -1);
636 IMGUI_API
bool ListBox(const
char* label,
int* current_item,
bool (*items_getter)(
void* data,
int idx, const
char** out_text),
void* data,
int items_count,
int height_in_items = -1);
640 IMGUI_API
void PlotLines(const
char* label, const
float* values,
int values_count,
int values_offset = 0, const
char* overlay_text = NULL,
float scale_min = FLT_MAX,
float scale_max = FLT_MAX,
ImVec2 graph_size =
ImVec2(0, 0),
int stride = sizeof(
float));
641 IMGUI_API
void PlotLines(const
char* label,
float(*values_getter)(
void* data,
int idx),
void* data,
int values_count,
int values_offset = 0, const
char* overlay_text = NULL,
float scale_min = FLT_MAX,
float scale_max = FLT_MAX,
ImVec2 graph_size =
ImVec2(0, 0));
642 IMGUI_API
void PlotHistogram(const
char* label, const
float* values,
int values_count,
int values_offset = 0, const
char* overlay_text = NULL,
float scale_min = FLT_MAX,
float scale_max = FLT_MAX,
ImVec2 graph_size =
ImVec2(0, 0),
int stride = sizeof(
float));
643 IMGUI_API
void PlotHistogram(const
char* label,
float(*values_getter)(
void* data,
int idx),
void* data,
int values_count,
int values_offset = 0, const
char* overlay_text = NULL,
float scale_min = FLT_MAX,
float scale_max = FLT_MAX,
ImVec2 graph_size =
ImVec2(0, 0));
647 IMGUI_API
void Value(const
char* prefix,
bool b);
648 IMGUI_API
void Value(const
char* prefix,
int v);
649 IMGUI_API
void Value(const
char* prefix,
unsigned int v);
650 IMGUI_API
void Value(const
char* prefix,
float v, const
char* float_format = NULL);
657 IMGUI_API
bool BeginMenuBar();
658 IMGUI_API
void EndMenuBar();
659 IMGUI_API
bool BeginMainMenuBar();
660 IMGUI_API
void EndMainMenuBar();
661 IMGUI_API
bool BeginMenu(const
char* label,
bool enabled = true);
662 IMGUI_API
void EndMenu();
663 IMGUI_API
bool MenuItem(const
char* label, const
char* shortcut = NULL,
bool selected = false,
bool enabled = true);
664 IMGUI_API
bool MenuItem(const
char* label, const
char* shortcut,
bool* p_selected,
bool enabled = true);
668 IMGUI_API
void BeginTooltip();
669 IMGUI_API
void EndTooltip();
670 IMGUI_API
void SetTooltip(const
char* fmt, ...) IM_FMTARGS(1);
671 IMGUI_API
void SetTooltipV(const
char* fmt, va_list args) IM_FMTLIST(1);
685 IMGUI_API
bool BeginPopup(const
char* str_id, ImGuiWindowFlags flags = 0);
686 IMGUI_API
bool BeginPopupModal(const
char* name,
bool* p_open = NULL, ImGuiWindowFlags flags = 0);
687 IMGUI_API
void EndPopup();
697 IMGUI_API
void OpenPopup(const
char* str_id, ImGuiPopupFlags popup_flags = 0);
698 IMGUI_API
void OpenPopup(ImGuiID
id, ImGuiPopupFlags popup_flags = 0);
699 IMGUI_API
void OpenPopupOnItemClick(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
700 IMGUI_API
void CloseCurrentPopup();
707 IMGUI_API
bool BeginPopupContextItem(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
708 IMGUI_API
bool BeginPopupContextWindow(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
709 IMGUI_API
bool BeginPopupContextVoid(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
715 IMGUI_API
bool IsPopupOpen(const
char* str_id, ImGuiPopupFlags flags = 0);
740 IMGUI_API
bool BeginTable(const
char* str_id,
int column, ImGuiTableFlags flags = 0, const
ImVec2& outer_size =
ImVec2(0.0f, 0.0f),
float inner_width = 0.0f);
741 IMGUI_API
void EndTable();
742 IMGUI_API
void TableNextRow(ImGuiTableRowFlags row_flags = 0,
float min_row_height = 0.0f);
743 IMGUI_API
bool TableNextColumn();
744 IMGUI_API
bool TableSetColumnIndex(
int column_n);
754 IMGUI_API
void TableSetupColumn(const
char* label, ImGuiTableColumnFlags flags = 0,
float init_width_or_weight = 0.0f, ImGuiID user_id = 0);
755 IMGUI_API
void TableSetupScrollFreeze(
int cols,
int rows);
756 IMGUI_API
void TableHeadersRow();
757 IMGUI_API
void TableHeader(const
char* label);
766 IMGUI_API
int TableGetColumnCount();
767 IMGUI_API
int TableGetColumnIndex();
768 IMGUI_API
int TableGetRowIndex();
769 IMGUI_API const
char* TableGetColumnName(
int column_n = -1);
770 IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(
int column_n = -1);
771 IMGUI_API
void TableSetColumnEnabled(
int column_n,
bool v);
772 IMGUI_API
void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color,
int column_n = -1);
776 IMGUI_API
void Columns(
int count = 1, const
char*
id = NULL,
bool border = true);
777 IMGUI_API
void NextColumn();
778 IMGUI_API
int GetColumnIndex();
779 IMGUI_API
float GetColumnWidth(
int column_index = -1);
780 IMGUI_API
void SetColumnWidth(
int column_index,
float width);
781 IMGUI_API
float GetColumnOffset(
int column_index = -1);
782 IMGUI_API
void SetColumnOffset(
int column_index,
float offset_x);
783 IMGUI_API
int GetColumnsCount();
787 IMGUI_API
bool BeginTabBar(const
char* str_id, ImGuiTabBarFlags flags = 0);
788 IMGUI_API
void EndTabBar();
789 IMGUI_API
bool BeginTabItem(const
char* label,
bool* p_open = NULL, ImGuiTabItemFlags flags = 0);
790 IMGUI_API
void EndTabItem();
791 IMGUI_API
bool TabItemButton(const
char* label, ImGuiTabItemFlags flags = 0);
792 IMGUI_API
void SetTabItemClosed(const
char* tab_or_docked_window_label);
796 IMGUI_API
void LogToTTY(
int auto_open_depth = -1);
797 IMGUI_API
void LogToFile(
int auto_open_depth = -1, const
char* filename = NULL);
798 IMGUI_API
void LogToClipboard(
int auto_open_depth = -1);
799 IMGUI_API
void LogFinish();
800 IMGUI_API
void LogButtons();
801 IMGUI_API
void LogText(const
char* fmt, ...) IM_FMTARGS(1);
802 IMGUI_API
void LogTextV(const
char* fmt, va_list args) IM_FMTLIST(1);
809 IMGUI_API
bool BeginDragDropSource(ImGuiDragDropFlags flags = 0);
810 IMGUI_API
bool SetDragDropPayload(const
char* type, const
void* data,
size_t sz, ImGuiCond cond = 0);
811 IMGUI_API
void EndDragDropSource();
812 IMGUI_API
bool BeginDragDropTarget();
813 IMGUI_API const
ImGuiPayload* AcceptDragDropPayload(const
char* type, ImGuiDragDropFlags flags = 0);
814 IMGUI_API
void EndDragDropTarget();
821 IMGUI_API
void BeginDisabled(
bool disabled = true);
822 IMGUI_API
void EndDisabled();
826 IMGUI_API
void PushClipRect(const
ImVec2& clip_rect_min, const
ImVec2& clip_rect_max,
bool intersect_with_current_clip_rect);
827 IMGUI_API
void PopClipRect();
831 IMGUI_API
void SetItemDefaultFocus();
832 IMGUI_API
void SetKeyboardFocusHere(
int offset = 0);
837 IMGUI_API
bool IsItemHovered(ImGuiHoveredFlags flags = 0);
838 IMGUI_API
bool IsItemActive();
839 IMGUI_API
bool IsItemFocused();
840 IMGUI_API
bool IsItemClicked(ImGuiMouseButton mouse_button = 0);
841 IMGUI_API
bool IsItemVisible();
842 IMGUI_API
bool IsItemEdited();
843 IMGUI_API
bool IsItemActivated();
844 IMGUI_API
bool IsItemDeactivated();
845 IMGUI_API
bool IsItemDeactivatedAfterEdit();
846 IMGUI_API
bool IsItemToggledOpen();
847 IMGUI_API
bool IsAnyItemHovered();
848 IMGUI_API
bool IsAnyItemActive();
849 IMGUI_API
bool IsAnyItemFocused();
850 IMGUI_API ImGuiID GetItemID();
851 IMGUI_API
ImVec2 GetItemRectMin();
852 IMGUI_API
ImVec2 GetItemRectMax();
853 IMGUI_API
ImVec2 GetItemRectSize();
854 IMGUI_API
void SetItemAllowOverlap();
863 IMGUI_API
ImDrawList* GetBackgroundDrawList();
864 IMGUI_API
ImDrawList* GetForegroundDrawList();
867 IMGUI_API
bool IsRectVisible(const
ImVec2& size);
868 IMGUI_API
bool IsRectVisible(const
ImVec2& rect_min, const
ImVec2& rect_max);
869 IMGUI_API
double GetTime();
870 IMGUI_API
int GetFrameCount();
872 IMGUI_API const
char* GetStyleColorName(ImGuiCol idx);
875 IMGUI_API
bool BeginChildFrame(ImGuiID
id, const
ImVec2& size, ImGuiWindowFlags flags = 0);
876 IMGUI_API
void EndChildFrame();
879 IMGUI_API
ImVec2 CalcTextSize(const
char* text, const
char* text_end = NULL,
bool hide_text_after_double_hash = false,
float wrap_width = -1.0f);
882 IMGUI_API
ImVec4 ColorConvertU32ToFloat4(ImU32 in);
883 IMGUI_API ImU32 ColorConvertFloat4ToU32(const
ImVec4& in);
884 IMGUI_API
void ColorConvertRGBtoHSV(
float r,
float g,
float b,
float& out_h,
float& out_s,
float& out_v);
885 IMGUI_API
void ColorConvertHSVtoRGB(
float h,
float s,
float v,
float& out_r,
float& out_g,
float& out_b);
892 IMGUI_API
bool IsKeyDown(ImGuiKey key);
893 IMGUI_API
bool IsKeyPressed(ImGuiKey key,
bool repeat = true);
894 IMGUI_API
bool IsKeyReleased(ImGuiKey key);
895 IMGUI_API
int GetKeyPressedAmount(ImGuiKey key,
float repeat_delay,
float rate);
896 IMGUI_API const
char* GetKeyName(ImGuiKey key);
897 IMGUI_API
void SetNextFrameWantCaptureKeyboard(
bool want_capture_keyboard);
903 IMGUI_API
bool IsMouseDown(ImGuiMouseButton button);
904 IMGUI_API
bool IsMouseClicked(ImGuiMouseButton button,
bool repeat = false);
905 IMGUI_API
bool IsMouseReleased(ImGuiMouseButton button);
906 IMGUI_API
bool IsMouseDoubleClicked(ImGuiMouseButton button);
907 IMGUI_API
int GetMouseClickedCount(ImGuiMouseButton button);
908 IMGUI_API
bool IsMouseHoveringRect(const
ImVec2& r_min, const
ImVec2& r_max,
bool clip = true);
909 IMGUI_API
bool IsMousePosValid(const
ImVec2* mouse_pos = NULL);
910 IMGUI_API
bool IsAnyMouseDown();
911 IMGUI_API
ImVec2 GetMousePos();
912 IMGUI_API
ImVec2 GetMousePosOnOpeningCurrentPopup();
913 IMGUI_API
bool IsMouseDragging(ImGuiMouseButton button,
float lock_threshold = -1.0f);
914 IMGUI_API
ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0,
float lock_threshold = -1.0f);
915 IMGUI_API
void ResetMouseDragDelta(ImGuiMouseButton button = 0);
916 IMGUI_API ImGuiMouseCursor GetMouseCursor();
917 IMGUI_API
void SetMouseCursor(ImGuiMouseCursor cursor_type);
918 IMGUI_API
void SetNextFrameWantCaptureMouse(
bool want_capture_mouse);
922 IMGUI_API const
char* GetClipboardText();
923 IMGUI_API
void SetClipboardText(const
char* text);
929 IMGUI_API
void LoadIniSettingsFromDisk(const
char* ini_filename);
930 IMGUI_API
void LoadIniSettingsFromMemory(const
char* ini_data,
size_t ini_size=0);
931 IMGUI_API
void SaveIniSettingsToDisk(const
char* ini_filename);
932 IMGUI_API const
char* SaveIniSettingsToMemory(
size_t* out_ini_size = NULL);
935 IMGUI_API
void DebugTextEncoding(const
char* text);
936 IMGUI_API
bool DebugCheckVersionAndDataLayout(const
char* version_str,
size_t sz_io,
size_t sz_style,
size_t sz_vec2,
size_t sz_vec4,
size_t sz_drawvert,
size_t sz_drawidx);
942 IMGUI_API
void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func,
void* user_data = NULL);
943 IMGUI_API
void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func,
void** p_user_data);
944 IMGUI_API
void* MemAlloc(
size_t size);
945 IMGUI_API
void MemFree(
void* ptr);
955enum ImGuiWindowFlags_
957 ImGuiWindowFlags_None = 0,
958 ImGuiWindowFlags_NoTitleBar = 1 << 0,
959 ImGuiWindowFlags_NoResize = 1 << 1,
960 ImGuiWindowFlags_NoMove = 1 << 2,
961 ImGuiWindowFlags_NoScrollbar = 1 << 3,
962 ImGuiWindowFlags_NoScrollWithMouse = 1 << 4,
963 ImGuiWindowFlags_NoCollapse = 1 << 5,
964 ImGuiWindowFlags_AlwaysAutoResize = 1 << 6,
965 ImGuiWindowFlags_NoBackground = 1 << 7,
966 ImGuiWindowFlags_NoSavedSettings = 1 << 8,
967 ImGuiWindowFlags_NoMouseInputs = 1 << 9,
968 ImGuiWindowFlags_MenuBar = 1 << 10,
969 ImGuiWindowFlags_HorizontalScrollbar = 1 << 11,
970 ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12,
971 ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13,
972 ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14,
973 ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15,
974 ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 16,
975 ImGuiWindowFlags_NoNavInputs = 1 << 18,
976 ImGuiWindowFlags_NoNavFocus = 1 << 19,
977 ImGuiWindowFlags_UnsavedDocument = 1 << 20,
978 ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
979 ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse,
980 ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
983 ImGuiWindowFlags_NavFlattened = 1 << 23,
984 ImGuiWindowFlags_ChildWindow = 1 << 24,
985 ImGuiWindowFlags_Tooltip = 1 << 25,
986 ImGuiWindowFlags_Popup = 1 << 26,
987 ImGuiWindowFlags_Modal = 1 << 27,
988 ImGuiWindowFlags_ChildMenu = 1 << 28,
993enum ImGuiInputTextFlags_
995 ImGuiInputTextFlags_None = 0,
996 ImGuiInputTextFlags_CharsDecimal = 1 << 0,
997 ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
998 ImGuiInputTextFlags_CharsUppercase = 1 << 2,
999 ImGuiInputTextFlags_CharsNoBlank = 1 << 3,
1000 ImGuiInputTextFlags_AutoSelectAll = 1 << 4,
1001 ImGuiInputTextFlags_EnterReturnsTrue = 1 << 5,
1002 ImGuiInputTextFlags_CallbackCompletion = 1 << 6,
1003 ImGuiInputTextFlags_CallbackHistory = 1 << 7,
1004 ImGuiInputTextFlags_CallbackAlways = 1 << 8,
1005 ImGuiInputTextFlags_CallbackCharFilter = 1 << 9,
1006 ImGuiInputTextFlags_AllowTabInput = 1 << 10,
1007 ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11,
1008 ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12,
1009 ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13,
1010 ImGuiInputTextFlags_ReadOnly = 1 << 14,
1011 ImGuiInputTextFlags_Password = 1 << 15,
1012 ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
1013 ImGuiInputTextFlags_CharsScientific = 1 << 17,
1014 ImGuiInputTextFlags_CallbackResize = 1 << 18,
1015 ImGuiInputTextFlags_CallbackEdit = 1 << 19,
1016 ImGuiInputTextFlags_EscapeClearsAll = 1 << 20,
1019#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1020 ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite
1025enum ImGuiTreeNodeFlags_
1027 ImGuiTreeNodeFlags_None = 0,
1028 ImGuiTreeNodeFlags_Selected = 1 << 0,
1029 ImGuiTreeNodeFlags_Framed = 1 << 1,
1030 ImGuiTreeNodeFlags_AllowItemOverlap = 1 << 2,
1031 ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3,
1032 ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4,
1033 ImGuiTreeNodeFlags_DefaultOpen = 1 << 5,
1034 ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6,
1035 ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7,
1036 ImGuiTreeNodeFlags_Leaf = 1 << 8,
1037 ImGuiTreeNodeFlags_Bullet = 1 << 9,
1038 ImGuiTreeNodeFlags_FramePadding = 1 << 10,
1039 ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11,
1040 ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12,
1041 ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 13,
1043 ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog,
1054enum ImGuiPopupFlags_
1056 ImGuiPopupFlags_None = 0,
1057 ImGuiPopupFlags_MouseButtonLeft = 0,
1058 ImGuiPopupFlags_MouseButtonRight = 1,
1059 ImGuiPopupFlags_MouseButtonMiddle = 2,
1060 ImGuiPopupFlags_MouseButtonMask_ = 0x1F,
1061 ImGuiPopupFlags_MouseButtonDefault_ = 1,
1062 ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 5,
1063 ImGuiPopupFlags_NoOpenOverItems = 1 << 6,
1064 ImGuiPopupFlags_AnyPopupId = 1 << 7,
1065 ImGuiPopupFlags_AnyPopupLevel = 1 << 8,
1066 ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel,
1070enum ImGuiSelectableFlags_
1072 ImGuiSelectableFlags_None = 0,
1073 ImGuiSelectableFlags_DontClosePopups = 1 << 0,
1074 ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
1075 ImGuiSelectableFlags_AllowDoubleClick = 1 << 2,
1076 ImGuiSelectableFlags_Disabled = 1 << 3,
1077 ImGuiSelectableFlags_AllowItemOverlap = 1 << 4,
1081enum ImGuiComboFlags_
1083 ImGuiComboFlags_None = 0,
1084 ImGuiComboFlags_PopupAlignLeft = 1 << 0,
1085 ImGuiComboFlags_HeightSmall = 1 << 1,
1086 ImGuiComboFlags_HeightRegular = 1 << 2,
1087 ImGuiComboFlags_HeightLarge = 1 << 3,
1088 ImGuiComboFlags_HeightLargest = 1 << 4,
1089 ImGuiComboFlags_NoArrowButton = 1 << 5,
1090 ImGuiComboFlags_NoPreview = 1 << 6,
1091 ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest,
1095enum ImGuiTabBarFlags_
1097 ImGuiTabBarFlags_None = 0,
1098 ImGuiTabBarFlags_Reorderable = 1 << 0,
1099 ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1,
1100 ImGuiTabBarFlags_TabListPopupButton = 1 << 2,
1101 ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3,
1102 ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4,
1103 ImGuiTabBarFlags_NoTooltip = 1 << 5,
1104 ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6,
1105 ImGuiTabBarFlags_FittingPolicyScroll = 1 << 7,
1106 ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll,
1107 ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown,
1111enum ImGuiTabItemFlags_
1113 ImGuiTabItemFlags_None = 0,
1114 ImGuiTabItemFlags_UnsavedDocument = 1 << 0,
1115 ImGuiTabItemFlags_SetSelected = 1 << 1,
1116 ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2,
1117 ImGuiTabItemFlags_NoPushId = 1 << 3,
1118 ImGuiTabItemFlags_NoTooltip = 1 << 4,
1119 ImGuiTabItemFlags_NoReorder = 1 << 5,
1120 ImGuiTabItemFlags_Leading = 1 << 6,
1121 ImGuiTabItemFlags_Trailing = 1 << 7,
1146enum ImGuiTableFlags_
1149 ImGuiTableFlags_None = 0,
1150 ImGuiTableFlags_Resizable = 1 << 0,
1151 ImGuiTableFlags_Reorderable = 1 << 1,
1152 ImGuiTableFlags_Hideable = 1 << 2,
1153 ImGuiTableFlags_Sortable = 1 << 3,
1154 ImGuiTableFlags_NoSavedSettings = 1 << 4,
1155 ImGuiTableFlags_ContextMenuInBody = 1 << 5,
1157 ImGuiTableFlags_RowBg = 1 << 6,
1158 ImGuiTableFlags_BordersInnerH = 1 << 7,
1159 ImGuiTableFlags_BordersOuterH = 1 << 8,
1160 ImGuiTableFlags_BordersInnerV = 1 << 9,
1161 ImGuiTableFlags_BordersOuterV = 1 << 10,
1162 ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH,
1163 ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV,
1164 ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH,
1165 ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH,
1166 ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter,
1167 ImGuiTableFlags_NoBordersInBody = 1 << 11,
1168 ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12,
1170 ImGuiTableFlags_SizingFixedFit = 1 << 13,
1171 ImGuiTableFlags_SizingFixedSame = 2 << 13,
1172 ImGuiTableFlags_SizingStretchProp = 3 << 13,
1173 ImGuiTableFlags_SizingStretchSame = 4 << 13,
1175 ImGuiTableFlags_NoHostExtendX = 1 << 16,
1176 ImGuiTableFlags_NoHostExtendY = 1 << 17,
1177 ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18,
1178 ImGuiTableFlags_PreciseWidths = 1 << 19,
1180 ImGuiTableFlags_NoClip = 1 << 20,
1182 ImGuiTableFlags_PadOuterX = 1 << 21,
1183 ImGuiTableFlags_NoPadOuterX = 1 << 22,
1184 ImGuiTableFlags_NoPadInnerX = 1 << 23,
1186 ImGuiTableFlags_ScrollX = 1 << 24,
1187 ImGuiTableFlags_ScrollY = 1 << 25,
1189 ImGuiTableFlags_SortMulti = 1 << 26,
1190 ImGuiTableFlags_SortTristate = 1 << 27,
1193 ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame,
1197enum ImGuiTableColumnFlags_
1200 ImGuiTableColumnFlags_None = 0,
1201 ImGuiTableColumnFlags_Disabled = 1 << 0,
1202 ImGuiTableColumnFlags_DefaultHide = 1 << 1,
1203 ImGuiTableColumnFlags_DefaultSort = 1 << 2,
1204 ImGuiTableColumnFlags_WidthStretch = 1 << 3,
1205 ImGuiTableColumnFlags_WidthFixed = 1 << 4,
1206 ImGuiTableColumnFlags_NoResize = 1 << 5,
1207 ImGuiTableColumnFlags_NoReorder = 1 << 6,
1208 ImGuiTableColumnFlags_NoHide = 1 << 7,
1209 ImGuiTableColumnFlags_NoClip = 1 << 8,
1210 ImGuiTableColumnFlags_NoSort = 1 << 9,
1211 ImGuiTableColumnFlags_NoSortAscending = 1 << 10,
1212 ImGuiTableColumnFlags_NoSortDescending = 1 << 11,
1213 ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12,
1214 ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13,
1215 ImGuiTableColumnFlags_PreferSortAscending = 1 << 14,
1216 ImGuiTableColumnFlags_PreferSortDescending = 1 << 15,
1217 ImGuiTableColumnFlags_IndentEnable = 1 << 16,
1218 ImGuiTableColumnFlags_IndentDisable = 1 << 17,
1221 ImGuiTableColumnFlags_IsEnabled = 1 << 24,
1222 ImGuiTableColumnFlags_IsVisible = 1 << 25,
1223 ImGuiTableColumnFlags_IsSorted = 1 << 26,
1224 ImGuiTableColumnFlags_IsHovered = 1 << 27,
1227 ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed,
1228 ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable,
1229 ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered,
1230 ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30,
1234enum ImGuiTableRowFlags_
1236 ImGuiTableRowFlags_None = 0,
1237 ImGuiTableRowFlags_Headers = 1 << 0,
1249enum ImGuiTableBgTarget_
1251 ImGuiTableBgTarget_None = 0,
1252 ImGuiTableBgTarget_RowBg0 = 1,
1253 ImGuiTableBgTarget_RowBg1 = 2,
1254 ImGuiTableBgTarget_CellBg = 3,
1258enum ImGuiFocusedFlags_
1260 ImGuiFocusedFlags_None = 0,
1261 ImGuiFocusedFlags_ChildWindows = 1 << 0,
1262 ImGuiFocusedFlags_RootWindow = 1 << 1,
1263 ImGuiFocusedFlags_AnyWindow = 1 << 2,
1264 ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3,
1266 ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows,
1272enum ImGuiHoveredFlags_
1274 ImGuiHoveredFlags_None = 0,
1275 ImGuiHoveredFlags_ChildWindows = 1 << 0,
1276 ImGuiHoveredFlags_RootWindow = 1 << 1,
1277 ImGuiHoveredFlags_AnyWindow = 1 << 2,
1278 ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3,
1280 ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5,
1282 ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7,
1283 ImGuiHoveredFlags_AllowWhenOverlapped = 1 << 8,
1284 ImGuiHoveredFlags_AllowWhenDisabled = 1 << 9,
1285 ImGuiHoveredFlags_NoNavOverride = 1 << 10,
1286 ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped,
1287 ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows,
1290 ImGuiHoveredFlags_DelayNormal = 1 << 11,
1291 ImGuiHoveredFlags_DelayShort = 1 << 12,
1292 ImGuiHoveredFlags_NoSharedDelay = 1 << 13,
1296enum ImGuiDragDropFlags_
1298 ImGuiDragDropFlags_None = 0,
1300 ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0,
1301 ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1,
1302 ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2,
1303 ImGuiDragDropFlags_SourceAllowNullID = 1 << 3,
1304 ImGuiDragDropFlags_SourceExtern = 1 << 4,
1305 ImGuiDragDropFlags_SourceAutoExpirePayload = 1 << 5,
1307 ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10,
1308 ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11,
1309 ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12,
1310 ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect,
1314#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F"
1315#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F"
1328 ImGuiDataType_Float,
1329 ImGuiDataType_Double,
1345enum ImGuiSortDirection_
1347 ImGuiSortDirection_None = 0,
1348 ImGuiSortDirection_Ascending = 1,
1349 ImGuiSortDirection_Descending = 2
1362 ImGuiKey_RightArrow,
1375 ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper,
1376 ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper,
1378 ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9,
1379 ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J,
1380 ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T,
1381 ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z,
1382 ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6,
1383 ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12,
1384 ImGuiKey_Apostrophe,
1391 ImGuiKey_LeftBracket,
1393 ImGuiKey_RightBracket,
1394 ImGuiKey_GraveAccent,
1396 ImGuiKey_ScrollLock,
1398 ImGuiKey_PrintScreen,
1400 ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4,
1401 ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9,
1402 ImGuiKey_KeypadDecimal,
1403 ImGuiKey_KeypadDivide,
1404 ImGuiKey_KeypadMultiply,
1405 ImGuiKey_KeypadSubtract,
1407 ImGuiKey_KeypadEnter,
1408 ImGuiKey_KeypadEqual,
1412 ImGuiKey_GamepadStart,
1413 ImGuiKey_GamepadBack,
1414 ImGuiKey_GamepadFaceLeft,
1415 ImGuiKey_GamepadFaceRight,
1416 ImGuiKey_GamepadFaceUp,
1417 ImGuiKey_GamepadFaceDown,
1418 ImGuiKey_GamepadDpadLeft,
1419 ImGuiKey_GamepadDpadRight,
1420 ImGuiKey_GamepadDpadUp,
1421 ImGuiKey_GamepadDpadDown,
1428 ImGuiKey_GamepadLStickLeft,
1429 ImGuiKey_GamepadLStickRight,
1430 ImGuiKey_GamepadLStickUp,
1431 ImGuiKey_GamepadLStickDown,
1432 ImGuiKey_GamepadRStickLeft,
1433 ImGuiKey_GamepadRStickRight,
1434 ImGuiKey_GamepadRStickUp,
1435 ImGuiKey_GamepadRStickDown,
1439 ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY,
1442 ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper,
1454 ImGuiMod_Ctrl = 1 << 12,
1455 ImGuiMod_Shift = 1 << 13,
1456 ImGuiMod_Alt = 1 << 14,
1457 ImGuiMod_Super = 1 << 15,
1458 ImGuiMod_Shortcut = 1 << 11,
1459 ImGuiMod_Mask_ = 0xF800,
1463 ImGuiKey_NamedKey_BEGIN = 512,
1464 ImGuiKey_NamedKey_END = ImGuiKey_COUNT,
1465 ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN,
1466#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO
1467 ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT,
1468 ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN,
1470 ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT,
1471 ImGuiKey_KeysData_OFFSET = 0,
1474#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1475 ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super,
1476 ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter,
1480#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
1486 ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown,
1487 ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast,
1488 ImGuiNavInput_COUNT,
1493enum ImGuiConfigFlags_
1495 ImGuiConfigFlags_None = 0,
1496 ImGuiConfigFlags_NavEnableKeyboard = 1 << 0,
1497 ImGuiConfigFlags_NavEnableGamepad = 1 << 1,
1498 ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2,
1499 ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3,
1500 ImGuiConfigFlags_NoMouse = 1 << 4,
1501 ImGuiConfigFlags_NoMouseCursorChange = 1 << 5,
1504 ImGuiConfigFlags_IsSRGB = 1 << 20,
1505 ImGuiConfigFlags_IsTouchScreen = 1 << 21,
1509enum ImGuiBackendFlags_
1511 ImGuiBackendFlags_None = 0,
1512 ImGuiBackendFlags_HasGamepad = 1 << 0,
1513 ImGuiBackendFlags_HasMouseCursors = 1 << 1,
1514 ImGuiBackendFlags_HasSetMousePos = 1 << 2,
1515 ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3,
1522 ImGuiCol_TextDisabled,
1527 ImGuiCol_BorderShadow,
1529 ImGuiCol_FrameBgHovered,
1530 ImGuiCol_FrameBgActive,
1532 ImGuiCol_TitleBgActive,
1533 ImGuiCol_TitleBgCollapsed,
1535 ImGuiCol_ScrollbarBg,
1536 ImGuiCol_ScrollbarGrab,
1537 ImGuiCol_ScrollbarGrabHovered,
1538 ImGuiCol_ScrollbarGrabActive,
1540 ImGuiCol_SliderGrab,
1541 ImGuiCol_SliderGrabActive,
1543 ImGuiCol_ButtonHovered,
1544 ImGuiCol_ButtonActive,
1546 ImGuiCol_HeaderHovered,
1547 ImGuiCol_HeaderActive,
1549 ImGuiCol_SeparatorHovered,
1550 ImGuiCol_SeparatorActive,
1551 ImGuiCol_ResizeGrip,
1552 ImGuiCol_ResizeGripHovered,
1553 ImGuiCol_ResizeGripActive,
1555 ImGuiCol_TabHovered,
1557 ImGuiCol_TabUnfocused,
1558 ImGuiCol_TabUnfocusedActive,
1560 ImGuiCol_PlotLinesHovered,
1561 ImGuiCol_PlotHistogram,
1562 ImGuiCol_PlotHistogramHovered,
1563 ImGuiCol_TableHeaderBg,
1564 ImGuiCol_TableBorderStrong,
1565 ImGuiCol_TableBorderLight,
1566 ImGuiCol_TableRowBg,
1567 ImGuiCol_TableRowBgAlt,
1568 ImGuiCol_TextSelectedBg,
1569 ImGuiCol_DragDropTarget,
1570 ImGuiCol_NavHighlight,
1571 ImGuiCol_NavWindowingHighlight,
1572 ImGuiCol_NavWindowingDimBg,
1573 ImGuiCol_ModalWindowDimBg,
1587 ImGuiStyleVar_Alpha,
1588 ImGuiStyleVar_DisabledAlpha,
1589 ImGuiStyleVar_WindowPadding,
1590 ImGuiStyleVar_WindowRounding,
1591 ImGuiStyleVar_WindowBorderSize,
1592 ImGuiStyleVar_WindowMinSize,
1593 ImGuiStyleVar_WindowTitleAlign,
1594 ImGuiStyleVar_ChildRounding,
1595 ImGuiStyleVar_ChildBorderSize,
1596 ImGuiStyleVar_PopupRounding,
1597 ImGuiStyleVar_PopupBorderSize,
1598 ImGuiStyleVar_FramePadding,
1599 ImGuiStyleVar_FrameRounding,
1600 ImGuiStyleVar_FrameBorderSize,
1601 ImGuiStyleVar_ItemSpacing,
1602 ImGuiStyleVar_ItemInnerSpacing,
1603 ImGuiStyleVar_IndentSpacing,
1604 ImGuiStyleVar_CellPadding,
1605 ImGuiStyleVar_ScrollbarSize,
1606 ImGuiStyleVar_ScrollbarRounding,
1607 ImGuiStyleVar_GrabMinSize,
1608 ImGuiStyleVar_GrabRounding,
1609 ImGuiStyleVar_TabRounding,
1610 ImGuiStyleVar_ButtonTextAlign,
1611 ImGuiStyleVar_SelectableTextAlign,
1612 ImGuiStyleVar_SeparatorTextBorderSize,
1613 ImGuiStyleVar_SeparatorTextAlign,
1614 ImGuiStyleVar_SeparatorTextPadding,
1619enum ImGuiButtonFlags_
1621 ImGuiButtonFlags_None = 0,
1622 ImGuiButtonFlags_MouseButtonLeft = 1 << 0,
1623 ImGuiButtonFlags_MouseButtonRight = 1 << 1,
1624 ImGuiButtonFlags_MouseButtonMiddle = 1 << 2,
1627 ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle,
1628 ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft,
1632enum ImGuiColorEditFlags_
1634 ImGuiColorEditFlags_None = 0,
1635 ImGuiColorEditFlags_NoAlpha = 1 << 1,
1636 ImGuiColorEditFlags_NoPicker = 1 << 2,
1637 ImGuiColorEditFlags_NoOptions = 1 << 3,
1638 ImGuiColorEditFlags_NoSmallPreview = 1 << 4,
1639 ImGuiColorEditFlags_NoInputs = 1 << 5,
1640 ImGuiColorEditFlags_NoTooltip = 1 << 6,
1641 ImGuiColorEditFlags_NoLabel = 1 << 7,
1642 ImGuiColorEditFlags_NoSidePreview = 1 << 8,
1643 ImGuiColorEditFlags_NoDragDrop = 1 << 9,
1644 ImGuiColorEditFlags_NoBorder = 1 << 10,
1647 ImGuiColorEditFlags_AlphaBar = 1 << 16,
1648 ImGuiColorEditFlags_AlphaPreview = 1 << 17,
1649 ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18,
1650 ImGuiColorEditFlags_HDR = 1 << 19,
1651 ImGuiColorEditFlags_DisplayRGB = 1 << 20,
1652 ImGuiColorEditFlags_DisplayHSV = 1 << 21,
1653 ImGuiColorEditFlags_DisplayHex = 1 << 22,
1654 ImGuiColorEditFlags_Uint8 = 1 << 23,
1655 ImGuiColorEditFlags_Float = 1 << 24,
1656 ImGuiColorEditFlags_PickerHueBar = 1 << 25,
1657 ImGuiColorEditFlags_PickerHueWheel = 1 << 26,
1658 ImGuiColorEditFlags_InputRGB = 1 << 27,
1659 ImGuiColorEditFlags_InputHSV = 1 << 28,
1663 ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar,
1666 ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex,
1667 ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float,
1668 ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar,
1669 ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV,
1678enum ImGuiSliderFlags_
1680 ImGuiSliderFlags_None = 0,
1681 ImGuiSliderFlags_AlwaysClamp = 1 << 4,
1682 ImGuiSliderFlags_Logarithmic = 1 << 5,
1683 ImGuiSliderFlags_NoRoundToFormat = 1 << 6,
1684 ImGuiSliderFlags_NoInput = 1 << 7,
1685 ImGuiSliderFlags_InvalidMask_ = 0x7000000F,
1688#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1689 ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp,
1695enum ImGuiMouseButton_
1697 ImGuiMouseButton_Left = 0,
1698 ImGuiMouseButton_Right = 1,
1699 ImGuiMouseButton_Middle = 2,
1700 ImGuiMouseButton_COUNT = 5
1705enum ImGuiMouseCursor_
1707 ImGuiMouseCursor_None = -1,
1708 ImGuiMouseCursor_Arrow = 0,
1709 ImGuiMouseCursor_TextInput,
1710 ImGuiMouseCursor_ResizeAll,
1711 ImGuiMouseCursor_ResizeNS,
1712 ImGuiMouseCursor_ResizeEW,
1713 ImGuiMouseCursor_ResizeNESW,
1714 ImGuiMouseCursor_ResizeNWSE,
1715 ImGuiMouseCursor_Hand,
1716 ImGuiMouseCursor_NotAllowed,
1717 ImGuiMouseCursor_COUNT
1726 ImGuiCond_Always = 1 << 0,
1727 ImGuiCond_Once = 1 << 1,
1728 ImGuiCond_FirstUseEver = 1 << 2,
1729 ImGuiCond_Appearing = 1 << 3,
1743inline void*
operator new(size_t,
ImNewWrapper,
void* ptr) {
return ptr; }
1744inline void operator delete(
void*,
ImNewWrapper,
void*) {}
1745#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE)
1746#define IM_FREE(_PTR) ImGui::MemFree(_PTR)
1747#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR)
1748#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE
1749template<
typename T>
void IM_DELETE(T* p) {
if (p) { p->~T(); ImGui::MemFree(p); } }
1762IM_MSVC_RUNTIME_CHECKS_OFF
1771 typedef T value_type;
1772 typedef value_type* iterator;
1773 typedef const value_type* const_iterator;
1776 inline ImVector() { Size = Capacity = 0; Data = NULL; }
1777 inline ImVector(
const ImVector<T>& src) { Size = Capacity = 0; Data = NULL; operator=(src); }
1778 inline ImVector<T>& operator=(
const ImVector<T>& src) { clear(); resize(src.Size);
if (src.Data) memcpy(Data, src.Data, (
size_t)Size *
sizeof(T));
return *
this; }
1779 inline ~ImVector() {
if (Data) IM_FREE(Data); }
1781 inline void clear() {
if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } }
1782 inline void clear_delete() {
for (
int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); }
1783 inline void clear_destruct() {
for (
int n = 0; n < Size; n++) Data[n].~T(); clear(); }
1785 inline bool empty()
const {
return Size == 0; }
1786 inline int size()
const {
return Size; }
1787 inline int size_in_bytes()
const {
return Size * (int)
sizeof(T); }
1788 inline int max_size()
const {
return 0x7FFFFFFF / (int)
sizeof(T); }
1789 inline int capacity()
const {
return Capacity; }
1790 inline T& operator[](
int i) { IM_ASSERT(i >= 0 && i < Size);
return Data[i]; }
1791 inline const T& operator[](
int i)
const { IM_ASSERT(i >= 0 && i < Size);
return Data[i]; }
1793 inline T* begin() {
return Data; }
1794 inline const T* begin()
const {
return Data; }
1795 inline T* end() {
return Data + Size; }
1796 inline const T* end()
const {
return Data + Size; }
1797 inline T& front() { IM_ASSERT(Size > 0);
return Data[0]; }
1798 inline const T& front()
const { IM_ASSERT(Size > 0);
return Data[0]; }
1799 inline T& back() { IM_ASSERT(Size > 0);
return Data[Size - 1]; }
1800 inline const T& back()
const { IM_ASSERT(Size > 0);
return Data[Size - 1]; }
1801 inline void swap(
ImVector<T>& rhs) {
int rhs_size = rhs.Size; rhs.Size = Size; Size = rhs_size;
int rhs_cap = rhs.Capacity; rhs.Capacity = Capacity; Capacity = rhs_cap; T* rhs_data = rhs.Data; rhs.Data = Data; Data = rhs_data; }
1803 inline int _grow_capacity(
int sz)
const {
int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8;
return new_capacity > sz ? new_capacity : sz; }
1804 inline void resize(
int new_size) {
if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; }
1805 inline void resize(
int new_size,
const T& v) {
if (new_size > Capacity) reserve(_grow_capacity(new_size));
if (new_size > Size)
for (
int n = Size; n < new_size; n++) memcpy(&Data[n], &v,
sizeof(v)); Size = new_size; }
1806 inline void shrink(
int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; }
1807 inline void reserve(
int new_capacity) {
if (new_capacity <= Capacity)
return; T* new_data = (T*)IM_ALLOC((
size_t)new_capacity *
sizeof(T));
if (Data) { memcpy(new_data, Data, (
size_t)Size *
sizeof(T)); IM_FREE(Data); } Data = new_data; Capacity = new_capacity; }
1808 inline void reserve_discard(
int new_capacity) {
if (new_capacity <= Capacity)
return;
if (Data) IM_FREE(Data); Data = (T*)IM_ALLOC((
size_t)new_capacity *
sizeof(T)); Capacity = new_capacity; }
1811 inline void push_back(
const T& v) {
if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v,
sizeof(v)); Size++; }
1812 inline void pop_back() { IM_ASSERT(Size > 0); Size--; }
1813 inline void push_front(
const T& v) {
if (Size == 0) push_back(v);
else insert(Data, v); }
1814 inline T* erase(
const T* it) { IM_ASSERT(it >= Data && it < Data + Size);
const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + 1, ((
size_t)Size - (
size_t)off - 1) *
sizeof(T)); Size--;
return Data + off; }
1815 inline T* erase(
const T* it,
const T* it_last){ IM_ASSERT(it >= Data && it < Data + Size && it_last >= it && it_last <= Data + Size);
const ptrdiff_t count = it_last - it;
const ptrdiff_t off = it - Data; memmove(Data + off, Data + off + count, ((
size_t)Size - (
size_t)off - (
size_t)count) *
sizeof(T)); Size -= (int)count;
return Data + off; }
1816 inline T* erase_unsorted(
const T* it) { IM_ASSERT(it >= Data && it < Data + Size);
const ptrdiff_t off = it - Data;
if (it < Data + Size - 1) memcpy(Data + off, Data + Size - 1,
sizeof(T)); Size--;
return Data + off; }
1817 inline T* insert(
const T* it,
const T& v) { IM_ASSERT(it >= Data && it <= Data + Size);
const ptrdiff_t off = it - Data;
if (Size == Capacity) reserve(_grow_capacity(Size + 1));
if (off < (
int)Size) memmove(Data + off + 1, Data + off, ((
size_t)Size - (
size_t)off) *
sizeof(T)); memcpy(&Data[off], &v,
sizeof(v)); Size++;
return Data + off; }
1818 inline bool contains(
const T& v)
const {
const T* data = Data;
const T* data_end = Data + Size;
while (data < data_end)
if (*data++ == v)
return true;
return false; }
1819 inline T* find(
const T& v) { T* data = Data;
const T* data_end = Data + Size;
while (data < data_end)
if (*data == v)
break;
else ++data;
return data; }
1820 inline const T* find(
const T& v)
const {
const T* data = Data;
const T* data_end = Data + Size;
while (data < data_end)
if (*data == v)
break;
else ++data;
return data; }
1821 inline bool find_erase(
const T& v) {
const T* it = find(v);
if (it < Data + Size) { erase(it);
return true; }
return false; }
1822 inline bool find_erase_unsorted(
const T& v) {
const T* it = find(v);
if (it < Data + Size) { erase_unsorted(it);
return true; }
return false; }
1823 inline int index_from_ptr(
const T* it)
const { IM_ASSERT(it >= Data && it < Data + Size);
const ptrdiff_t off = it - Data;
return (
int)off; }
1825IM_MSVC_RUNTIME_CHECKS_RESTORE
1838 float DisabledAlpha;
1840 float WindowRounding;
1841 float WindowBorderSize;
1844 ImGuiDir WindowMenuButtonPosition;
1845 float ChildRounding;
1846 float ChildBorderSize;
1847 float PopupRounding;
1848 float PopupBorderSize;
1850 float FrameRounding;
1851 float FrameBorderSize;
1855 ImVec2 TouchExtraPadding;
1856 float IndentSpacing;
1857 float ColumnsMinSpacing;
1858 float ScrollbarSize;
1859 float ScrollbarRounding;
1862 float LogSliderDeadzone;
1864 float TabBorderSize;
1865 float TabMinWidthForCloseButton;
1866 ImGuiDir ColorButtonPosition;
1868 ImVec2 SelectableTextAlign;
1869 float SeparatorTextBorderSize;
1870 ImVec2 SeparatorTextAlign;
1871 ImVec2 SeparatorTextPadding;
1872 ImVec2 DisplayWindowPadding;
1873 ImVec2 DisplaySafeAreaPadding;
1874 float MouseCursorScale;
1875 bool AntiAliasedLines;
1876 bool AntiAliasedLinesUseTex;
1877 bool AntiAliasedFill;
1878 float CurveTessellationTol;
1879 float CircleTessellationMaxError;
1880 ImVec4 Colors[ImGuiCol_COUNT];
1883 IMGUI_API
void ScaleAllSizes(
float scale_factor);
1899 float DownDurationPrev;
1909 ImGuiConfigFlags ConfigFlags;
1910 ImGuiBackendFlags BackendFlags;
1913 float IniSavingRate;
1914 const char* IniFilename;
1915 const char* LogFilename;
1916 float MouseDoubleClickTime;
1917 float MouseDoubleClickMaxDist;
1918 float MouseDragThreshold;
1919 float KeyRepeatDelay;
1920 float KeyRepeatRate;
1921 float HoverDelayNormal;
1922 float HoverDelayShort;
1926 float FontGlobalScale;
1927 bool FontAllowUserScaling;
1929 ImVec2 DisplayFramebufferScale;
1932 bool MouseDrawCursor;
1933 bool ConfigMacOSXBehaviors;
1934 bool ConfigInputTrickleEventQueue;
1935 bool ConfigInputTextCursorBlink;
1936 bool ConfigInputTextEnterKeepActive;
1937 bool ConfigDragClickToInputText;
1938 bool ConfigWindowsResizeFromEdges;
1939 bool ConfigWindowsMoveFromTitleBarOnly;
1940 float ConfigMemoryCompactTimer;
1948 const char* BackendPlatformName;
1949 const char* BackendRendererName;
1950 void* BackendPlatformUserData;
1951 void* BackendRendererUserData;
1952 void* BackendLanguageUserData;
1956 const char* (*GetClipboardTextFn)(
void* user_data);
1957 void (*SetClipboardTextFn)(
void* user_data,
const char* text);
1958 void* ClipboardUserData;
1963#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1964 void* ImeWindowHandle;
1966 void* _UnusedPadding;
1974 IMGUI_API
void AddKeyEvent(ImGuiKey key,
bool down);
1975 IMGUI_API
void AddKeyAnalogEvent(ImGuiKey key,
bool down,
float v);
1976 IMGUI_API
void AddMousePosEvent(
float x,
float y);
1977 IMGUI_API
void AddMouseButtonEvent(
int button,
bool down);
1978 IMGUI_API
void AddMouseWheelEvent(
float wheel_x,
float wheel_y);
1979 IMGUI_API
void AddFocusEvent(
bool focused);
1980 IMGUI_API
void AddInputCharacter(
unsigned int c);
1981 IMGUI_API
void AddInputCharacterUTF16(ImWchar16 c);
1982 IMGUI_API
void AddInputCharactersUTF8(
const char* str);
1984 IMGUI_API
void SetKeyEventNativeData(ImGuiKey key,
int native_keycode,
int native_scancode,
int native_legacy_index = -1);
1985 IMGUI_API
void SetAppAcceptingEvents(
bool accepting_events);
1986 IMGUI_API
void ClearInputCharacters();
1987 IMGUI_API
void ClearInputKeys();
1995 bool WantCaptureMouse;
1996 bool WantCaptureKeyboard;
1998 bool WantSetMousePos;
1999 bool WantSaveIniSettings;
2003 int MetricsRenderVertices;
2004 int MetricsRenderIndices;
2005 int MetricsRenderWindows;
2006 int MetricsActiveWindows;
2007 int MetricsActiveAllocations;
2013#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
2014 int KeyMap[ImGuiKey_COUNT];
2015 bool KeysDown[ImGuiKey_COUNT];
2016 float NavInputs[ImGuiNavInput_COUNT];
2036 ImGuiKeyChord KeyMods;
2038 bool WantCaptureMouseUnlessPopupClose;
2040 ImVec2 MouseClickedPos[5];
2041 double MouseClickedTime[5];
2042 bool MouseClicked[5];
2043 bool MouseDoubleClicked[5];
2044 ImU16 MouseClickedCount[5];
2045 ImU16 MouseClickedLastCount[5];
2046 bool MouseReleased[5];
2047 bool MouseDownOwned[5];
2048 bool MouseDownOwnedUnlessPopupClose[5];
2049 float MouseDownDuration[5];
2050 float MouseDownDurationPrev[5];
2051 float MouseDragMaxDistanceSqr[5];
2054 bool AppAcceptingEvents;
2055 ImS8 BackendUsingLegacyKeyArrays;
2056 bool BackendUsingLegacyNavInputArray;
2057 ImWchar16 InputQueueSurrogate;
2078 ImGuiInputTextFlags EventFlag;
2079 ImGuiInputTextFlags Flags;
2098 IMGUI_API
void DeleteChars(
int pos,
int bytes_count);
2099 IMGUI_API
void InsertChars(
int pos,
const char* text,
const char* text_end = NULL);
2100 void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; }
2101 void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; }
2102 bool HasSelection()
const {
return SelectionStart != SelectionEnd; }
2124 ImGuiID SourceParentId;
2126 char DataType[32 + 1];
2131 void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0,
sizeof(DataType)); DataFrameCount = -1; Preview = Delivery =
false; }
2132 bool IsDataType(
const char* type)
const {
return DataFrameCount != -1 && strcmp(type, DataType) == 0; }
2133 bool IsPreview()
const {
return Preview; }
2134 bool IsDelivery()
const {
return Delivery; }
2140 ImGuiID ColumnUserID;
2143 ImGuiSortDirection SortDirection : 8;
2166#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD
2167#ifdef IMGUI_USE_WCHAR32
2168#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF
2170#define IM_UNICODE_CODEPOINT_MAX 0xFFFF
2178 mutable int RefFrame;
2179 operator bool()
const {
int current_frame = ImGui::GetFrameCount();
if (RefFrame == current_frame)
return false; RefFrame = current_frame;
return true; }
2186 IMGUI_API
bool Draw(
const char* label =
"Filter (inc,-exc)",
float width = 0.0f);
2187 IMGUI_API
bool PassFilter(
const char* text,
const char* text_end = NULL)
const;
2188 IMGUI_API
void Build();
2189 void Clear() { InputBuf[0] = 0; Build(); }
2190 bool IsActive()
const {
return !Filters.empty(); }
2199 ImGuiTextRange(
const char* _b,
const char* _e) { b = _b; e = _e; }
2200 bool empty()
const {
return b == e; }
2213 IMGUI_API
static char EmptyString[1];
2216 inline char operator[](
int i)
const { IM_ASSERT(Buf.Data != NULL);
return Buf.Data[i]; }
2217 const char* begin()
const {
return Buf.Data ? &Buf.front() : EmptyString; }
2218 const char* end()
const {
return Buf.Data ? &Buf.back() : EmptyString; }
2219 int size()
const {
return Buf.Size ? Buf.Size - 1 : 0; }
2220 bool empty()
const {
return Buf.Size <= 1; }
2221 void clear() { Buf.clear(); }
2222 void reserve(
int capacity) { Buf.reserve(capacity); }
2223 const char* c_str()
const {
return Buf.Data ? Buf.Data : EmptyString; }
2224 IMGUI_API
void append(
const char* str,
const char* str_end = NULL);
2225 IMGUI_API
void appendf(
const char* fmt, ...) IM_FMTARGS(2);
2226 IMGUI_API
void appendfv(
const char* fmt, va_list args) IM_FMTLIST(2);
2243 union {
int val_i;
float val_f;
void* val_p; };
2245 ImGuiStoragePair(ImGuiID _key,
float _val_f) { key = _key; val_f = _val_f; }
2246 ImGuiStoragePair(ImGuiID _key,
void* _val_p) { key = _key; val_p = _val_p; }
2254 void Clear() { Data.clear(); }
2255 IMGUI_API
int GetInt(ImGuiID key,
int default_val = 0)
const;
2256 IMGUI_API
void SetInt(ImGuiID key,
int val);
2257 IMGUI_API
bool GetBool(ImGuiID key,
bool default_val =
false)
const;
2258 IMGUI_API
void SetBool(ImGuiID key,
bool val);
2259 IMGUI_API
float GetFloat(ImGuiID key,
float default_val = 0.0f)
const;
2260 IMGUI_API
void SetFloat(ImGuiID key,
float val);
2261 IMGUI_API
void* GetVoidPtr(ImGuiID key)
const;
2262 IMGUI_API
void SetVoidPtr(ImGuiID key,
void* val);
2268 IMGUI_API
int* GetIntRef(ImGuiID key,
int default_val = 0);
2269 IMGUI_API
bool* GetBoolRef(ImGuiID key,
bool default_val =
false);
2270 IMGUI_API
float* GetFloatRef(ImGuiID key,
float default_val = 0.0f);
2271 IMGUI_API
void** GetVoidPtrRef(ImGuiID key,
void* default_val = NULL);
2274 IMGUI_API
void SetAllInt(
int val);
2277 IMGUI_API
void BuildSortByKey();
2313 IMGUI_API
void Begin(
int items_count,
float items_height = -1.0f);
2314 IMGUI_API
void End();
2315 IMGUI_API
bool Step();
2318 IMGUI_API
void ForceDisplayRangeByIndices(
int item_min,
int item_max);
2320#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2321 inline ImGuiListClipper(
int items_count,
float items_height = -1.0f) { memset(
this, 0,
sizeof(*
this)); ItemsCount = -1; Begin(items_count, items_height); }
2327#ifndef IM_COL32_R_SHIFT
2328#ifdef IMGUI_USE_BGRA_PACKED_COLOR
2329#define IM_COL32_R_SHIFT 16
2330#define IM_COL32_G_SHIFT 8
2331#define IM_COL32_B_SHIFT 0
2332#define IM_COL32_A_SHIFT 24
2333#define IM_COL32_A_MASK 0xFF000000
2335#define IM_COL32_R_SHIFT 0
2336#define IM_COL32_G_SHIFT 8
2337#define IM_COL32_B_SHIFT 16
2338#define IM_COL32_A_SHIFT 24
2339#define IM_COL32_A_MASK 0xFF000000
2342#define IM_COL32(R,G,B,A) (((ImU32)(A)<<IM_COL32_A_SHIFT) | ((ImU32)(B)<<IM_COL32_B_SHIFT) | ((ImU32)(G)<<IM_COL32_G_SHIFT) | ((ImU32)(R)<<IM_COL32_R_SHIFT))
2343#define IM_COL32_WHITE IM_COL32(255,255,255,255)
2344#define IM_COL32_BLACK IM_COL32(0,0,0,255)
2345#define IM_COL32_BLACK_TRANS IM_COL32(0,0,0,0)
2356 constexpr ImColor(
float r,
float g,
float b,
float a = 1.0f) : Value(r, g, b, a) { }
2358 ImColor(
int r,
int g,
int b,
int a = 255) {
float sc = 1.0f / 255.0f; Value.x = (float)r * sc; Value.y = (float)g * sc; Value.z = (float)b * sc; Value.w = (float)a * sc; }
2359 ImColor(ImU32 rgba) {
float sc = 1.0f / 255.0f; Value.x = (float)((rgba >> IM_COL32_R_SHIFT) & 0xFF) * sc; Value.y = (float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * sc; Value.z = (float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * sc; Value.w = (float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * sc; }
2360 inline operator ImU32()
const {
return ImGui::ColorConvertFloat4ToU32(Value); }
2361 inline operator ImVec4()
const {
return Value; }
2364 inline void SetHSV(
float h,
float s,
float v,
float a = 1.0f){ ImGui::ColorConvertHSVtoRGB(h, s, v, Value.x, Value.y, Value.z); Value.w = a; }
2365 static ImColor HSV(
float h,
float s,
float v,
float a = 1.0f) {
float r, g, b; ImGui::ColorConvertHSVtoRGB(h, s, v, r, g, b);
return ImColor(r, g, b, a); }
2374#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX
2375#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63)
2385#ifndef ImDrawCallback
2393#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-1)
2403 ImTextureID TextureId;
2404 unsigned int VtxOffset;
2405 unsigned int IdxOffset;
2406 unsigned int ElemCount;
2407 ImDrawCallback UserCallback;
2408 void* UserCallbackData;
2410 ImDrawCmd() { memset(
this, 0,
sizeof(*
this)); }
2413 inline ImTextureID GetTexID()
const {
return TextureId; }
2417#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT
2429IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT;
2436 ImTextureID TextureId;
2437 unsigned int VtxOffset;
2458 inline void Clear() { _Current = 0; _Count = 1; }
2459 IMGUI_API
void ClearFreeMemory();
2460 IMGUI_API
void Split(
ImDrawList* draw_list,
int count);
2462 IMGUI_API
void SetCurrentChannel(
ImDrawList* draw_list,
int channel_idx);
2469 ImDrawFlags_None = 0,
2470 ImDrawFlags_Closed = 1 << 0,
2471 ImDrawFlags_RoundCornersTopLeft = 1 << 4,
2472 ImDrawFlags_RoundCornersTopRight = 1 << 5,
2473 ImDrawFlags_RoundCornersBottomLeft = 1 << 6,
2474 ImDrawFlags_RoundCornersBottomRight = 1 << 7,
2475 ImDrawFlags_RoundCornersNone = 1 << 8,
2476 ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
2477 ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
2478 ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
2479 ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight,
2480 ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
2481 ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll,
2482 ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone,
2487enum ImDrawListFlags_
2489 ImDrawListFlags_None = 0,
2490 ImDrawListFlags_AntiAliasedLines = 1 << 0,
2491 ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1,
2492 ImDrawListFlags_AntiAliasedFill = 1 << 2,
2493 ImDrawListFlags_AllowVtxOffset = 1 << 3,
2511 ImDrawListFlags Flags;
2514 unsigned int _VtxCurrentIdx;
2516 const char* _OwnerName;
2518 ImDrawIdx* _IdxWritePtr;
2530 IMGUI_API
void PushClipRect(
const ImVec2& clip_rect_min,
const ImVec2& clip_rect_max,
bool intersect_with_current_clip_rect =
false);
2531 IMGUI_API
void PushClipRectFullScreen();
2532 IMGUI_API
void PopClipRect();
2533 IMGUI_API
void PushTextureID(ImTextureID texture_id);
2534 IMGUI_API
void PopTextureID();
2535 inline ImVec2 GetClipRectMin()
const {
const ImVec4& cr = _ClipRectStack.back();
return ImVec2(cr.x, cr.y); }
2536 inline ImVec2 GetClipRectMax()
const {
const ImVec4& cr = _ClipRectStack.back();
return ImVec2(cr.z, cr.w); }
2545 IMGUI_API
void AddLine(
const ImVec2& p1,
const ImVec2& p2, ImU32 col,
float thickness = 1.0f);
2546 IMGUI_API
void AddRect(
const ImVec2& p_min,
const ImVec2& p_max, ImU32 col,
float rounding = 0.0f, ImDrawFlags flags = 0,
float thickness = 1.0f);
2547 IMGUI_API
void AddRectFilled(
const ImVec2& p_min,
const ImVec2& p_max, ImU32 col,
float rounding = 0.0f, ImDrawFlags flags = 0);
2548 IMGUI_API
void AddRectFilledMultiColor(
const ImVec2& p_min,
const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left);
2549 IMGUI_API
void AddQuad(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness = 1.0f);
2551 IMGUI_API
void AddTriangle(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col,
float thickness = 1.0f);
2552 IMGUI_API
void AddTriangleFilled(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col);
2553 IMGUI_API
void AddCircle(
const ImVec2& center,
float radius, ImU32 col,
int num_segments = 0,
float thickness = 1.0f);
2554 IMGUI_API
void AddCircleFilled(
const ImVec2& center,
float radius, ImU32 col,
int num_segments = 0);
2555 IMGUI_API
void AddNgon(
const ImVec2& center,
float radius, ImU32 col,
int num_segments,
float thickness = 1.0f);
2556 IMGUI_API
void AddNgonFilled(
const ImVec2& center,
float radius, ImU32 col,
int num_segments);
2557 IMGUI_API
void AddText(
const ImVec2& pos, ImU32 col,
const char* text_begin,
const char* text_end = NULL);
2558 IMGUI_API
void AddText(
const ImFont* font,
float font_size,
const ImVec2& pos, ImU32 col,
const char* text_begin,
const char* text_end = NULL,
float wrap_width = 0.0f,
const ImVec4* cpu_fine_clip_rect = NULL);
2559 IMGUI_API
void AddPolyline(
const ImVec2* points,
int num_points, ImU32 col, ImDrawFlags flags,
float thickness);
2560 IMGUI_API
void AddConvexPolyFilled(
const ImVec2* points,
int num_points, ImU32 col);
2561 IMGUI_API
void AddBezierCubic(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness,
int num_segments = 0);
2562 IMGUI_API
void AddBezierQuadratic(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col,
float thickness,
int num_segments = 0);
2568 IMGUI_API
void AddImage(ImTextureID user_texture_id,
const ImVec2& p_min,
const ImVec2& p_max,
const ImVec2& uv_min =
ImVec2(0, 0),
const ImVec2& uv_max =
ImVec2(1, 1), ImU32 col = IM_COL32_WHITE);
2569 IMGUI_API
void AddImageQuad(ImTextureID user_texture_id,
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4,
const ImVec2& uv1 =
ImVec2(0, 0),
const ImVec2& uv2 =
ImVec2(1, 0),
const ImVec2& uv3 =
ImVec2(1, 1),
const ImVec2& uv4 =
ImVec2(0, 1), ImU32 col = IM_COL32_WHITE);
2570 IMGUI_API
void AddImageRounded(ImTextureID user_texture_id,
const ImVec2& p_min,
const ImVec2& p_max,
const ImVec2& uv_min,
const ImVec2& uv_max, ImU32 col,
float rounding, ImDrawFlags flags = 0);
2574 inline void PathClear() { _Path.Size = 0; }
2575 inline void PathLineTo(
const ImVec2& pos) { _Path.push_back(pos); }
2576 inline void PathLineToMergeDuplicate(
const ImVec2& pos) {
if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); }
2577 inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
2578 inline void PathStroke(ImU32 col, ImDrawFlags flags = 0,
float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; }
2579 IMGUI_API
void PathArcTo(
const ImVec2& center,
float radius,
float a_min,
float a_max,
int num_segments = 0);
2580 IMGUI_API
void PathArcToFast(
const ImVec2& center,
float radius,
int a_min_of_12,
int a_max_of_12);
2581 IMGUI_API
void PathBezierCubicCurveTo(
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4,
int num_segments = 0);
2582 IMGUI_API
void PathBezierQuadraticCurveTo(
const ImVec2& p2,
const ImVec2& p3,
int num_segments = 0);
2583 IMGUI_API
void PathRect(
const ImVec2& rect_min,
const ImVec2& rect_max,
float rounding = 0.0f, ImDrawFlags flags = 0);
2586 IMGUI_API
void AddCallback(ImDrawCallback callback,
void* callback_data);
2587 IMGUI_API
void AddDrawCmd();
2596 inline void ChannelsSplit(
int count) { _Splitter.Split(
this, count); }
2597 inline void ChannelsMerge() { _Splitter.Merge(
this); }
2598 inline void ChannelsSetCurrent(
int n) { _Splitter.SetCurrentChannel(
this, n); }
2603 IMGUI_API
void PrimReserve(
int idx_count,
int vtx_count);
2604 IMGUI_API
void PrimUnreserve(
int idx_count,
int vtx_count);
2605 IMGUI_API
void PrimRect(
const ImVec2& a,
const ImVec2& b, ImU32 col);
2608 inline void PrimWriteVtx(
const ImVec2& pos,
const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; }
2609 inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; }
2610 inline void PrimVtx(
const ImVec2& pos,
const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); }
2612#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2613 inline void AddBezierCurve(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness,
int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); }
2614 inline void PathBezierCurveTo(
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4,
int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); }
2618 IMGUI_API
void _ResetForNewFrame();
2619 IMGUI_API
void _ClearFreeMemory();
2620 IMGUI_API
void _PopUnusedDrawCmd();
2621 IMGUI_API
void _TryMergeDrawCmds();
2622 IMGUI_API
void _OnChangedClipRect();
2623 IMGUI_API
void _OnChangedTextureID();
2624 IMGUI_API
void _OnChangedVtxOffset();
2625 IMGUI_API
int _CalcCircleAutoSegmentCount(
float radius)
const;
2626 IMGUI_API
void _PathArcToFastEx(
const ImVec2& center,
float radius,
int a_min_sample,
int a_max_sample,
int a_step);
2627 IMGUI_API
void _PathArcToN(
const ImVec2& center,
float radius,
float a_min,
float a_max,
int num_segments);
2646 void Clear() { memset(
this, 0,
sizeof(*
this)); }
2647 IMGUI_API
void DeIndexAllBuffers();
2648 IMGUI_API
void ScaleClipRects(
const ImVec2& fb_scale);
2659 bool FontDataOwnedByAtlas;
2665 ImVec2 GlyphExtraSpacing;
2667 const ImWchar* GlyphRanges;
2668 float GlyphMinAdvanceX;
2669 float GlyphMaxAdvanceX;
2671 unsigned int FontBuilderFlags;
2672 float RasterizerMultiply;
2673 ImWchar EllipsisChar;
2686 unsigned int Colored : 1;
2687 unsigned int Visible : 1;
2688 unsigned int Codepoint : 30;
2690 float X0, Y0, X1, Y1;
2691 float U0, V0, U1, V1;
2701 inline void Clear() {
int size_in_bytes = (IM_UNICODE_CODEPOINT_MAX + 1) / 8; UsedChars.resize(size_in_bytes / (
int)
sizeof(ImU32)); memset(UsedChars.Data, 0, (
size_t)size_in_bytes); }
2702 inline bool GetBit(
size_t n)
const {
int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31);
return (UsedChars[off] & mask) != 0; }
2703 inline void SetBit(
size_t n) {
int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; }
2704 inline void AddChar(ImWchar c) { SetBit(c); }
2705 IMGUI_API
void AddText(
const char* text,
const char* text_end = NULL);
2706 IMGUI_API
void AddRanges(
const ImWchar* ranges);
2713 unsigned short Width, Height;
2714 unsigned short X, Y;
2715 unsigned int GlyphID;
2716 float GlyphAdvanceX;
2719 ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset =
ImVec2(0, 0); Font = NULL; }
2720 bool IsPacked()
const {
return X != 0xFFFF; }
2724enum ImFontAtlasFlags_
2726 ImFontAtlasFlags_None = 0,
2727 ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0,
2728 ImFontAtlasFlags_NoMouseCursors = 1 << 1,
2729 ImFontAtlasFlags_NoBakedLines = 1 << 2,
2755 IMGUI_API
ImFont* AddFontFromFileTTF(
const char* filename,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
2756 IMGUI_API
ImFont* AddFontFromMemoryTTF(
void* font_data,
int font_size,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
2757 IMGUI_API
ImFont* AddFontFromMemoryCompressedTTF(
const void* compressed_font_data,
int compressed_font_size,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
2758 IMGUI_API
ImFont* AddFontFromMemoryCompressedBase85TTF(
const char* compressed_font_data_base85,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
2759 IMGUI_API
void ClearInputData();
2760 IMGUI_API
void ClearTexData();
2761 IMGUI_API
void ClearFonts();
2762 IMGUI_API
void Clear();
2769 IMGUI_API
bool Build();
2770 IMGUI_API
void GetTexDataAsAlpha8(
unsigned char** out_pixels,
int* out_width,
int* out_height,
int* out_bytes_per_pixel = NULL);
2771 IMGUI_API
void GetTexDataAsRGBA32(
unsigned char** out_pixels,
int* out_width,
int* out_height,
int* out_bytes_per_pixel = NULL);
2772 bool IsBuilt()
const {
return Fonts.Size > 0 && TexReady; }
2773 void SetTexID(ImTextureID
id) { TexID = id; }
2782 IMGUI_API
const ImWchar* GetGlyphRangesDefault();
2783 IMGUI_API
const ImWchar* GetGlyphRangesGreek();
2784 IMGUI_API
const ImWchar* GetGlyphRangesKorean();
2785 IMGUI_API
const ImWchar* GetGlyphRangesJapanese();
2786 IMGUI_API
const ImWchar* GetGlyphRangesChineseFull();
2787 IMGUI_API
const ImWchar* GetGlyphRangesChineseSimplifiedCommon();
2788 IMGUI_API
const ImWchar* GetGlyphRangesCyrillic();
2789 IMGUI_API
const ImWchar* GetGlyphRangesThai();
2790 IMGUI_API
const ImWchar* GetGlyphRangesVietnamese();
2803 IMGUI_API
int AddCustomRectRegular(
int width,
int height);
2804 IMGUI_API
int AddCustomRectFontGlyph(
ImFont* font, ImWchar
id,
int width,
int height,
float advance_x,
const ImVec2& offset =
ImVec2(0, 0));
2805 ImFontAtlasCustomRect* GetCustomRectByIndex(
int index) { IM_ASSERT(index >= 0);
return &CustomRects[index]; }
2809 IMGUI_API
bool GetMouseCursorTexData(ImGuiMouseCursor cursor,
ImVec2* out_offset,
ImVec2* out_size,
ImVec2 out_uv_border[2],
ImVec2 out_uv_fill[2]);
2815 ImFontAtlasFlags Flags;
2817 int TexDesiredWidth;
2818 int TexGlyphPadding;
2825 bool TexPixelsUseColors;
2826 unsigned char* TexPixelsAlpha8;
2827 unsigned int* TexPixelsRGBA32;
2835 ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1];
2839 unsigned int FontBuilderFlags;
2842 int PackIdMouseCursors;
2856 float FallbackAdvanceX;
2867 short ConfigDataCount;
2868 ImWchar FallbackChar;
2869 ImWchar EllipsisChar;
2870 short EllipsisCharCount;
2871 float EllipsisWidth;
2872 float EllipsisCharStep;
2873 bool DirtyLookupTables;
2875 float Ascent, Descent;
2876 int MetricsTotalSurface;
2877 ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8];
2882 IMGUI_API
const ImFontGlyph*FindGlyph(ImWchar c)
const;
2883 IMGUI_API
const ImFontGlyph*FindGlyphNoFallback(ImWchar c)
const;
2884 float GetCharAdvance(ImWchar c)
const {
return ((
int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; }
2885 bool IsLoaded()
const {
return ContainerAtlas != NULL; }
2886 const char* GetDebugName()
const {
return ConfigData ? ConfigData->Name :
"<unknown>"; }
2890 IMGUI_API
ImVec2 CalcTextSizeA(
float size,
float max_width,
float wrap_width,
const char* text_begin,
const char* text_end = NULL,
const char** remaining = NULL)
const;
2891 IMGUI_API
const char* CalcWordWrapPositionA(
float scale,
const char* text,
const char* text_end,
float wrap_width)
const;
2892 IMGUI_API
void RenderChar(
ImDrawList* draw_list,
float size,
const ImVec2& pos, ImU32 col, ImWchar c)
const;
2893 IMGUI_API
void RenderText(
ImDrawList* draw_list,
float size,
const ImVec2& pos, ImU32 col,
const ImVec4& clip_rect,
const char* text_begin,
const char* text_end,
float wrap_width = 0.0f,
bool cpu_fine_clip =
false)
const;
2896 IMGUI_API
void BuildLookupTable();
2897 IMGUI_API
void ClearOutputData();
2898 IMGUI_API
void GrowIndex(
int new_size);
2899 IMGUI_API
void AddGlyph(
const ImFontConfig* src_cfg, ImWchar c,
float x0,
float y0,
float x1,
float y1,
float u0,
float v0,
float u1,
float v1,
float advance_x);
2900 IMGUI_API
void AddRemapChar(ImWchar dst, ImWchar src,
bool overwrite_dst =
true);
2901 IMGUI_API
void SetGlyphVisible(ImWchar c,
bool visible);
2902 IMGUI_API
bool IsGlyphRangeUnused(
unsigned int c_begin,
unsigned int c_last);
2910enum ImGuiViewportFlags_
2912 ImGuiViewportFlags_None = 0,
2913 ImGuiViewportFlags_IsPlatformWindow = 1 << 0,
2914 ImGuiViewportFlags_IsPlatformMonitor = 1 << 1,
2915 ImGuiViewportFlags_OwnedByApp = 1 << 2,
2927 ImGuiViewportFlags Flags;
2934 void* PlatformHandleRaw;
2939 ImVec2 GetCenter()
const {
return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); }
2940 ImVec2 GetWorkCenter()
const {
return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); }
2952 float InputLineHeight;
2965#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
2966 IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key);
2968 static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END &&
"ImGuiKey and native_index was merged together and native_index is disabled by IMGUI_DISABLE_OBSOLETE_KEYIO. Please switch to ImGuiKey.");
return key; }
2972#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2976 IMGUI_API
bool ImageButton(ImTextureID user_texture_id,
const ImVec2& size,
const ImVec2& uv0 =
ImVec2(0, 0),
const ImVec2& uv1 =
ImVec2(1, 1),
int frame_padding = -1,
const ImVec4& bg_col =
ImVec4(0, 0, 0, 0),
const ImVec4& tint_col =
ImVec4(1, 1, 1, 1));
2978 static inline void CaptureKeyboardFromApp(
bool want_capture_keyboard =
true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); }
2979 static inline void CaptureMouseFromApp(
bool want_capture_mouse =
true) { SetNextFrameWantCaptureMouse(want_capture_mouse); }
2981 IMGUI_API
void CalcListClipping(
int items_count,
float items_height,
int* out_items_display_start,
int* out_items_display_end);
2983 static inline float GetWindowContentRegionWidth() {
return GetWindowContentRegionMax().x - GetWindowContentRegionMin().x; }
2985 IMGUI_API
bool ListBoxHeader(
const char* label,
int items_count,
int height_in_items = -1);
2986 static inline bool ListBoxHeader(
const char* label,
const ImVec2& size =
ImVec2(0, 0)) {
return BeginListBox(label, size); }
2987 static inline void ListBoxFooter() { EndListBox(); }
3037typedef ImDrawFlags ImDrawCornerFlags;
3038enum ImDrawCornerFlags_
3040 ImDrawCornerFlags_None = ImDrawFlags_RoundCornersNone,
3041 ImDrawCornerFlags_TopLeft = ImDrawFlags_RoundCornersTopLeft,
3042 ImDrawCornerFlags_TopRight = ImDrawFlags_RoundCornersTopRight,
3043 ImDrawCornerFlags_BotLeft = ImDrawFlags_RoundCornersBottomLeft,
3044 ImDrawCornerFlags_BotRight = ImDrawFlags_RoundCornersBottomRight,
3045 ImDrawCornerFlags_All = ImDrawFlags_RoundCornersAll,
3046 ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight,
3047 ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight,
3048 ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft,
3049 ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight,
3054typedef ImGuiKeyChord ImGuiModFlags;
3055enum ImGuiModFlags_ { ImGuiModFlags_None = 0, ImGuiModFlags_Ctrl = ImGuiMod_Ctrl, ImGuiModFlags_Shift = ImGuiMod_Shift, ImGuiModFlags_Alt = ImGuiMod_Alt, ImGuiModFlags_Super = ImGuiMod_Super };
3062#if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS)
3063#define IMGUI_DISABLE_DEBUG_TOOLS
3065#if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)
3066#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name.
3071#if defined(__clang__)
3072#pragma clang diagnostic pop
3073#elif defined(__GNUC__)
3074#pragma GCC diagnostic pop
3078#pragma warning (pop)
3082#ifdef IMGUI_INCLUDE_IMGUI_USER_H
3083#include "imgui_user.h"
Definition: Bullet.hpp:13
Definition: imgui_internal.h:763
Definition: imgui_internal.h:3213
Definition: imgui_internal.h:1734