31#define IMGUI_VERSION "1.91.4"
32#define IMGUI_VERSION_NUM 19140
33#define IMGUI_HAS_TABLE
61#ifdef IMGUI_USER_CONFIG
62#include IMGUI_USER_CONFIG
85#define IMGUI_IMPL_API IMGUI_API
91#define IM_ASSERT(_EXPR) assert(_EXPR)
93#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR))))
94#define IM_UNUSED(_VAR) ((void)(_VAR))
97#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx))
102#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__)
103#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1)))
104#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0)))
105#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__))
106#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1)))
107#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0)))
109#define IM_FMTARGS(FMT)
110#define IM_FMTLIST(FMT)
114#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID)
115#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off))
116#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop))
118#define IM_MSVC_RUNTIME_CHECKS_OFF
119#define IM_MSVC_RUNTIME_CHECKS_RESTORE
124#pragma warning (push)
125#pragma warning (disable: 26495)
127#if defined(__clang__)
128#pragma clang diagnostic push
129#if __has_warning("-Wunknown-warning-option")
130#pragma clang diagnostic ignored "-Wunknown-warning-option"
132#pragma clang diagnostic ignored "-Wunknown-pragmas"
133#pragma clang diagnostic ignored "-Wold-style-cast"
134#pragma clang diagnostic ignored "-Wfloat-equal"
135#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
136#pragma clang diagnostic ignored "-Wreserved-identifier"
137#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
138#elif defined(__GNUC__)
139#pragma GCC diagnostic push
140#pragma GCC diagnostic ignored "-Wpragmas"
141#pragma GCC diagnostic ignored "-Wclass-memaccess"
149typedef unsigned int ImGuiID;
150typedef signed char ImS8;
151typedef unsigned char ImU8;
152typedef signed short ImS16;
153typedef unsigned short ImU16;
154typedef signed int ImS32;
155typedef unsigned int ImU32;
156typedef signed long long ImS64;
157typedef unsigned long long ImU64;
205enum ImGuiMouseSource : int;
206enum ImGuiSortDirection : ImU8;
208typedef int ImGuiCond;
209typedef int ImGuiDataType;
210typedef int ImGuiMouseButton;
211typedef int ImGuiMouseCursor;
212typedef int ImGuiStyleVar;
213typedef int ImGuiTableBgTarget;
220typedef int ImDrawFlags;
221typedef int ImDrawListFlags;
222typedef int ImFontAtlasFlags;
223typedef int ImGuiBackendFlags;
224typedef int ImGuiButtonFlags;
225typedef int ImGuiChildFlags;
226typedef int ImGuiColorEditFlags;
227typedef int ImGuiConfigFlags;
228typedef int ImGuiComboFlags;
229typedef int ImGuiDragDropFlags;
230typedef int ImGuiFocusedFlags;
231typedef int ImGuiHoveredFlags;
232typedef int ImGuiInputFlags;
233typedef int ImGuiInputTextFlags;
234typedef int ImGuiItemFlags;
235typedef int ImGuiKeyChord;
236typedef int ImGuiPopupFlags;
237typedef int ImGuiMultiSelectFlags;
238typedef int ImGuiSelectableFlags;
239typedef int ImGuiSliderFlags;
240typedef int ImGuiTabBarFlags;
241typedef int ImGuiTabItemFlags;
242typedef int ImGuiTableFlags;
243typedef int ImGuiTableColumnFlags;
244typedef int ImGuiTableRowFlags;
245typedef int ImGuiTreeNodeFlags;
246typedef int ImGuiViewportFlags;
247typedef int ImGuiWindowFlags;
255typedef ImU64 ImTextureID;
262typedef unsigned short ImDrawIdx;
267typedef unsigned int ImWchar32;
268typedef unsigned short ImWchar16;
269#ifdef IMGUI_USE_WCHAR32
270typedef ImWchar32 ImWchar;
272typedef ImWchar16 ImWchar;
278typedef ImS64 ImGuiSelectionUserData;
283typedef void* (*ImGuiMemAllocFunc)(
size_t sz,
void* user_data);
284typedef void (*ImGuiMemFreeFunc)(
void* ptr,
void* user_data);
289IM_MSVC_RUNTIME_CHECKS_OFF
293 constexpr ImVec2() : x(0.0f), y(0.0f) { }
294 constexpr ImVec2(
float _x,
float _y) : x(_x), y(_y) { }
295 float& operator[] (
size_t idx) { IM_ASSERT(idx == 0 || idx == 1);
return ((
float*)(
void*)(
char*)
this)[idx]; }
296 float operator[] (
size_t idx)
const { IM_ASSERT(idx == 0 || idx == 1);
return ((
const float*)(
const void*)(
const char*)
this)[idx]; }
297#ifdef IM_VEC2_CLASS_EXTRA
306 constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { }
307 constexpr ImVec4(
float _x,
float _y,
float _z,
float _w) : x(_x), y(_y), z(_z), w(_w) { }
308#ifdef IM_VEC4_CLASS_EXTRA
312IM_MSVC_RUNTIME_CHECKS_RESTORE
326 IMGUI_API
void DestroyContext(
ImGuiContext* ctx = NULL);
334 IMGUI_API
void NewFrame();
335 IMGUI_API
void EndFrame();
336 IMGUI_API
void Render();
340 IMGUI_API
void ShowDemoWindow(
bool* p_open = NULL);
341 IMGUI_API
void ShowMetricsWindow(
bool* p_open = NULL);
342 IMGUI_API
void ShowDebugLogWindow(
bool* p_open = NULL);
343 IMGUI_API
void ShowIDStackToolWindow(
bool* p_open = NULL);
344 IMGUI_API
void ShowAboutWindow(
bool* p_open = NULL);
345 IMGUI_API
void ShowStyleEditor(
ImGuiStyle* ref = NULL);
346 IMGUI_API
bool ShowStyleSelector(
const char* label);
347 IMGUI_API
void ShowFontSelector(
const char* label);
348 IMGUI_API
void ShowUserGuide();
349 IMGUI_API
const char* GetVersion();
352 IMGUI_API
void StyleColorsDark(
ImGuiStyle* dst = NULL);
353 IMGUI_API
void StyleColorsLight(
ImGuiStyle* dst = NULL);
354 IMGUI_API
void StyleColorsClassic(
ImGuiStyle* dst = NULL);
368 IMGUI_API
bool Begin(
const char* name,
bool* p_open = NULL, ImGuiWindowFlags flags = 0);
369 IMGUI_API
void End();
389 IMGUI_API
bool BeginChild(
const char* str_id,
const ImVec2& size =
ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0);
390 IMGUI_API
bool BeginChild(ImGuiID
id,
const ImVec2& size =
ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0);
391 IMGUI_API
void EndChild();
395 IMGUI_API
bool IsWindowAppearing();
396 IMGUI_API
bool IsWindowCollapsed();
397 IMGUI_API
bool IsWindowFocused(ImGuiFocusedFlags flags=0);
398 IMGUI_API
bool IsWindowHovered(ImGuiHoveredFlags flags=0);
400 IMGUI_API
ImVec2 GetWindowPos();
401 IMGUI_API
ImVec2 GetWindowSize();
402 IMGUI_API
float GetWindowWidth();
403 IMGUI_API
float GetWindowHeight();
407 IMGUI_API
void SetNextWindowPos(
const ImVec2& pos, ImGuiCond cond = 0,
const ImVec2& pivot =
ImVec2(0, 0));
408 IMGUI_API
void SetNextWindowSize(
const ImVec2& size, ImGuiCond cond = 0);
409 IMGUI_API
void SetNextWindowSizeConstraints(
const ImVec2& size_min,
const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL,
void* custom_callback_data = NULL);
410 IMGUI_API
void SetNextWindowContentSize(
const ImVec2& size);
411 IMGUI_API
void SetNextWindowCollapsed(
bool collapsed, ImGuiCond cond = 0);
412 IMGUI_API
void SetNextWindowFocus();
413 IMGUI_API
void SetNextWindowScroll(
const ImVec2& scroll);
414 IMGUI_API
void SetNextWindowBgAlpha(
float alpha);
415 IMGUI_API
void SetWindowPos(
const ImVec2& pos, ImGuiCond cond = 0);
416 IMGUI_API
void SetWindowSize(
const ImVec2& size, ImGuiCond cond = 0);
417 IMGUI_API
void SetWindowCollapsed(
bool collapsed, ImGuiCond cond = 0);
418 IMGUI_API
void SetWindowFocus();
419 IMGUI_API
void SetWindowFontScale(
float scale);
420 IMGUI_API
void SetWindowPos(
const char* name,
const ImVec2& pos, ImGuiCond cond = 0);
421 IMGUI_API
void SetWindowSize(
const char* name,
const ImVec2& size, ImGuiCond cond = 0);
422 IMGUI_API
void SetWindowCollapsed(
const char* name,
bool collapsed, ImGuiCond cond = 0);
423 IMGUI_API
void SetWindowFocus(
const char* name);
428 IMGUI_API
float GetScrollX();
429 IMGUI_API
float GetScrollY();
430 IMGUI_API
void SetScrollX(
float scroll_x);
431 IMGUI_API
void SetScrollY(
float scroll_y);
432 IMGUI_API
float GetScrollMaxX();
433 IMGUI_API
float GetScrollMaxY();
434 IMGUI_API
void SetScrollHereX(
float center_x_ratio = 0.5f);
435 IMGUI_API
void SetScrollHereY(
float center_y_ratio = 0.5f);
436 IMGUI_API
void SetScrollFromPosX(
float local_x,
float center_x_ratio = 0.5f);
437 IMGUI_API
void SetScrollFromPosY(
float local_y,
float center_y_ratio = 0.5f);
440 IMGUI_API
void PushFont(
ImFont* font);
441 IMGUI_API
void PopFont();
442 IMGUI_API
void PushStyleColor(ImGuiCol idx, ImU32 col);
443 IMGUI_API
void PushStyleColor(ImGuiCol idx,
const ImVec4& col);
444 IMGUI_API
void PopStyleColor(
int count = 1);
445 IMGUI_API
void PushStyleVar(ImGuiStyleVar idx,
float val);
446 IMGUI_API
void PushStyleVar(ImGuiStyleVar idx,
const ImVec2& val);
447 IMGUI_API
void PushStyleVarX(ImGuiStyleVar idx,
float val_x);
448 IMGUI_API
void PushStyleVarY(ImGuiStyleVar idx,
float val_y);
449 IMGUI_API
void PopStyleVar(
int count = 1);
450 IMGUI_API
void PushItemFlag(ImGuiItemFlags option,
bool enabled);
451 IMGUI_API
void PopItemFlag();
454 IMGUI_API
void PushItemWidth(
float item_width);
455 IMGUI_API
void PopItemWidth();
456 IMGUI_API
void SetNextItemWidth(
float item_width);
457 IMGUI_API
float CalcItemWidth();
458 IMGUI_API
void PushTextWrapPos(
float wrap_local_pos_x = 0.0f);
459 IMGUI_API
void PopTextWrapPos();
463 IMGUI_API
ImFont* GetFont();
464 IMGUI_API
float GetFontSize();
465 IMGUI_API
ImVec2 GetFontTexUvWhitePixel();
466 IMGUI_API ImU32 GetColorU32(ImGuiCol idx,
float alpha_mul = 1.0f);
467 IMGUI_API ImU32 GetColorU32(
const ImVec4& col);
468 IMGUI_API ImU32 GetColorU32(ImU32 col,
float alpha_mul = 1.0f);
469 IMGUI_API
const ImVec4& GetStyleColorVec4(ImGuiCol idx);
481 IMGUI_API
ImVec2 GetCursorScreenPos();
482 IMGUI_API
void SetCursorScreenPos(
const ImVec2& pos);
483 IMGUI_API
ImVec2 GetContentRegionAvail();
484 IMGUI_API
ImVec2 GetCursorPos();
485 IMGUI_API
float GetCursorPosX();
486 IMGUI_API
float GetCursorPosY();
487 IMGUI_API
void SetCursorPos(
const ImVec2& local_pos);
488 IMGUI_API
void SetCursorPosX(
float local_x);
489 IMGUI_API
void SetCursorPosY(
float local_y);
490 IMGUI_API
ImVec2 GetCursorStartPos();
493 IMGUI_API
void Separator();
494 IMGUI_API
void SameLine(
float offset_from_start_x=0.0f,
float spacing=-1.0f);
495 IMGUI_API
void NewLine();
496 IMGUI_API
void Spacing();
497 IMGUI_API
void Dummy(
const ImVec2& size);
498 IMGUI_API
void Indent(
float indent_w = 0.0f);
499 IMGUI_API
void Unindent(
float indent_w = 0.0f);
500 IMGUI_API
void BeginGroup();
501 IMGUI_API
void EndGroup();
502 IMGUI_API
void AlignTextToFramePadding();
503 IMGUI_API
float GetTextLineHeight();
504 IMGUI_API
float GetTextLineHeightWithSpacing();
505 IMGUI_API
float GetFrameHeight();
506 IMGUI_API
float GetFrameHeightWithSpacing();
519 IMGUI_API
void PushID(
const char* str_id);
520 IMGUI_API
void PushID(
const char* str_id_begin,
const char* str_id_end);
521 IMGUI_API
void PushID(
const void* ptr_id);
522 IMGUI_API
void PushID(
int int_id);
523 IMGUI_API
void PopID();
524 IMGUI_API ImGuiID GetID(
const char* str_id);
525 IMGUI_API ImGuiID GetID(
const char* str_id_begin,
const char* str_id_end);
526 IMGUI_API ImGuiID GetID(
const void* ptr_id);
527 IMGUI_API ImGuiID GetID(
int int_id);
530 IMGUI_API
void TextUnformatted(
const char* text,
const char* text_end = NULL);
531 IMGUI_API
void Text(
const char* fmt, ...) IM_FMTARGS(1);
532 IMGUI_API
void TextV(const
char* fmt, va_list args) IM_FMTLIST(1);
533 IMGUI_API
void TextColored(const
ImVec4& col, const
char* fmt, ...) IM_FMTARGS(2);
534 IMGUI_API
void TextColoredV(const
ImVec4& col, const
char* fmt, va_list args) IM_FMTLIST(2);
535 IMGUI_API
void TextDisabled(const
char* fmt, ...) IM_FMTARGS(1);
536 IMGUI_API
void TextDisabledV(const
char* fmt, va_list args) IM_FMTLIST(1);
537 IMGUI_API
void TextWrapped(const
char* fmt, ...) IM_FMTARGS(1);
538 IMGUI_API
void TextWrappedV(const
char* fmt, va_list args) IM_FMTLIST(1);
539 IMGUI_API
void LabelText(const
char* label, const
char* fmt, ...) IM_FMTARGS(2);
540 IMGUI_API
void LabelTextV(const
char* label, const
char* fmt, va_list args) IM_FMTLIST(2);
541 IMGUI_API
void BulletText(const
char* fmt, ...) IM_FMTARGS(1);
542 IMGUI_API
void BulletTextV(const
char* fmt, va_list args) IM_FMTLIST(1);
543 IMGUI_API
void SeparatorText(const
char* label);
548 IMGUI_API
bool Button(const
char* label, const
ImVec2& size =
ImVec2(0, 0));
549 IMGUI_API
bool SmallButton(const
char* label);
550 IMGUI_API
bool InvisibleButton(const
char* str_id, const
ImVec2& size, ImGuiButtonFlags flags = 0);
551 IMGUI_API
bool ArrowButton(const
char* str_id, ImGuiDir dir);
552 IMGUI_API
bool Checkbox(const
char* label,
bool* v);
553 IMGUI_API
bool CheckboxFlags(const
char* label,
int* flags,
int flags_value);
554 IMGUI_API
bool CheckboxFlags(const
char* label,
unsigned int* flags,
unsigned int flags_value);
555 IMGUI_API
bool RadioButton(const
char* label,
bool active);
556 IMGUI_API
bool RadioButton(const
char* label,
int* v,
int v_button);
557 IMGUI_API
void ProgressBar(
float fraction, const
ImVec2& size_arg =
ImVec2(-FLT_MIN, 0), const
char* overlay = NULL);
558 IMGUI_API
void Bullet();
559 IMGUI_API
bool TextLink(const
char* label);
560 IMGUI_API
void TextLinkOpenURL(const
char* label, const
char* url = NULL);
566 IMGUI_API
void Image(ImTextureID user_texture_id, const
ImVec2& image_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));
567 IMGUI_API
bool ImageButton(const
char* str_id, ImTextureID user_texture_id, const
ImVec2& image_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));
572 IMGUI_API
bool BeginCombo(const
char* label, const
char* preview_value, ImGuiComboFlags flags = 0);
573 IMGUI_API
void EndCombo();
574 IMGUI_API
bool Combo(const
char* label,
int* current_item, const
char* const items[],
int items_count,
int popup_max_height_in_items = -1);
575 IMGUI_API
bool Combo(const
char* label,
int* current_item, const
char* items_separated_by_zeros,
int popup_max_height_in_items = -1);
576 IMGUI_API
bool Combo(const
char* label,
int* current_item, const
char* (*getter)(
void* user_data,
int idx),
void* user_data,
int items_count,
int popup_max_height_in_items = -1);
590 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);
591 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);
592 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);
593 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);
594 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);
595 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);
596 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);
597 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);
598 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);
599 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);
600 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);
601 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);
609 IMGUI_API
bool SliderFloat(const
char* label,
float* v,
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
610 IMGUI_API
bool SliderFloat2(const
char* label,
float v[2],
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
611 IMGUI_API
bool SliderFloat3(const
char* label,
float v[3],
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
612 IMGUI_API
bool SliderFloat4(const
char* label,
float v[4],
float v_min,
float v_max, const
char* format = "%.3f", ImGuiSliderFlags flags = 0);
613 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);
614 IMGUI_API
bool SliderInt(const
char* label,
int* v,
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
615 IMGUI_API
bool SliderInt2(const
char* label,
int v[2],
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
616 IMGUI_API
bool SliderInt3(const
char* label,
int v[3],
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
617 IMGUI_API
bool SliderInt4(const
char* label,
int v[4],
int v_min,
int v_max, const
char* format = "%d", ImGuiSliderFlags flags = 0);
618 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);
619 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);
620 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);
621 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);
622 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);
627 IMGUI_API
bool InputText(const
char* label,
char* buf,
size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL,
void* user_data = NULL);
628 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);
629 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);
630 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);
631 IMGUI_API
bool InputFloat2(const
char* label,
float v[2], const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
632 IMGUI_API
bool InputFloat3(const
char* label,
float v[3], const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
633 IMGUI_API
bool InputFloat4(const
char* label,
float v[4], const
char* format = "%.3f", ImGuiInputTextFlags flags = 0);
634 IMGUI_API
bool InputInt(const
char* label,
int* v,
int step = 1,
int step_fast = 100, ImGuiInputTextFlags flags = 0);
635 IMGUI_API
bool InputInt2(const
char* label,
int v[2], ImGuiInputTextFlags flags = 0);
636 IMGUI_API
bool InputInt3(const
char* label,
int v[3], ImGuiInputTextFlags flags = 0);
637 IMGUI_API
bool InputInt4(const
char* label,
int v[4], ImGuiInputTextFlags flags = 0);
638 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);
639 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);
640 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);
645 IMGUI_API
bool ColorEdit3(const
char* label,
float col[3], ImGuiColorEditFlags flags = 0);
646 IMGUI_API
bool ColorEdit4(const
char* label,
float col[4], ImGuiColorEditFlags flags = 0);
647 IMGUI_API
bool ColorPicker3(const
char* label,
float col[3], ImGuiColorEditFlags flags = 0);
648 IMGUI_API
bool ColorPicker4(const
char* label,
float col[4], ImGuiColorEditFlags flags = 0, const
float* ref_col = NULL);
649 IMGUI_API
bool ColorButton(const
char* desc_id, const
ImVec4& col, ImGuiColorEditFlags flags = 0, const
ImVec2& size =
ImVec2(0, 0));
650 IMGUI_API
void SetColorEditOptions(ImGuiColorEditFlags flags);
654 IMGUI_API
bool TreeNode(const
char* label);
655 IMGUI_API
bool TreeNode(const
char* str_id, const
char* fmt, ...) IM_FMTARGS(2);
656 IMGUI_API
bool TreeNode(const
void* ptr_id, const
char* fmt, ...) IM_FMTARGS(2);
657 IMGUI_API
bool TreeNodeV(const
char* str_id, const
char* fmt, va_list args) IM_FMTLIST(2);
658 IMGUI_API
bool TreeNodeV(const
void* ptr_id, const
char* fmt, va_list args) IM_FMTLIST(2);
659 IMGUI_API
bool TreeNodeEx(const
char* label, ImGuiTreeNodeFlags flags = 0);
660 IMGUI_API
bool TreeNodeEx(const
char* str_id, ImGuiTreeNodeFlags flags, const
char* fmt, ...) IM_FMTARGS(3);
661 IMGUI_API
bool TreeNodeEx(const
void* ptr_id, ImGuiTreeNodeFlags flags, const
char* fmt, ...) IM_FMTARGS(3);
662 IMGUI_API
bool TreeNodeExV(const
char* str_id, ImGuiTreeNodeFlags flags, const
char* fmt, va_list args) IM_FMTLIST(3);
663 IMGUI_API
bool TreeNodeExV(const
void* ptr_id, ImGuiTreeNodeFlags flags, const
char* fmt, va_list args) IM_FMTLIST(3);
664 IMGUI_API
void TreePush(const
char* str_id);
665 IMGUI_API
void TreePush(const
void* ptr_id);
666 IMGUI_API
void TreePop();
667 IMGUI_API
float GetTreeNodeToLabelSpacing();
668 IMGUI_API
bool CollapsingHeader(const
char* label, ImGuiTreeNodeFlags flags = 0);
669 IMGUI_API
bool CollapsingHeader(const
char* label,
bool* p_visible, ImGuiTreeNodeFlags flags = 0);
670 IMGUI_API
void SetNextItemOpen(
bool is_open, ImGuiCond cond = 0);
671 IMGUI_API
void SetNextItemStorageID(ImGuiID storage_id);
676 IMGUI_API
bool Selectable(const
char* label,
bool selected = false, ImGuiSelectableFlags flags = 0, const
ImVec2& size =
ImVec2(0, 0));
677 IMGUI_API
bool Selectable(const
char* label,
bool* p_selected, ImGuiSelectableFlags flags = 0, const
ImVec2& size =
ImVec2(0, 0));
686 IMGUI_API
ImGuiMultiSelectIO* BeginMultiSelect(ImGuiMultiSelectFlags flags,
int selection_size = -1,
int items_count = -1);
688 IMGUI_API
void SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data);
689 IMGUI_API
bool IsItemToggledSelection();
697 IMGUI_API
bool BeginListBox(const
char* label, const
ImVec2& size =
ImVec2(0, 0));
698 IMGUI_API
void EndListBox();
699 IMGUI_API
bool ListBox(const
char* label,
int* current_item, const
char* const items[],
int items_count,
int height_in_items = -1);
700 IMGUI_API
bool ListBox(const
char* label,
int* current_item, const
char* (*getter)(
void* user_data,
int idx),
void* user_data,
int items_count,
int height_in_items = -1);
704 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));
705 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));
706 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));
707 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));
711 IMGUI_API
void Value(const
char* prefix,
bool b);
712 IMGUI_API
void Value(const
char* prefix,
int v);
713 IMGUI_API
void Value(const
char* prefix,
unsigned int v);
714 IMGUI_API
void Value(const
char* prefix,
float v, const
char* float_format = NULL);
721 IMGUI_API
bool BeginMenuBar();
722 IMGUI_API
void EndMenuBar();
723 IMGUI_API
bool BeginMainMenuBar();
724 IMGUI_API
void EndMainMenuBar();
725 IMGUI_API
bool BeginMenu(const
char* label,
bool enabled = true);
726 IMGUI_API
void EndMenu();
727 IMGUI_API
bool MenuItem(const
char* label, const
char* shortcut = NULL,
bool selected = false,
bool enabled = true);
728 IMGUI_API
bool MenuItem(const
char* label, const
char* shortcut,
bool* p_selected,
bool enabled = true);
734 IMGUI_API
bool BeginTooltip();
735 IMGUI_API
void EndTooltip();
736 IMGUI_API
void SetTooltip(const
char* fmt, ...) IM_FMTARGS(1);
737 IMGUI_API
void SetTooltipV(const
char* fmt, va_list args) IM_FMTLIST(1);
743 IMGUI_API
bool BeginItemTooltip();
744 IMGUI_API
void SetItemTooltip(const
char* fmt, ...) IM_FMTARGS(1);
745 IMGUI_API
void SetItemTooltipV(const
char* fmt, va_list args) IM_FMTLIST(1);
757 IMGUI_API
bool BeginPopup(const
char* str_id, ImGuiWindowFlags flags = 0);
758 IMGUI_API
bool BeginPopupModal(const
char* name,
bool* p_open = NULL, ImGuiWindowFlags flags = 0);
759 IMGUI_API
void EndPopup();
769 IMGUI_API
void OpenPopup(const
char* str_id, ImGuiPopupFlags popup_flags = 0);
770 IMGUI_API
void OpenPopup(ImGuiID
id, ImGuiPopupFlags popup_flags = 0);
771 IMGUI_API
void OpenPopupOnItemClick(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
772 IMGUI_API
void CloseCurrentPopup();
779 IMGUI_API
bool BeginPopupContextItem(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
780 IMGUI_API
bool BeginPopupContextWindow(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
781 IMGUI_API
bool BeginPopupContextVoid(const
char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
787 IMGUI_API
bool IsPopupOpen(const
char* str_id, ImGuiPopupFlags flags = 0);
810 IMGUI_API
bool BeginTable(const
char* str_id,
int columns, ImGuiTableFlags flags = 0, const
ImVec2& outer_size =
ImVec2(0.0f, 0.0f),
float inner_width = 0.0f);
811 IMGUI_API
void EndTable();
812 IMGUI_API
void TableNextRow(ImGuiTableRowFlags row_flags = 0,
float min_row_height = 0.0f);
813 IMGUI_API
bool TableNextColumn();
814 IMGUI_API
bool TableSetColumnIndex(
int column_n);
824 IMGUI_API
void TableSetupColumn(const
char* label, ImGuiTableColumnFlags flags = 0,
float init_width_or_weight = 0.0f, ImGuiID user_id = 0);
825 IMGUI_API
void TableSetupScrollFreeze(
int cols,
int rows);
826 IMGUI_API
void TableHeader(const
char* label);
827 IMGUI_API
void TableHeadersRow();
828 IMGUI_API
void TableAngledHeadersRow();
837 IMGUI_API
int TableGetColumnCount();
838 IMGUI_API
int TableGetColumnIndex();
839 IMGUI_API
int TableGetRowIndex();
840 IMGUI_API const
char* TableGetColumnName(
int column_n = -1);
841 IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(
int column_n = -1);
842 IMGUI_API
void TableSetColumnEnabled(
int column_n,
bool v);
843 IMGUI_API
int TableGetHoveredColumn();
844 IMGUI_API
void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color,
int column_n = -1);
848 IMGUI_API
void Columns(
int count = 1, const
char*
id = NULL,
bool borders = true);
849 IMGUI_API
void NextColumn();
850 IMGUI_API
int GetColumnIndex();
851 IMGUI_API
float GetColumnWidth(
int column_index = -1);
852 IMGUI_API
void SetColumnWidth(
int column_index,
float width);
853 IMGUI_API
float GetColumnOffset(
int column_index = -1);
854 IMGUI_API
void SetColumnOffset(
int column_index,
float offset_x);
855 IMGUI_API
int GetColumnsCount();
859 IMGUI_API
bool BeginTabBar(const
char* str_id, ImGuiTabBarFlags flags = 0);
860 IMGUI_API
void EndTabBar();
861 IMGUI_API
bool BeginTabItem(const
char* label,
bool* p_open = NULL, ImGuiTabItemFlags flags = 0);
862 IMGUI_API
void EndTabItem();
863 IMGUI_API
bool TabItemButton(const
char* label, ImGuiTabItemFlags flags = 0);
864 IMGUI_API
void SetTabItemClosed(const
char* tab_or_docked_window_label);
868 IMGUI_API
void LogToTTY(
int auto_open_depth = -1);
869 IMGUI_API
void LogToFile(
int auto_open_depth = -1, const
char* filename = NULL);
870 IMGUI_API
void LogToClipboard(
int auto_open_depth = -1);
871 IMGUI_API
void LogFinish();
872 IMGUI_API
void LogButtons();
873 IMGUI_API
void LogText(const
char* fmt, ...) IM_FMTARGS(1);
874 IMGUI_API
void LogTextV(const
char* fmt, va_list args) IM_FMTLIST(1);
881 IMGUI_API
bool BeginDragDropSource(ImGuiDragDropFlags flags = 0);
882 IMGUI_API
bool SetDragDropPayload(const
char* type, const
void* data,
size_t sz, ImGuiCond cond = 0);
883 IMGUI_API
void EndDragDropSource();
884 IMGUI_API
bool BeginDragDropTarget();
885 IMGUI_API const
ImGuiPayload* AcceptDragDropPayload(const
char* type, ImGuiDragDropFlags flags = 0);
886 IMGUI_API
void EndDragDropTarget();
894 IMGUI_API
void BeginDisabled(
bool disabled = true);
895 IMGUI_API
void EndDisabled();
899 IMGUI_API
void PushClipRect(const
ImVec2& clip_rect_min, const
ImVec2& clip_rect_max,
bool intersect_with_current_clip_rect);
900 IMGUI_API
void PopClipRect();
903 IMGUI_API
void SetItemDefaultFocus();
904 IMGUI_API
void SetKeyboardFocusHere(
int offset = 0);
907 IMGUI_API
void SetNavCursorVisible(
bool visible);
910 IMGUI_API
void SetNextItemAllowOverlap();
915 IMGUI_API
bool IsItemHovered(ImGuiHoveredFlags flags = 0);
916 IMGUI_API
bool IsItemActive();
917 IMGUI_API
bool IsItemFocused();
918 IMGUI_API
bool IsItemClicked(ImGuiMouseButton mouse_button = 0);
919 IMGUI_API
bool IsItemVisible();
920 IMGUI_API
bool IsItemEdited();
921 IMGUI_API
bool IsItemActivated();
922 IMGUI_API
bool IsItemDeactivated();
923 IMGUI_API
bool IsItemDeactivatedAfterEdit();
924 IMGUI_API
bool IsItemToggledOpen();
925 IMGUI_API
bool IsAnyItemHovered();
926 IMGUI_API
bool IsAnyItemActive();
927 IMGUI_API
bool IsAnyItemFocused();
928 IMGUI_API ImGuiID GetItemID();
929 IMGUI_API
ImVec2 GetItemRectMin();
930 IMGUI_API
ImVec2 GetItemRectMax();
931 IMGUI_API
ImVec2 GetItemRectSize();
940 IMGUI_API
ImDrawList* GetBackgroundDrawList();
941 IMGUI_API
ImDrawList* GetForegroundDrawList();
944 IMGUI_API
bool IsRectVisible(const
ImVec2& size);
945 IMGUI_API
bool IsRectVisible(const
ImVec2& rect_min, const
ImVec2& rect_max);
946 IMGUI_API
double GetTime();
947 IMGUI_API
int GetFrameCount();
949 IMGUI_API const
char* GetStyleColorName(ImGuiCol idx);
954 IMGUI_API
ImVec2 CalcTextSize(const
char* text, const
char* text_end = NULL,
bool hide_text_after_double_hash = false,
float wrap_width = -1.0f);
957 IMGUI_API
ImVec4 ColorConvertU32ToFloat4(ImU32 in);
958 IMGUI_API ImU32 ColorConvertFloat4ToU32(const
ImVec4& in);
959 IMGUI_API
void ColorConvertRGBtoHSV(
float r,
float g,
float b,
float& out_h,
float& out_s,
float& out_v);
960 IMGUI_API
void ColorConvertHSVtoRGB(
float h,
float s,
float v,
float& out_r,
float& out_g,
float& out_b);
967 IMGUI_API
bool IsKeyDown(ImGuiKey key);
968 IMGUI_API
bool IsKeyPressed(ImGuiKey key,
bool repeat = true);
969 IMGUI_API
bool IsKeyReleased(ImGuiKey key);
970 IMGUI_API
bool IsKeyChordPressed(ImGuiKeyChord key_chord);
971 IMGUI_API
int GetKeyPressedAmount(ImGuiKey key,
float repeat_delay,
float rate);
972 IMGUI_API const
char* GetKeyName(ImGuiKey key);
973 IMGUI_API
void SetNextFrameWantCaptureKeyboard(
bool want_capture_keyboard);
990 IMGUI_API
bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0);
991 IMGUI_API
void SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0);
999 IMGUI_API
void SetItemKeyOwner(ImGuiKey key);
1005 IMGUI_API
bool IsMouseDown(ImGuiMouseButton button);
1006 IMGUI_API
bool IsMouseClicked(ImGuiMouseButton button,
bool repeat = false);
1007 IMGUI_API
bool IsMouseReleased(ImGuiMouseButton button);
1008 IMGUI_API
bool IsMouseDoubleClicked(ImGuiMouseButton button);
1009 IMGUI_API
int GetMouseClickedCount(ImGuiMouseButton button);
1010 IMGUI_API
bool IsMouseHoveringRect(const
ImVec2& r_min, const
ImVec2& r_max,
bool clip = true);
1011 IMGUI_API
bool IsMousePosValid(const
ImVec2* mouse_pos = NULL);
1012 IMGUI_API
bool IsAnyMouseDown();
1013 IMGUI_API
ImVec2 GetMousePos();
1014 IMGUI_API
ImVec2 GetMousePosOnOpeningCurrentPopup();
1015 IMGUI_API
bool IsMouseDragging(ImGuiMouseButton button,
float lock_threshold = -1.0f);
1016 IMGUI_API
ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0,
float lock_threshold = -1.0f);
1017 IMGUI_API
void ResetMouseDragDelta(ImGuiMouseButton button = 0);
1018 IMGUI_API ImGuiMouseCursor GetMouseCursor();
1019 IMGUI_API
void SetMouseCursor(ImGuiMouseCursor cursor_type);
1020 IMGUI_API
void SetNextFrameWantCaptureMouse(
bool want_capture_mouse);
1024 IMGUI_API const
char* GetClipboardText();
1025 IMGUI_API
void SetClipboardText(const
char* text);
1031 IMGUI_API
void LoadIniSettingsFromDisk(const
char* ini_filename);
1032 IMGUI_API
void LoadIniSettingsFromMemory(const
char* ini_data,
size_t ini_size=0);
1033 IMGUI_API
void SaveIniSettingsToDisk(const
char* ini_filename);
1034 IMGUI_API const
char* SaveIniSettingsToMemory(
size_t* out_ini_size = NULL);
1038 IMGUI_API
void DebugTextEncoding(const
char* text);
1039 IMGUI_API
void DebugFlashStyleColor(ImGuiCol idx);
1040 IMGUI_API
void DebugStartItemPicker();
1041 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);
1042#ifndef IMGUI_DISABLE_DEBUG_TOOLS
1043 IMGUI_API
void DebugLog(
const char* fmt, ...) IM_FMTARGS(1);
1044 IMGUI_API
void DebugLogV(const
char* fmt, va_list args) IM_FMTLIST(1);
1051 IMGUI_API
void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func,
void* user_data = NULL);
1052 IMGUI_API
void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func,
void** p_user_data);
1053 IMGUI_API
void* MemAlloc(
size_t size);
1054 IMGUI_API
void MemFree(
void* ptr);
1064enum ImGuiWindowFlags_
1066 ImGuiWindowFlags_None = 0,
1067 ImGuiWindowFlags_NoTitleBar = 1 << 0,
1068 ImGuiWindowFlags_NoResize = 1 << 1,
1069 ImGuiWindowFlags_NoMove = 1 << 2,
1070 ImGuiWindowFlags_NoScrollbar = 1 << 3,
1071 ImGuiWindowFlags_NoScrollWithMouse = 1 << 4,
1072 ImGuiWindowFlags_NoCollapse = 1 << 5,
1073 ImGuiWindowFlags_AlwaysAutoResize = 1 << 6,
1074 ImGuiWindowFlags_NoBackground = 1 << 7,
1075 ImGuiWindowFlags_NoSavedSettings = 1 << 8,
1076 ImGuiWindowFlags_NoMouseInputs = 1 << 9,
1077 ImGuiWindowFlags_MenuBar = 1 << 10,
1078 ImGuiWindowFlags_HorizontalScrollbar = 1 << 11,
1079 ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12,
1080 ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13,
1081 ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14,
1082 ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15,
1083 ImGuiWindowFlags_NoNavInputs = 1 << 16,
1084 ImGuiWindowFlags_NoNavFocus = 1 << 17,
1085 ImGuiWindowFlags_UnsavedDocument = 1 << 18,
1086 ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
1087 ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse,
1088 ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
1091 ImGuiWindowFlags_ChildWindow = 1 << 24,
1092 ImGuiWindowFlags_Tooltip = 1 << 25,
1093 ImGuiWindowFlags_Popup = 1 << 26,
1094 ImGuiWindowFlags_Modal = 1 << 27,
1095 ImGuiWindowFlags_ChildMenu = 1 << 28,
1098#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1099 ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 30,
1100 ImGuiWindowFlags_NavFlattened = 1 << 31,
1113enum ImGuiChildFlags_
1115 ImGuiChildFlags_None = 0,
1116 ImGuiChildFlags_Borders = 1 << 0,
1117 ImGuiChildFlags_AlwaysUseWindowPadding = 1 << 1,
1118 ImGuiChildFlags_ResizeX = 1 << 2,
1119 ImGuiChildFlags_ResizeY = 1 << 3,
1120 ImGuiChildFlags_AutoResizeX = 1 << 4,
1121 ImGuiChildFlags_AutoResizeY = 1 << 5,
1122 ImGuiChildFlags_AlwaysAutoResize = 1 << 6,
1123 ImGuiChildFlags_FrameStyle = 1 << 7,
1124 ImGuiChildFlags_NavFlattened = 1 << 8,
1127#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1128 ImGuiChildFlags_Border = ImGuiChildFlags_Borders,
1136 ImGuiItemFlags_None = 0,
1137 ImGuiItemFlags_NoTabStop = 1 << 0,
1138 ImGuiItemFlags_NoNav = 1 << 1,
1139 ImGuiItemFlags_NoNavDefaultFocus = 1 << 2,
1140 ImGuiItemFlags_ButtonRepeat = 1 << 3,
1141 ImGuiItemFlags_AutoClosePopups = 1 << 4,
1142 ImGuiItemFlags_AllowDuplicateId = 1 << 5,
1147enum ImGuiInputTextFlags_
1150 ImGuiInputTextFlags_None = 0,
1151 ImGuiInputTextFlags_CharsDecimal = 1 << 0,
1152 ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
1153 ImGuiInputTextFlags_CharsScientific = 1 << 2,
1154 ImGuiInputTextFlags_CharsUppercase = 1 << 3,
1155 ImGuiInputTextFlags_CharsNoBlank = 1 << 4,
1158 ImGuiInputTextFlags_AllowTabInput = 1 << 5,
1159 ImGuiInputTextFlags_EnterReturnsTrue = 1 << 6,
1160 ImGuiInputTextFlags_EscapeClearsAll = 1 << 7,
1161 ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 8,
1164 ImGuiInputTextFlags_ReadOnly = 1 << 9,
1165 ImGuiInputTextFlags_Password = 1 << 10,
1166 ImGuiInputTextFlags_AlwaysOverwrite = 1 << 11,
1167 ImGuiInputTextFlags_AutoSelectAll = 1 << 12,
1168 ImGuiInputTextFlags_ParseEmptyRefVal = 1 << 13,
1169 ImGuiInputTextFlags_DisplayEmptyRefVal = 1 << 14,
1170 ImGuiInputTextFlags_NoHorizontalScroll = 1 << 15,
1171 ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
1174 ImGuiInputTextFlags_CallbackCompletion = 1 << 17,
1175 ImGuiInputTextFlags_CallbackHistory = 1 << 18,
1176 ImGuiInputTextFlags_CallbackAlways = 1 << 19,
1177 ImGuiInputTextFlags_CallbackCharFilter = 1 << 20,
1178 ImGuiInputTextFlags_CallbackResize = 1 << 21,
1179 ImGuiInputTextFlags_CallbackEdit = 1 << 22,
1186enum ImGuiTreeNodeFlags_
1188 ImGuiTreeNodeFlags_None = 0,
1189 ImGuiTreeNodeFlags_Selected = 1 << 0,
1190 ImGuiTreeNodeFlags_Framed = 1 << 1,
1191 ImGuiTreeNodeFlags_AllowOverlap = 1 << 2,
1192 ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3,
1193 ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4,
1194 ImGuiTreeNodeFlags_DefaultOpen = 1 << 5,
1195 ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6,
1196 ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7,
1197 ImGuiTreeNodeFlags_Leaf = 1 << 8,
1198 ImGuiTreeNodeFlags_Bullet = 1 << 9,
1199 ImGuiTreeNodeFlags_FramePadding = 1 << 10,
1200 ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11,
1201 ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12,
1202 ImGuiTreeNodeFlags_SpanTextWidth = 1 << 13,
1203 ImGuiTreeNodeFlags_SpanAllColumns = 1 << 14,
1204 ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 15,
1206 ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog,
1208#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1209 ImGuiTreeNodeFlags_AllowItemOverlap = ImGuiTreeNodeFlags_AllowOverlap,
1221enum ImGuiPopupFlags_
1223 ImGuiPopupFlags_None = 0,
1224 ImGuiPopupFlags_MouseButtonLeft = 0,
1225 ImGuiPopupFlags_MouseButtonRight = 1,
1226 ImGuiPopupFlags_MouseButtonMiddle = 2,
1227 ImGuiPopupFlags_MouseButtonMask_ = 0x1F,
1228 ImGuiPopupFlags_MouseButtonDefault_ = 1,
1229 ImGuiPopupFlags_NoReopen = 1 << 5,
1231 ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 7,
1232 ImGuiPopupFlags_NoOpenOverItems = 1 << 8,
1233 ImGuiPopupFlags_AnyPopupId = 1 << 10,
1234 ImGuiPopupFlags_AnyPopupLevel = 1 << 11,
1235 ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel,
1239enum ImGuiSelectableFlags_
1241 ImGuiSelectableFlags_None = 0,
1242 ImGuiSelectableFlags_NoAutoClosePopups = 1 << 0,
1243 ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
1244 ImGuiSelectableFlags_AllowDoubleClick = 1 << 2,
1245 ImGuiSelectableFlags_Disabled = 1 << 3,
1246 ImGuiSelectableFlags_AllowOverlap = 1 << 4,
1247 ImGuiSelectableFlags_Highlight = 1 << 5,
1249#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1250 ImGuiSelectableFlags_DontClosePopups = ImGuiSelectableFlags_NoAutoClosePopups,
1251 ImGuiSelectableFlags_AllowItemOverlap = ImGuiSelectableFlags_AllowOverlap,
1256enum ImGuiComboFlags_
1258 ImGuiComboFlags_None = 0,
1259 ImGuiComboFlags_PopupAlignLeft = 1 << 0,
1260 ImGuiComboFlags_HeightSmall = 1 << 1,
1261 ImGuiComboFlags_HeightRegular = 1 << 2,
1262 ImGuiComboFlags_HeightLarge = 1 << 3,
1263 ImGuiComboFlags_HeightLargest = 1 << 4,
1264 ImGuiComboFlags_NoArrowButton = 1 << 5,
1265 ImGuiComboFlags_NoPreview = 1 << 6,
1266 ImGuiComboFlags_WidthFitPreview = 1 << 7,
1267 ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest,
1271enum ImGuiTabBarFlags_
1273 ImGuiTabBarFlags_None = 0,
1274 ImGuiTabBarFlags_Reorderable = 1 << 0,
1275 ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1,
1276 ImGuiTabBarFlags_TabListPopupButton = 1 << 2,
1277 ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3,
1278 ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4,
1279 ImGuiTabBarFlags_NoTooltip = 1 << 5,
1280 ImGuiTabBarFlags_DrawSelectedOverline = 1 << 6,
1281 ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 7,
1282 ImGuiTabBarFlags_FittingPolicyScroll = 1 << 8,
1283 ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll,
1284 ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown,
1288enum ImGuiTabItemFlags_
1290 ImGuiTabItemFlags_None = 0,
1291 ImGuiTabItemFlags_UnsavedDocument = 1 << 0,
1292 ImGuiTabItemFlags_SetSelected = 1 << 1,
1293 ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2,
1294 ImGuiTabItemFlags_NoPushId = 1 << 3,
1295 ImGuiTabItemFlags_NoTooltip = 1 << 4,
1296 ImGuiTabItemFlags_NoReorder = 1 << 5,
1297 ImGuiTabItemFlags_Leading = 1 << 6,
1298 ImGuiTabItemFlags_Trailing = 1 << 7,
1299 ImGuiTabItemFlags_NoAssumedClosure = 1 << 8,
1303enum ImGuiFocusedFlags_
1305 ImGuiFocusedFlags_None = 0,
1306 ImGuiFocusedFlags_ChildWindows = 1 << 0,
1307 ImGuiFocusedFlags_RootWindow = 1 << 1,
1308 ImGuiFocusedFlags_AnyWindow = 1 << 2,
1309 ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3,
1311 ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows,
1317enum ImGuiHoveredFlags_
1319 ImGuiHoveredFlags_None = 0,
1320 ImGuiHoveredFlags_ChildWindows = 1 << 0,
1321 ImGuiHoveredFlags_RootWindow = 1 << 1,
1322 ImGuiHoveredFlags_AnyWindow = 1 << 2,
1323 ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3,
1325 ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5,
1327 ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7,
1328 ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8,
1329 ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9,
1330 ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10,
1331 ImGuiHoveredFlags_NoNavOverride = 1 << 11,
1332 ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow,
1333 ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped,
1334 ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows,
1342 ImGuiHoveredFlags_ForTooltip = 1 << 12,
1347 ImGuiHoveredFlags_Stationary = 1 << 13,
1348 ImGuiHoveredFlags_DelayNone = 1 << 14,
1349 ImGuiHoveredFlags_DelayShort = 1 << 15,
1350 ImGuiHoveredFlags_DelayNormal = 1 << 16,
1351 ImGuiHoveredFlags_NoSharedDelay = 1 << 17,
1355enum ImGuiDragDropFlags_
1357 ImGuiDragDropFlags_None = 0,
1359 ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0,
1360 ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1,
1361 ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2,
1362 ImGuiDragDropFlags_SourceAllowNullID = 1 << 3,
1363 ImGuiDragDropFlags_SourceExtern = 1 << 4,
1364 ImGuiDragDropFlags_PayloadAutoExpire = 1 << 5,
1365 ImGuiDragDropFlags_PayloadNoCrossContext = 1 << 6,
1366 ImGuiDragDropFlags_PayloadNoCrossProcess = 1 << 7,
1368 ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10,
1369 ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11,
1370 ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12,
1371 ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect,
1373#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1374 ImGuiDragDropFlags_SourceAutoExpirePayload = ImGuiDragDropFlags_PayloadAutoExpire,
1379#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F"
1380#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F"
1393 ImGuiDataType_Float,
1394 ImGuiDataType_Double,
1411enum ImGuiSortDirection : ImU8
1413 ImGuiSortDirection_None = 0,
1414 ImGuiSortDirection_Ascending = 1,
1415 ImGuiSortDirection_Descending = 2
1419#if defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_OBSOLETE_KEYIO)
1420#define IMGUI_DISABLE_OBSOLETE_KEYIO
1435 ImGuiKey_RightArrow,
1448 ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper,
1449 ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper,
1451 ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9,
1452 ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J,
1453 ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T,
1454 ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z,
1455 ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6,
1456 ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12,
1457 ImGuiKey_F13, ImGuiKey_F14, ImGuiKey_F15, ImGuiKey_F16, ImGuiKey_F17, ImGuiKey_F18,
1458 ImGuiKey_F19, ImGuiKey_F20, ImGuiKey_F21, ImGuiKey_F22, ImGuiKey_F23, ImGuiKey_F24,
1459 ImGuiKey_Apostrophe,
1466 ImGuiKey_LeftBracket,
1468 ImGuiKey_RightBracket,
1469 ImGuiKey_GraveAccent,
1471 ImGuiKey_ScrollLock,
1473 ImGuiKey_PrintScreen,
1475 ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4,
1476 ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9,
1477 ImGuiKey_KeypadDecimal,
1478 ImGuiKey_KeypadDivide,
1479 ImGuiKey_KeypadMultiply,
1480 ImGuiKey_KeypadSubtract,
1482 ImGuiKey_KeypadEnter,
1483 ImGuiKey_KeypadEqual,
1485 ImGuiKey_AppForward,
1489 ImGuiKey_GamepadStart,
1490 ImGuiKey_GamepadBack,
1491 ImGuiKey_GamepadFaceLeft,
1492 ImGuiKey_GamepadFaceRight,
1493 ImGuiKey_GamepadFaceUp,
1494 ImGuiKey_GamepadFaceDown,
1495 ImGuiKey_GamepadDpadLeft,
1496 ImGuiKey_GamepadDpadRight,
1497 ImGuiKey_GamepadDpadUp,
1498 ImGuiKey_GamepadDpadDown,
1505 ImGuiKey_GamepadLStickLeft,
1506 ImGuiKey_GamepadLStickRight,
1507 ImGuiKey_GamepadLStickUp,
1508 ImGuiKey_GamepadLStickDown,
1509 ImGuiKey_GamepadRStickLeft,
1510 ImGuiKey_GamepadRStickRight,
1511 ImGuiKey_GamepadRStickUp,
1512 ImGuiKey_GamepadRStickDown,
1516 ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY,
1519 ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper,
1532 ImGuiMod_Ctrl = 1 << 12,
1533 ImGuiMod_Shift = 1 << 13,
1534 ImGuiMod_Alt = 1 << 14,
1535 ImGuiMod_Super = 1 << 15,
1536 ImGuiMod_Mask_ = 0xF000,
1541 ImGuiKey_NamedKey_BEGIN = 512,
1542 ImGuiKey_NamedKey_END = ImGuiKey_COUNT,
1543 ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN,
1544#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO
1545 ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT,
1546 ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN,
1548 ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT,
1549 ImGuiKey_KeysData_OFFSET = 0,
1552#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1553 ImGuiMod_Shortcut = ImGuiMod_Ctrl,
1554 ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super,
1562enum ImGuiInputFlags_
1564 ImGuiInputFlags_None = 0,
1565 ImGuiInputFlags_Repeat = 1 << 0,
1570 ImGuiInputFlags_RouteActive = 1 << 10,
1571 ImGuiInputFlags_RouteFocused = 1 << 11,
1572 ImGuiInputFlags_RouteGlobal = 1 << 12,
1573 ImGuiInputFlags_RouteAlways = 1 << 13,
1575 ImGuiInputFlags_RouteOverFocused = 1 << 14,
1576 ImGuiInputFlags_RouteOverActive = 1 << 15,
1577 ImGuiInputFlags_RouteUnlessBgFocused = 1 << 16,
1578 ImGuiInputFlags_RouteFromRootWindow = 1 << 17,
1581 ImGuiInputFlags_Tooltip = 1 << 18,
1584#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
1590 ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown,
1591 ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast,
1592 ImGuiNavInput_COUNT,
1597enum ImGuiConfigFlags_
1599 ImGuiConfigFlags_None = 0,
1600 ImGuiConfigFlags_NavEnableKeyboard = 1 << 0,
1601 ImGuiConfigFlags_NavEnableGamepad = 1 << 1,
1602 ImGuiConfigFlags_NoMouse = 1 << 4,
1603 ImGuiConfigFlags_NoMouseCursorChange = 1 << 5,
1604 ImGuiConfigFlags_NoKeyboard = 1 << 6,
1607 ImGuiConfigFlags_IsSRGB = 1 << 20,
1608 ImGuiConfigFlags_IsTouchScreen = 1 << 21,
1610#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1611 ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2,
1612 ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3,
1617enum ImGuiBackendFlags_
1619 ImGuiBackendFlags_None = 0,
1620 ImGuiBackendFlags_HasGamepad = 1 << 0,
1621 ImGuiBackendFlags_HasMouseCursors = 1 << 1,
1622 ImGuiBackendFlags_HasSetMousePos = 1 << 2,
1623 ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3,
1630 ImGuiCol_TextDisabled,
1635 ImGuiCol_BorderShadow,
1637 ImGuiCol_FrameBgHovered,
1638 ImGuiCol_FrameBgActive,
1640 ImGuiCol_TitleBgActive,
1641 ImGuiCol_TitleBgCollapsed,
1643 ImGuiCol_ScrollbarBg,
1644 ImGuiCol_ScrollbarGrab,
1645 ImGuiCol_ScrollbarGrabHovered,
1646 ImGuiCol_ScrollbarGrabActive,
1648 ImGuiCol_SliderGrab,
1649 ImGuiCol_SliderGrabActive,
1651 ImGuiCol_ButtonHovered,
1652 ImGuiCol_ButtonActive,
1654 ImGuiCol_HeaderHovered,
1655 ImGuiCol_HeaderActive,
1657 ImGuiCol_SeparatorHovered,
1658 ImGuiCol_SeparatorActive,
1659 ImGuiCol_ResizeGrip,
1660 ImGuiCol_ResizeGripHovered,
1661 ImGuiCol_ResizeGripActive,
1662 ImGuiCol_TabHovered,
1664 ImGuiCol_TabSelected,
1665 ImGuiCol_TabSelectedOverline,
1667 ImGuiCol_TabDimmedSelected,
1668 ImGuiCol_TabDimmedSelectedOverline,
1670 ImGuiCol_PlotLinesHovered,
1671 ImGuiCol_PlotHistogram,
1672 ImGuiCol_PlotHistogramHovered,
1673 ImGuiCol_TableHeaderBg,
1674 ImGuiCol_TableBorderStrong,
1675 ImGuiCol_TableBorderLight,
1676 ImGuiCol_TableRowBg,
1677 ImGuiCol_TableRowBgAlt,
1679 ImGuiCol_TextSelectedBg,
1680 ImGuiCol_DragDropTarget,
1682 ImGuiCol_NavWindowingHighlight,
1683 ImGuiCol_NavWindowingDimBg,
1684 ImGuiCol_ModalWindowDimBg,
1687#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
1688 ImGuiCol_TabActive = ImGuiCol_TabSelected,
1689 ImGuiCol_TabUnfocused = ImGuiCol_TabDimmed,
1690 ImGuiCol_TabUnfocusedActive = ImGuiCol_TabDimmedSelected,
1691 ImGuiCol_NavHighlight = ImGuiCol_NavCursor,
1706 ImGuiStyleVar_Alpha,
1707 ImGuiStyleVar_DisabledAlpha,
1708 ImGuiStyleVar_WindowPadding,
1709 ImGuiStyleVar_WindowRounding,
1710 ImGuiStyleVar_WindowBorderSize,
1711 ImGuiStyleVar_WindowMinSize,
1712 ImGuiStyleVar_WindowTitleAlign,
1713 ImGuiStyleVar_ChildRounding,
1714 ImGuiStyleVar_ChildBorderSize,
1715 ImGuiStyleVar_PopupRounding,
1716 ImGuiStyleVar_PopupBorderSize,
1717 ImGuiStyleVar_FramePadding,
1718 ImGuiStyleVar_FrameRounding,
1719 ImGuiStyleVar_FrameBorderSize,
1720 ImGuiStyleVar_ItemSpacing,
1721 ImGuiStyleVar_ItemInnerSpacing,
1722 ImGuiStyleVar_IndentSpacing,
1723 ImGuiStyleVar_CellPadding,
1724 ImGuiStyleVar_ScrollbarSize,
1725 ImGuiStyleVar_ScrollbarRounding,
1726 ImGuiStyleVar_GrabMinSize,
1727 ImGuiStyleVar_GrabRounding,
1728 ImGuiStyleVar_TabRounding,
1729 ImGuiStyleVar_TabBorderSize,
1730 ImGuiStyleVar_TabBarBorderSize,
1731 ImGuiStyleVar_TabBarOverlineSize,
1732 ImGuiStyleVar_TableAngledHeadersAngle,
1733 ImGuiStyleVar_TableAngledHeadersTextAlign,
1734 ImGuiStyleVar_ButtonTextAlign,
1735 ImGuiStyleVar_SelectableTextAlign,
1736 ImGuiStyleVar_SeparatorTextBorderSize,
1737 ImGuiStyleVar_SeparatorTextAlign,
1738 ImGuiStyleVar_SeparatorTextPadding,
1743enum ImGuiButtonFlags_
1745 ImGuiButtonFlags_None = 0,
1746 ImGuiButtonFlags_MouseButtonLeft = 1 << 0,
1747 ImGuiButtonFlags_MouseButtonRight = 1 << 1,
1748 ImGuiButtonFlags_MouseButtonMiddle = 1 << 2,
1749 ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle,
1750 ImGuiButtonFlags_EnableNav = 1 << 3,
1754enum ImGuiColorEditFlags_
1756 ImGuiColorEditFlags_None = 0,
1757 ImGuiColorEditFlags_NoAlpha = 1 << 1,
1758 ImGuiColorEditFlags_NoPicker = 1 << 2,
1759 ImGuiColorEditFlags_NoOptions = 1 << 3,
1760 ImGuiColorEditFlags_NoSmallPreview = 1 << 4,
1761 ImGuiColorEditFlags_NoInputs = 1 << 5,
1762 ImGuiColorEditFlags_NoTooltip = 1 << 6,
1763 ImGuiColorEditFlags_NoLabel = 1 << 7,
1764 ImGuiColorEditFlags_NoSidePreview = 1 << 8,
1765 ImGuiColorEditFlags_NoDragDrop = 1 << 9,
1766 ImGuiColorEditFlags_NoBorder = 1 << 10,
1769 ImGuiColorEditFlags_AlphaBar = 1 << 16,
1770 ImGuiColorEditFlags_AlphaPreview = 1 << 17,
1771 ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18,
1772 ImGuiColorEditFlags_HDR = 1 << 19,
1773 ImGuiColorEditFlags_DisplayRGB = 1 << 20,
1774 ImGuiColorEditFlags_DisplayHSV = 1 << 21,
1775 ImGuiColorEditFlags_DisplayHex = 1 << 22,
1776 ImGuiColorEditFlags_Uint8 = 1 << 23,
1777 ImGuiColorEditFlags_Float = 1 << 24,
1778 ImGuiColorEditFlags_PickerHueBar = 1 << 25,
1779 ImGuiColorEditFlags_PickerHueWheel = 1 << 26,
1780 ImGuiColorEditFlags_InputRGB = 1 << 27,
1781 ImGuiColorEditFlags_InputHSV = 1 << 28,
1785 ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar,
1788 ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex,
1789 ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float,
1790 ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar,
1791 ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV,
1800enum ImGuiSliderFlags_
1802 ImGuiSliderFlags_None = 0,
1803 ImGuiSliderFlags_Logarithmic = 1 << 5,
1804 ImGuiSliderFlags_NoRoundToFormat = 1 << 6,
1805 ImGuiSliderFlags_NoInput = 1 << 7,
1806 ImGuiSliderFlags_WrapAround = 1 << 8,
1807 ImGuiSliderFlags_ClampOnInput = 1 << 9,
1808 ImGuiSliderFlags_ClampZeroRange = 1 << 10,
1809 ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange,
1810 ImGuiSliderFlags_InvalidMask_ = 0x7000000F,
1815enum ImGuiMouseButton_
1817 ImGuiMouseButton_Left = 0,
1818 ImGuiMouseButton_Right = 1,
1819 ImGuiMouseButton_Middle = 2,
1820 ImGuiMouseButton_COUNT = 5
1825enum ImGuiMouseCursor_
1827 ImGuiMouseCursor_None = -1,
1828 ImGuiMouseCursor_Arrow = 0,
1829 ImGuiMouseCursor_TextInput,
1830 ImGuiMouseCursor_ResizeAll,
1831 ImGuiMouseCursor_ResizeNS,
1832 ImGuiMouseCursor_ResizeEW,
1833 ImGuiMouseCursor_ResizeNESW,
1834 ImGuiMouseCursor_ResizeNWSE,
1835 ImGuiMouseCursor_Hand,
1836 ImGuiMouseCursor_NotAllowed,
1837 ImGuiMouseCursor_COUNT
1844enum ImGuiMouseSource :
int
1846 ImGuiMouseSource_Mouse = 0,
1847 ImGuiMouseSource_TouchScreen,
1848 ImGuiMouseSource_Pen,
1849 ImGuiMouseSource_COUNT
1858 ImGuiCond_Always = 1 << 0,
1859 ImGuiCond_Once = 1 << 1,
1860 ImGuiCond_FirstUseEver = 1 << 2,
1861 ImGuiCond_Appearing = 1 << 3,
1890enum ImGuiTableFlags_
1893 ImGuiTableFlags_None = 0,
1894 ImGuiTableFlags_Resizable = 1 << 0,
1895 ImGuiTableFlags_Reorderable = 1 << 1,
1896 ImGuiTableFlags_Hideable = 1 << 2,
1897 ImGuiTableFlags_Sortable = 1 << 3,
1898 ImGuiTableFlags_NoSavedSettings = 1 << 4,
1899 ImGuiTableFlags_ContextMenuInBody = 1 << 5,
1901 ImGuiTableFlags_RowBg = 1 << 6,
1902 ImGuiTableFlags_BordersInnerH = 1 << 7,
1903 ImGuiTableFlags_BordersOuterH = 1 << 8,
1904 ImGuiTableFlags_BordersInnerV = 1 << 9,
1905 ImGuiTableFlags_BordersOuterV = 1 << 10,
1906 ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH,
1907 ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV,
1908 ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH,
1909 ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH,
1910 ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter,
1911 ImGuiTableFlags_NoBordersInBody = 1 << 11,
1912 ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12,
1914 ImGuiTableFlags_SizingFixedFit = 1 << 13,
1915 ImGuiTableFlags_SizingFixedSame = 2 << 13,
1916 ImGuiTableFlags_SizingStretchProp = 3 << 13,
1917 ImGuiTableFlags_SizingStretchSame = 4 << 13,
1919 ImGuiTableFlags_NoHostExtendX = 1 << 16,
1920 ImGuiTableFlags_NoHostExtendY = 1 << 17,
1921 ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18,
1922 ImGuiTableFlags_PreciseWidths = 1 << 19,
1924 ImGuiTableFlags_NoClip = 1 << 20,
1926 ImGuiTableFlags_PadOuterX = 1 << 21,
1927 ImGuiTableFlags_NoPadOuterX = 1 << 22,
1928 ImGuiTableFlags_NoPadInnerX = 1 << 23,
1930 ImGuiTableFlags_ScrollX = 1 << 24,
1931 ImGuiTableFlags_ScrollY = 1 << 25,
1933 ImGuiTableFlags_SortMulti = 1 << 26,
1934 ImGuiTableFlags_SortTristate = 1 << 27,
1936 ImGuiTableFlags_HighlightHoveredColumn = 1 << 28,
1939 ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame,
1943enum ImGuiTableColumnFlags_
1946 ImGuiTableColumnFlags_None = 0,
1947 ImGuiTableColumnFlags_Disabled = 1 << 0,
1948 ImGuiTableColumnFlags_DefaultHide = 1 << 1,
1949 ImGuiTableColumnFlags_DefaultSort = 1 << 2,
1950 ImGuiTableColumnFlags_WidthStretch = 1 << 3,
1951 ImGuiTableColumnFlags_WidthFixed = 1 << 4,
1952 ImGuiTableColumnFlags_NoResize = 1 << 5,
1953 ImGuiTableColumnFlags_NoReorder = 1 << 6,
1954 ImGuiTableColumnFlags_NoHide = 1 << 7,
1955 ImGuiTableColumnFlags_NoClip = 1 << 8,
1956 ImGuiTableColumnFlags_NoSort = 1 << 9,
1957 ImGuiTableColumnFlags_NoSortAscending = 1 << 10,
1958 ImGuiTableColumnFlags_NoSortDescending = 1 << 11,
1959 ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12,
1960 ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13,
1961 ImGuiTableColumnFlags_PreferSortAscending = 1 << 14,
1962 ImGuiTableColumnFlags_PreferSortDescending = 1 << 15,
1963 ImGuiTableColumnFlags_IndentEnable = 1 << 16,
1964 ImGuiTableColumnFlags_IndentDisable = 1 << 17,
1965 ImGuiTableColumnFlags_AngledHeader = 1 << 18,
1968 ImGuiTableColumnFlags_IsEnabled = 1 << 24,
1969 ImGuiTableColumnFlags_IsVisible = 1 << 25,
1970 ImGuiTableColumnFlags_IsSorted = 1 << 26,
1971 ImGuiTableColumnFlags_IsHovered = 1 << 27,
1974 ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed,
1975 ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable,
1976 ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered,
1977 ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30,
1981enum ImGuiTableRowFlags_
1983 ImGuiTableRowFlags_None = 0,
1984 ImGuiTableRowFlags_Headers = 1 << 0,
1996enum ImGuiTableBgTarget_
1998 ImGuiTableBgTarget_None = 0,
1999 ImGuiTableBgTarget_RowBg0 = 1,
2000 ImGuiTableBgTarget_RowBg1 = 2,
2001 ImGuiTableBgTarget_CellBg = 3,
2020 ImGuiID ColumnUserID;
2023 ImGuiSortDirection SortDirection;
2036#ifndef IMGUI_DISABLE_DEBUG_TOOLS
2037#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__)
2039#define IMGUI_DEBUG_LOG(...) ((void)0)
2049inline void*
operator new(size_t,
ImNewWrapper,
void* ptr) {
return ptr; }
2050inline void operator delete(
void*,
ImNewWrapper,
void*) {}
2051#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE)
2052#define IM_FREE(_PTR) ImGui::MemFree(_PTR)
2053#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR)
2054#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE
2055template<
typename T>
void IM_DELETE(T* p) {
if (p) { p->~T(); ImGui::MemFree(p); } }
2068IM_MSVC_RUNTIME_CHECKS_OFF
2077 typedef T value_type;
2078 typedef value_type* iterator;
2079 typedef const value_type* const_iterator;
2082 inline ImVector() { Size = Capacity = 0; Data = NULL; }
2083 inline ImVector(
const ImVector<T>& src) { Size = Capacity = 0; Data = NULL; operator=(src); }
2084 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; }
2085 inline ~ImVector() {
if (Data) IM_FREE(Data); }
2087 inline void clear() {
if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } }
2088 inline void clear_delete() {
for (
int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); }
2089 inline void clear_destruct() {
for (
int n = 0; n < Size; n++) Data[n].~T(); clear(); }
2091 inline bool empty()
const {
return Size == 0; }
2092 inline int size()
const {
return Size; }
2093 inline int size_in_bytes()
const {
return Size * (int)
sizeof(T); }
2094 inline int max_size()
const {
return 0x7FFFFFFF / (int)
sizeof(T); }
2095 inline int capacity()
const {
return Capacity; }
2096 inline T& operator[](
int i) { IM_ASSERT(i >= 0 && i < Size);
return Data[i]; }
2097 inline const T& operator[](
int i)
const { IM_ASSERT(i >= 0 && i < Size);
return Data[i]; }
2099 inline T* begin() {
return Data; }
2100 inline const T* begin()
const {
return Data; }
2101 inline T* end() {
return Data + Size; }
2102 inline const T* end()
const {
return Data + Size; }
2103 inline T& front() { IM_ASSERT(Size > 0);
return Data[0]; }
2104 inline const T& front()
const { IM_ASSERT(Size > 0);
return Data[0]; }
2105 inline T& back() { IM_ASSERT(Size > 0);
return Data[Size - 1]; }
2106 inline const T& back()
const { IM_ASSERT(Size > 0);
return Data[Size - 1]; }
2107 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; }
2109 inline int _grow_capacity(
int sz)
const {
int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8;
return new_capacity > sz ? new_capacity : sz; }
2110 inline void resize(
int new_size) {
if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; }
2111 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; }
2112 inline void shrink(
int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; }
2113 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; }
2114 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; }
2117 inline void push_back(
const T& v) {
if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v,
sizeof(v)); Size++; }
2118 inline void pop_back() { IM_ASSERT(Size > 0); Size--; }
2119 inline void push_front(
const T& v) {
if (Size == 0) push_back(v);
else insert(Data, v); }
2120 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; }
2121 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; }
2122 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; }
2123 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; }
2124 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; }
2125 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; }
2126 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; }
2127 inline int find_index(
const T& v)
const {
const T* data_end = Data + Size;
const T* it = find(v);
if (it == data_end)
return -1;
const ptrdiff_t off = it - Data;
return (
int)off; }
2128 inline bool find_erase(
const T& v) {
const T* it = find(v);
if (it < Data + Size) { erase(it);
return true; }
return false; }
2129 inline bool find_erase_unsorted(
const T& v) {
const T* it = find(v);
if (it < Data + Size) { erase_unsorted(it);
return true; }
return false; }
2130 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; }
2132IM_MSVC_RUNTIME_CHECKS_RESTORE
2145 float DisabledAlpha;
2147 float WindowRounding;
2148 float WindowBorderSize;
2151 ImGuiDir WindowMenuButtonPosition;
2152 float ChildRounding;
2153 float ChildBorderSize;
2154 float PopupRounding;
2155 float PopupBorderSize;
2157 float FrameRounding;
2158 float FrameBorderSize;
2162 ImVec2 TouchExtraPadding;
2163 float IndentSpacing;
2164 float ColumnsMinSpacing;
2165 float ScrollbarSize;
2166 float ScrollbarRounding;
2169 float LogSliderDeadzone;
2171 float TabBorderSize;
2172 float TabMinWidthForCloseButton;
2173 float TabBarBorderSize;
2174 float TabBarOverlineSize;
2175 float TableAngledHeadersAngle;
2176 ImVec2 TableAngledHeadersTextAlign;
2177 ImGuiDir ColorButtonPosition;
2179 ImVec2 SelectableTextAlign;
2180 float SeparatorTextBorderSize;
2181 ImVec2 SeparatorTextAlign;
2182 ImVec2 SeparatorTextPadding;
2183 ImVec2 DisplayWindowPadding;
2184 ImVec2 DisplaySafeAreaPadding;
2185 float MouseCursorScale;
2186 bool AntiAliasedLines;
2187 bool AntiAliasedLinesUseTex;
2188 bool AntiAliasedFill;
2189 float CurveTessellationTol;
2190 float CircleTessellationMaxError;
2191 ImVec4 Colors[ImGuiCol_COUNT];
2195 float HoverStationaryDelay;
2196 float HoverDelayShort;
2197 float HoverDelayNormal;
2198 ImGuiHoveredFlags HoverFlagsForTooltipMouse;
2199 ImGuiHoveredFlags HoverFlagsForTooltipNav;
2202 IMGUI_API
void ScaleAllSizes(
float scale_factor);
2223 float DownDurationPrev;
2233 ImGuiConfigFlags ConfigFlags;
2234 ImGuiBackendFlags BackendFlags;
2237 float IniSavingRate;
2238 const char* IniFilename;
2239 const char* LogFilename;
2244 float FontGlobalScale;
2245 bool FontAllowUserScaling;
2247 ImVec2 DisplayFramebufferScale;
2250 bool ConfigNavSwapGamepadButtons;
2251 bool ConfigNavMoveSetMousePos;
2252 bool ConfigNavCaptureKeyboard;
2253 bool ConfigNavEscapeClearFocusItem;
2254 bool ConfigNavEscapeClearFocusWindow;
2255 bool ConfigNavCursorVisibleAuto;
2256 bool ConfigNavCursorVisibleAlways;
2260 bool MouseDrawCursor;
2261 bool ConfigMacOSXBehaviors;
2262 bool ConfigInputTrickleEventQueue;
2263 bool ConfigInputTextCursorBlink;
2264 bool ConfigInputTextEnterKeepActive;
2265 bool ConfigDragClickToInputText;
2266 bool ConfigWindowsResizeFromEdges;
2267 bool ConfigWindowsMoveFromTitleBarOnly;
2268 bool ConfigScrollbarScrollByPage;
2269 float ConfigMemoryCompactTimer;
2273 float MouseDoubleClickTime;
2274 float MouseDoubleClickMaxDist;
2275 float MouseDragThreshold;
2276 float KeyRepeatDelay;
2277 float KeyRepeatRate;
2297 bool ConfigErrorRecovery;
2298 bool ConfigErrorRecoveryEnableAssert;
2299 bool ConfigErrorRecoveryEnableDebugLog;
2300 bool ConfigErrorRecoveryEnableTooltip;
2306 bool ConfigDebugIsDebuggerPresent;
2312 bool ConfigDebugHighlightIdConflicts;
2318 bool ConfigDebugBeginReturnValueOnce;
2319 bool ConfigDebugBeginReturnValueLoop;
2324 bool ConfigDebugIgnoreFocusLoss;
2327 bool ConfigDebugIniSettings;
2335 const char* BackendPlatformName;
2336 const char* BackendRendererName;
2337 void* BackendPlatformUserData;
2338 void* BackendRendererUserData;
2339 void* BackendLanguageUserData;
2346 IMGUI_API
void AddKeyEvent(ImGuiKey key,
bool down);
2347 IMGUI_API
void AddKeyAnalogEvent(ImGuiKey key,
bool down,
float v);
2348 IMGUI_API
void AddMousePosEvent(
float x,
float y);
2349 IMGUI_API
void AddMouseButtonEvent(
int button,
bool down);
2350 IMGUI_API
void AddMouseWheelEvent(
float wheel_x,
float wheel_y);
2351 IMGUI_API
void AddMouseSourceEvent(ImGuiMouseSource source);
2352 IMGUI_API
void AddFocusEvent(
bool focused);
2353 IMGUI_API
void AddInputCharacter(
unsigned int c);
2354 IMGUI_API
void AddInputCharacterUTF16(ImWchar16 c);
2355 IMGUI_API
void AddInputCharactersUTF8(
const char* str);
2357 IMGUI_API
void SetKeyEventNativeData(ImGuiKey key,
int native_keycode,
int native_scancode,
int native_legacy_index = -1);
2358 IMGUI_API
void SetAppAcceptingEvents(
bool accepting_events);
2359 IMGUI_API
void ClearEventsQueue();
2360 IMGUI_API
void ClearInputKeys();
2361 IMGUI_API
void ClearInputMouse();
2362#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2363 IMGUI_API
void ClearInputCharacters();
2372 bool WantCaptureMouse;
2373 bool WantCaptureKeyboard;
2375 bool WantSetMousePos;
2376 bool WantSaveIniSettings;
2380 int MetricsRenderVertices;
2381 int MetricsRenderIndices;
2382 int MetricsRenderWindows;
2383 int MetricsActiveWindows;
2399 ImGuiMouseSource MouseSource;
2406 ImGuiKeyChord KeyMods;
2408 bool WantCaptureMouseUnlessPopupClose;
2410 ImVec2 MouseClickedPos[5];
2411 double MouseClickedTime[5];
2412 bool MouseClicked[5];
2413 bool MouseDoubleClicked[5];
2414 ImU16 MouseClickedCount[5];
2415 ImU16 MouseClickedLastCount[5];
2416 bool MouseReleased[5];
2417 bool MouseDownOwned[5];
2418 bool MouseDownOwnedUnlessPopupClose[5];
2419 bool MouseWheelRequestAxisSwap;
2420 bool MouseCtrlLeftAsRightClick;
2421 float MouseDownDuration[5];
2422 float MouseDownDurationPrev[5];
2423 float MouseDragMaxDistanceSqr[5];
2426 bool AppAcceptingEvents;
2427 ImS8 BackendUsingLegacyKeyArrays;
2428 bool BackendUsingLegacyNavInputArray;
2429 ImWchar16 InputQueueSurrogate;
2435#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO
2436 int KeyMap[ImGuiKey_COUNT];
2437 bool KeysDown[ImGuiKey_COUNT];
2438 float NavInputs[ImGuiNavInput_COUNT];
2444#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2445 const char* (*GetClipboardTextFn)(
void* user_data);
2446 void (*SetClipboardTextFn)(
void* user_data,
const char* text);
2447 void* ClipboardUserData;
2469 ImGuiInputTextFlags EventFlag;
2470 ImGuiInputTextFlags Flags;
2491 IMGUI_API
void DeleteChars(
int pos,
int bytes_count);
2492 IMGUI_API
void InsertChars(
int pos,
const char* text,
const char* text_end = NULL);
2493 void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; }
2494 void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; }
2495 bool HasSelection()
const {
return SelectionStart != SelectionEnd; }
2517 ImGuiID SourceParentId;
2519 char DataType[32 + 1];
2524 void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0,
sizeof(DataType)); DataFrameCount = -1; Preview = Delivery =
false; }
2525 bool IsDataType(
const char* type)
const {
return DataFrameCount != -1 && strcmp(type, DataType) == 0; }
2526 bool IsPreview()
const {
return Preview; }
2527 bool IsDelivery()
const {
return Delivery; }
2535#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD
2536#ifdef IMGUI_USE_WCHAR32
2537#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF
2539#define IM_UNICODE_CODEPOINT_MAX 0xFFFF
2547 mutable int RefFrame;
2548 operator bool()
const {
int current_frame = ImGui::GetFrameCount();
if (RefFrame == current_frame)
return false; RefFrame = current_frame;
return true; }
2555 IMGUI_API
bool Draw(
const char* label =
"Filter (inc,-exc)",
float width = 0.0f);
2556 IMGUI_API
bool PassFilter(
const char* text,
const char* text_end = NULL)
const;
2557 IMGUI_API
void Build();
2558 void Clear() { InputBuf[0] = 0; Build(); }
2559 bool IsActive()
const {
return !Filters.empty(); }
2568 ImGuiTextRange(
const char* _b,
const char* _e) { b = _b; e = _e; }
2569 bool empty()
const {
return b == e; }
2582 IMGUI_API
static char EmptyString[1];
2585 inline char operator[](
int i)
const { IM_ASSERT(Buf.Data != NULL);
return Buf.Data[i]; }
2586 const char* begin()
const {
return Buf.Data ? &Buf.front() : EmptyString; }
2587 const char* end()
const {
return Buf.Data ? &Buf.back() : EmptyString; }
2588 int size()
const {
return Buf.Size ? Buf.Size - 1 : 0; }
2589 bool empty()
const {
return Buf.Size <= 1; }
2590 void clear() { Buf.clear(); }
2591 void reserve(
int capacity) { Buf.reserve(capacity); }
2592 const char* c_str()
const {
return Buf.Data ? Buf.Data : EmptyString; }
2593 IMGUI_API
void append(
const char* str,
const char* str_end = NULL);
2594 IMGUI_API
void appendf(
const char* fmt, ...) IM_FMTARGS(2);
2595 IMGUI_API
void appendfv(
const char* fmt, va_list args) IM_FMTLIST(2);
2602 union {
int val_i;
float val_f;
void* val_p; };
2624 void Clear() { Data.clear(); }
2625 IMGUI_API
int GetInt(ImGuiID key,
int default_val = 0)
const;
2626 IMGUI_API
void SetInt(ImGuiID key,
int val);
2627 IMGUI_API
bool GetBool(ImGuiID key,
bool default_val =
false)
const;
2628 IMGUI_API
void SetBool(ImGuiID key,
bool val);
2629 IMGUI_API
float GetFloat(ImGuiID key,
float default_val = 0.0f)
const;
2630 IMGUI_API
void SetFloat(ImGuiID key,
float val);
2631 IMGUI_API
void* GetVoidPtr(ImGuiID key)
const;
2632 IMGUI_API
void SetVoidPtr(ImGuiID key,
void* val);
2638 IMGUI_API
int* GetIntRef(ImGuiID key,
int default_val = 0);
2639 IMGUI_API
bool* GetBoolRef(ImGuiID key,
bool default_val =
false);
2640 IMGUI_API
float* GetFloatRef(ImGuiID key,
float default_val = 0.0f);
2641 IMGUI_API
void** GetVoidPtrRef(ImGuiID key,
void* default_val = NULL);
2644 IMGUI_API
void BuildSortByKey();
2646 IMGUI_API
void SetAllInt(
int val);
2648#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2681 double StartSeekOffsetY;
2688 IMGUI_API
void Begin(
int items_count,
float items_height = -1.0f);
2689 IMGUI_API
void End();
2690 IMGUI_API
bool Step();
2694 inline void IncludeItemByIndex(
int item_index) { IncludeItemsByIndex(item_index, item_index + 1); }
2695 IMGUI_API
void IncludeItemsByIndex(
int item_begin,
int item_end);
2700 IMGUI_API
void SeekCursorForItem(
int item_index);
2702#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
2703 inline void IncludeRangeByIndices(
int item_begin,
int item_end) { IncludeItemsByIndex(item_begin, item_end); }
2704 inline void ForceDisplayRangeByIndices(
int item_begin,
int item_end) { IncludeItemsByIndex(item_begin, item_end); }
2713#ifdef IMGUI_DEFINE_MATH_OPERATORS
2714#define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED
2715IM_MSVC_RUNTIME_CHECKS_OFF
2716static inline ImVec2 operator*(
const ImVec2& lhs,
const float rhs) {
return ImVec2(lhs.x * rhs, lhs.y * rhs); }
2717static inline ImVec2 operator/(
const ImVec2& lhs,
const float rhs) {
return ImVec2(lhs.x / rhs, lhs.y / rhs); }
2718static inline ImVec2 operator+(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); }
2719static inline ImVec2 operator-(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); }
2720static inline ImVec2 operator*(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); }
2721static inline ImVec2 operator/(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); }
2723static inline ImVec2& operator*=(
ImVec2& lhs,
const float rhs) { lhs.x *= rhs; lhs.y *= rhs;
return lhs; }
2724static inline ImVec2& operator/=(
ImVec2& lhs,
const float rhs) { lhs.x /= rhs; lhs.y /= rhs;
return lhs; }
2725static inline ImVec2& operator+=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y;
return lhs; }
2726static inline ImVec2& operator-=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y;
return lhs; }
2727static inline ImVec2& operator*=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y;
return lhs; }
2728static inline ImVec2& operator/=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y;
return lhs; }
2729static inline bool operator==(
const ImVec2& lhs,
const ImVec2& rhs) {
return lhs.x == rhs.x && lhs.y == rhs.y; }
2730static inline bool operator!=(
const ImVec2& lhs,
const ImVec2& rhs) {
return lhs.x != rhs.x || lhs.y != rhs.y; }
2731static inline ImVec4 operator+(
const ImVec4& lhs,
const ImVec4& rhs) {
return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); }
2732static inline ImVec4 operator-(
const ImVec4& lhs,
const ImVec4& rhs) {
return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); }
2733static inline ImVec4 operator*(
const ImVec4& lhs,
const ImVec4& rhs) {
return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); }
2734static inline bool operator==(
const ImVec4& lhs,
const ImVec4& rhs) {
return lhs.x == rhs.x && lhs.y == rhs.y && lhs.z == rhs.z && lhs.w == rhs.w; }
2735static inline bool operator!=(
const ImVec4& lhs,
const ImVec4& rhs) {
return lhs.x != rhs.x || lhs.y != rhs.y || lhs.z != rhs.z || lhs.w != rhs.w; }
2736IM_MSVC_RUNTIME_CHECKS_RESTORE
2741#ifndef IM_COL32_R_SHIFT
2742#ifdef IMGUI_USE_BGRA_PACKED_COLOR
2743#define IM_COL32_R_SHIFT 16
2744#define IM_COL32_G_SHIFT 8
2745#define IM_COL32_B_SHIFT 0
2746#define IM_COL32_A_SHIFT 24
2747#define IM_COL32_A_MASK 0xFF000000
2749#define IM_COL32_R_SHIFT 0
2750#define IM_COL32_G_SHIFT 8
2751#define IM_COL32_B_SHIFT 16
2752#define IM_COL32_A_SHIFT 24
2753#define IM_COL32_A_MASK 0xFF000000
2756#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))
2757#define IM_COL32_WHITE IM_COL32(255,255,255,255)
2758#define IM_COL32_BLACK IM_COL32(0,0,0,255)
2759#define IM_COL32_BLACK_TRANS IM_COL32(0,0,0,0)
2770 constexpr ImColor(
float r,
float g,
float b,
float a = 1.0f) : Value(r, g, b, a) { }
2772 constexpr ImColor(
int r,
int g,
int b,
int a = 255) : Value((
float)r * (1.0f / 255.0f), (
float)g * (1.0f / 255.0f), (
float)b * (1.0f / 255.0f), (
float)a* (1.0f / 255.0f)) {}
2773 constexpr ImColor(ImU32 rgba) : Value((
float)((rgba >> IM_COL32_R_SHIFT) & 0xFF) * (1.0f / 255.0f), (
float)((rgba >> IM_COL32_G_SHIFT) & 0xFF) * (1.0f / 255.0f), (
float)((rgba >> IM_COL32_B_SHIFT) & 0xFF) * (1.0f / 255.0f), (
float)((rgba >> IM_COL32_A_SHIFT) & 0xFF) * (1.0f / 255.0f)) {}
2774 inline operator ImU32()
const {
return ImGui::ColorConvertFloat4ToU32(Value); }
2775 inline operator ImVec4()
const {
return Value; }
2778 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; }
2779 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); }
2823enum ImGuiMultiSelectFlags_
2825 ImGuiMultiSelectFlags_None = 0,
2826 ImGuiMultiSelectFlags_SingleSelect = 1 << 0,
2827 ImGuiMultiSelectFlags_NoSelectAll = 1 << 1,
2828 ImGuiMultiSelectFlags_NoRangeSelect = 1 << 2,
2829 ImGuiMultiSelectFlags_NoAutoSelect = 1 << 3,
2830 ImGuiMultiSelectFlags_NoAutoClear = 1 << 4,
2831 ImGuiMultiSelectFlags_NoAutoClearOnReselect = 1 << 5,
2832 ImGuiMultiSelectFlags_BoxSelect1d = 1 << 6,
2833 ImGuiMultiSelectFlags_BoxSelect2d = 1 << 7,
2834 ImGuiMultiSelectFlags_BoxSelectNoScroll = 1 << 8,
2835 ImGuiMultiSelectFlags_ClearOnEscape = 1 << 9,
2836 ImGuiMultiSelectFlags_ClearOnClickVoid = 1 << 10,
2837 ImGuiMultiSelectFlags_ScopeWindow = 1 << 11,
2838 ImGuiMultiSelectFlags_ScopeRect = 1 << 12,
2839 ImGuiMultiSelectFlags_SelectOnClick = 1 << 13,
2840 ImGuiMultiSelectFlags_SelectOnClickRelease = 1 << 14,
2842 ImGuiMultiSelectFlags_NavWrapX = 1 << 16,
2854 ImGuiSelectionUserData RangeSrcItem;
2855 ImGuiSelectionUserData NavIdItem;
2862enum ImGuiSelectionRequestType
2864 ImGuiSelectionRequestType_None = 0,
2865 ImGuiSelectionRequestType_SetAll,
2866 ImGuiSelectionRequestType_SetRange,
2873 ImGuiSelectionRequestType Type;
2875 ImS8 RangeDirection;
2876 ImGuiSelectionUserData RangeFirstItem;
2877 ImGuiSelectionUserData RangeLastItem;
2903 int _SelectionOrder;
2909 IMGUI_API
bool Contains(ImGuiID
id)
const;
2910 IMGUI_API
void Clear();
2912 IMGUI_API
void SetItemSelected(ImGuiID
id,
bool selected);
2913 IMGUI_API
bool GetNextSelectedItem(
void** opaque_it, ImGuiID* out_id);
2914 inline ImGuiID GetStorageIdFromIndex(
int idx) {
return AdapterIndexToStorageId(
this, idx); }
2936#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX
2937#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63)
2947#ifndef ImDrawCallback
2955#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-8)
2965 ImTextureID TextureId;
2966 unsigned int VtxOffset;
2967 unsigned int IdxOffset;
2968 unsigned int ElemCount;
2969 ImDrawCallback UserCallback;
2970 void* UserCallbackData;
2971 int UserCallbackDataSize;
2972 int UserCallbackDataOffset;
2974 ImDrawCmd() { memset(
this, 0,
sizeof(*
this)); }
2977 inline ImTextureID GetTexID()
const {
return TextureId; }
2981#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT
2993IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT;
3000 ImTextureID TextureId;
3001 unsigned int VtxOffset;
3022 inline void Clear() { _Current = 0; _Count = 1; }
3023 IMGUI_API
void ClearFreeMemory();
3024 IMGUI_API
void Split(
ImDrawList* draw_list,
int count);
3026 IMGUI_API
void SetCurrentChannel(
ImDrawList* draw_list,
int channel_idx);
3033 ImDrawFlags_None = 0,
3034 ImDrawFlags_Closed = 1 << 0,
3035 ImDrawFlags_RoundCornersTopLeft = 1 << 4,
3036 ImDrawFlags_RoundCornersTopRight = 1 << 5,
3037 ImDrawFlags_RoundCornersBottomLeft = 1 << 6,
3038 ImDrawFlags_RoundCornersBottomRight = 1 << 7,
3039 ImDrawFlags_RoundCornersNone = 1 << 8,
3040 ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
3041 ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
3042 ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
3043 ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight,
3044 ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
3045 ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll,
3046 ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone,
3051enum ImDrawListFlags_
3053 ImDrawListFlags_None = 0,
3054 ImDrawListFlags_AntiAliasedLines = 1 << 0,
3055 ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1,
3056 ImDrawListFlags_AntiAliasedFill = 1 << 2,
3057 ImDrawListFlags_AllowVtxOffset = 1 << 3,
3075 ImDrawListFlags Flags;
3078 unsigned int _VtxCurrentIdx;
3081 ImDrawIdx* _IdxWritePtr;
3089 const char* _OwnerName;
3095 IMGUI_API
void PushClipRect(
const ImVec2& clip_rect_min,
const ImVec2& clip_rect_max,
bool intersect_with_current_clip_rect =
false);
3096 IMGUI_API
void PushClipRectFullScreen();
3097 IMGUI_API
void PopClipRect();
3098 IMGUI_API
void PushTextureID(ImTextureID texture_id);
3099 IMGUI_API
void PopTextureID();
3100 inline ImVec2 GetClipRectMin()
const {
const ImVec4& cr = _ClipRectStack.back();
return ImVec2(cr.x, cr.y); }
3101 inline ImVec2 GetClipRectMax()
const {
const ImVec4& cr = _ClipRectStack.back();
return ImVec2(cr.z, cr.w); }
3110 IMGUI_API
void AddLine(
const ImVec2& p1,
const ImVec2& p2, ImU32 col,
float thickness = 1.0f);
3111 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);
3112 IMGUI_API
void AddRectFilled(
const ImVec2& p_min,
const ImVec2& p_max, ImU32 col,
float rounding = 0.0f, ImDrawFlags flags = 0);
3113 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);
3114 IMGUI_API
void AddQuad(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness = 1.0f);
3116 IMGUI_API
void AddTriangle(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col,
float thickness = 1.0f);
3117 IMGUI_API
void AddTriangleFilled(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col);
3118 IMGUI_API
void AddCircle(
const ImVec2& center,
float radius, ImU32 col,
int num_segments = 0,
float thickness = 1.0f);
3119 IMGUI_API
void AddCircleFilled(
const ImVec2& center,
float radius, ImU32 col,
int num_segments = 0);
3120 IMGUI_API
void AddNgon(
const ImVec2& center,
float radius, ImU32 col,
int num_segments,
float thickness = 1.0f);
3121 IMGUI_API
void AddNgonFilled(
const ImVec2& center,
float radius, ImU32 col,
int num_segments);
3122 IMGUI_API
void AddEllipse(
const ImVec2& center,
const ImVec2& radius, ImU32 col,
float rot = 0.0f,
int num_segments = 0,
float thickness = 1.0f);
3123 IMGUI_API
void AddEllipseFilled(
const ImVec2& center,
const ImVec2& radius, ImU32 col,
float rot = 0.0f,
int num_segments = 0);
3124 IMGUI_API
void AddText(
const ImVec2& pos, ImU32 col,
const char* text_begin,
const char* text_end = NULL);
3125 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);
3126 IMGUI_API
void AddBezierCubic(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness,
int num_segments = 0);
3127 IMGUI_API
void AddBezierQuadratic(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col,
float thickness,
int num_segments = 0);
3132 IMGUI_API
void AddPolyline(
const ImVec2* points,
int num_points, ImU32 col, ImDrawFlags flags,
float thickness);
3133 IMGUI_API
void AddConvexPolyFilled(
const ImVec2* points,
int num_points, ImU32 col);
3134 IMGUI_API
void AddConcavePolyFilled(
const ImVec2* points,
int num_points, ImU32 col);
3140 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);
3141 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);
3142 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);
3147 inline void PathClear() { _Path.Size = 0; }
3148 inline void PathLineTo(
const ImVec2& pos) { _Path.push_back(pos); }
3149 inline void PathLineToMergeDuplicate(
const ImVec2& pos) {
if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); }
3150 inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3151 inline void PathFillConcave(ImU32 col) { AddConcavePolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3152 inline void PathStroke(ImU32 col, ImDrawFlags flags = 0,
float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; }
3153 IMGUI_API
void PathArcTo(
const ImVec2& center,
float radius,
float a_min,
float a_max,
int num_segments = 0);
3154 IMGUI_API
void PathArcToFast(
const ImVec2& center,
float radius,
int a_min_of_12,
int a_max_of_12);
3155 IMGUI_API
void PathEllipticalArcTo(
const ImVec2& center,
const ImVec2& radius,
float rot,
float a_min,
float a_max,
int num_segments = 0);
3156 IMGUI_API
void PathBezierCubicCurveTo(
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4,
int num_segments = 0);
3157 IMGUI_API
void PathBezierQuadraticCurveTo(
const ImVec2& p2,
const ImVec2& p3,
int num_segments = 0);
3158 IMGUI_API
void PathRect(
const ImVec2& rect_min,
const ImVec2& rect_max,
float rounding = 0.0f, ImDrawFlags flags = 0);
3169 IMGUI_API
void AddCallback(ImDrawCallback callback,
void* userdata,
size_t userdata_size = 0);
3172 IMGUI_API
void AddDrawCmd();
3181 inline void ChannelsSplit(
int count) { _Splitter.Split(
this, count); }
3182 inline void ChannelsMerge() { _Splitter.Merge(
this); }
3183 inline void ChannelsSetCurrent(
int n) { _Splitter.SetCurrentChannel(
this, n); }
3188 IMGUI_API
void PrimReserve(
int idx_count,
int vtx_count);
3189 IMGUI_API
void PrimUnreserve(
int idx_count,
int vtx_count);
3190 IMGUI_API
void PrimRect(
const ImVec2& a,
const ImVec2& b, ImU32 col);
3193 inline void PrimWriteVtx(
const ImVec2& pos,
const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; }
3194 inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; }
3195 inline void PrimVtx(
const ImVec2& pos,
const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); }
3205 IMGUI_API
void _ResetForNewFrame();
3206 IMGUI_API
void _ClearFreeMemory();
3207 IMGUI_API
void _PopUnusedDrawCmd();
3208 IMGUI_API
void _TryMergeDrawCmds();
3209 IMGUI_API
void _OnChangedClipRect();
3210 IMGUI_API
void _OnChangedTextureID();
3211 IMGUI_API
void _OnChangedVtxOffset();
3212 IMGUI_API
void _SetTextureID(ImTextureID texture_id);
3213 IMGUI_API
int _CalcCircleAutoSegmentCount(
float radius)
const;
3214 IMGUI_API
void _PathArcToFastEx(
const ImVec2& center,
float radius,
int a_min_sample,
int a_max_sample,
int a_step);
3215 IMGUI_API
void _PathArcToN(
const ImVec2& center,
float radius,
float a_min,
float a_max,
int num_segments);
3235 IMGUI_API
void Clear();
3236 IMGUI_API
void AddDrawList(
ImDrawList* draw_list);
3237 IMGUI_API
void DeIndexAllBuffers();
3238 IMGUI_API
void ScaleClipRects(
const ImVec2& fb_scale);
3249 bool FontDataOwnedByAtlas;
3255 ImVec2 GlyphExtraSpacing;
3257 const ImWchar* GlyphRanges;
3258 float GlyphMinAdvanceX;
3259 float GlyphMaxAdvanceX;
3261 unsigned int FontBuilderFlags;
3262 float RasterizerMultiply;
3263 float RasterizerDensity;
3264 ImWchar EllipsisChar;
3277 unsigned int Colored : 1;
3278 unsigned int Visible : 1;
3279 unsigned int Codepoint : 30;
3281 float X0, Y0, X1, Y1;
3282 float U0, V0, U1, V1;
3292 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); }
3293 inline bool GetBit(
size_t n)
const {
int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31);
return (UsedChars[off] & mask) != 0; }
3294 inline void SetBit(
size_t n) {
int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; }
3295 inline void AddChar(ImWchar c) { SetBit(c); }
3296 IMGUI_API
void AddText(
const char* text,
const char* text_end = NULL);
3297 IMGUI_API
void AddRanges(
const ImWchar* ranges);
3304 unsigned short Width, Height;
3305 unsigned short X, Y;
3306 unsigned int GlyphID;
3307 float GlyphAdvanceX;
3310 ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset =
ImVec2(0, 0); Font = NULL; }
3311 bool IsPacked()
const {
return X != 0xFFFF; }
3315enum ImFontAtlasFlags_
3317 ImFontAtlasFlags_None = 0,
3318 ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0,
3319 ImFontAtlasFlags_NoMouseCursors = 1 << 1,
3320 ImFontAtlasFlags_NoBakedLines = 1 << 2,
3346 IMGUI_API
ImFont* AddFontFromFileTTF(
const char* filename,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3347 IMGUI_API
ImFont* AddFontFromMemoryTTF(
void* font_data,
int font_data_size,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3348 IMGUI_API
ImFont* AddFontFromMemoryCompressedTTF(
const void* compressed_font_data,
int compressed_font_data_size,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3349 IMGUI_API
ImFont* AddFontFromMemoryCompressedBase85TTF(
const char* compressed_font_data_base85,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3350 IMGUI_API
void ClearInputData();
3351 IMGUI_API
void ClearTexData();
3352 IMGUI_API
void ClearFonts();
3353 IMGUI_API
void Clear();
3360 IMGUI_API
bool Build();
3361 IMGUI_API
void GetTexDataAsAlpha8(
unsigned char** out_pixels,
int* out_width,
int* out_height,
int* out_bytes_per_pixel = NULL);
3362 IMGUI_API
void GetTexDataAsRGBA32(
unsigned char** out_pixels,
int* out_width,
int* out_height,
int* out_bytes_per_pixel = NULL);
3363 bool IsBuilt()
const {
return Fonts.Size > 0 && TexReady; }
3364 void SetTexID(ImTextureID
id) { TexID = id; }
3374 IMGUI_API
const ImWchar* GetGlyphRangesDefault();
3375 IMGUI_API
const ImWchar* GetGlyphRangesGreek();
3376 IMGUI_API
const ImWchar* GetGlyphRangesKorean();
3377 IMGUI_API
const ImWchar* GetGlyphRangesJapanese();
3378 IMGUI_API
const ImWchar* GetGlyphRangesChineseFull();
3379 IMGUI_API
const ImWchar* GetGlyphRangesChineseSimplifiedCommon();
3380 IMGUI_API
const ImWchar* GetGlyphRangesCyrillic();
3381 IMGUI_API
const ImWchar* GetGlyphRangesThai();
3382 IMGUI_API
const ImWchar* GetGlyphRangesVietnamese();
3395 IMGUI_API
int AddCustomRectRegular(
int width,
int height);
3396 IMGUI_API
int AddCustomRectFontGlyph(
ImFont* font, ImWchar
id,
int width,
int height,
float advance_x,
const ImVec2& offset =
ImVec2(0, 0));
3397 ImFontAtlasCustomRect* GetCustomRectByIndex(
int index) { IM_ASSERT(index >= 0);
return &CustomRects[index]; }
3401 IMGUI_API
bool GetMouseCursorTexData(ImGuiMouseCursor cursor,
ImVec2* out_offset,
ImVec2* out_size,
ImVec2 out_uv_border[2],
ImVec2 out_uv_fill[2]);
3407 ImFontAtlasFlags Flags;
3409 int TexDesiredWidth;
3410 int TexGlyphPadding;
3417 bool TexPixelsUseColors;
3418 unsigned char* TexPixelsAlpha8;
3419 unsigned int* TexPixelsRGBA32;
3427 ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1];
3431 unsigned int FontBuilderFlags;
3434 int PackIdMouseCursors;
3448 float FallbackAdvanceX;
3459 short ConfigDataCount;
3460 ImWchar FallbackChar;
3461 ImWchar EllipsisChar;
3462 short EllipsisCharCount;
3463 float EllipsisWidth;
3464 float EllipsisCharStep;
3465 bool DirtyLookupTables;
3467 float Ascent, Descent;
3468 int MetricsTotalSurface;
3469 ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8];
3474 IMGUI_API
const ImFontGlyph*FindGlyph(ImWchar c)
const;
3475 IMGUI_API
const ImFontGlyph*FindGlyphNoFallback(ImWchar c)
const;
3476 float GetCharAdvance(ImWchar c)
const {
return ((
int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; }
3477 bool IsLoaded()
const {
return ContainerAtlas != NULL; }
3478 const char* GetDebugName()
const {
return ConfigData ? ConfigData->Name :
"<unknown>"; }
3482 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;
3483 IMGUI_API
const char* CalcWordWrapPositionA(
float scale,
const char* text,
const char* text_end,
float wrap_width)
const;
3484 IMGUI_API
void RenderChar(
ImDrawList* draw_list,
float size,
const ImVec2& pos, ImU32 col, ImWchar c)
const;
3485 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;
3488 IMGUI_API
void BuildLookupTable();
3489 IMGUI_API
void ClearOutputData();
3490 IMGUI_API
void GrowIndex(
int new_size);
3491 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);
3492 IMGUI_API
void AddRemapChar(ImWchar dst, ImWchar src,
bool overwrite_dst =
true);
3493 IMGUI_API
void SetGlyphVisible(ImWchar c,
bool visible);
3494 IMGUI_API
bool IsGlyphRangeUnused(
unsigned int c_begin,
unsigned int c_last);
3502enum ImGuiViewportFlags_
3504 ImGuiViewportFlags_None = 0,
3505 ImGuiViewportFlags_IsPlatformWindow = 1 << 0,
3506 ImGuiViewportFlags_IsPlatformMonitor = 1 << 1,
3507 ImGuiViewportFlags_OwnedByApp = 1 << 2,
3520 ImGuiViewportFlags Flags;
3527 void* PlatformHandle;
3528 void* PlatformHandleRaw;
3533 ImVec2 GetCenter()
const {
return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); }
3534 ImVec2 GetWorkCenter()
const {
return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); }
3552 const char* (*Platform_GetClipboardTextFn)(
ImGuiContext* ctx);
3553 void (*Platform_SetClipboardTextFn)(
ImGuiContext* ctx,
const char* text);
3554 void* Platform_ClipboardUserData;
3558 bool (*Platform_OpenInShellFn)(
ImGuiContext* ctx,
const char* path);
3559 void* Platform_OpenInShellUserData;
3564 void* Platform_ImeUserData;
3569 ImWchar Platform_LocaleDecimalPoint;
3576 void* Renderer_RenderState;
3584 float InputLineHeight;
3595#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
3599 static inline void PushButtonRepeat(
bool repeat) { PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); }
3600 static inline void PopButtonRepeat() { PopItemFlag(); }
3601 static inline void PushTabStop(
bool tab_stop) { PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); }
3602 static inline void PopTabStop() { PopItemFlag(); }
3603 IMGUI_API
ImVec2 GetContentRegionMax();
3604 IMGUI_API
ImVec2 GetWindowContentRegionMin();
3605 IMGUI_API
ImVec2 GetWindowContentRegionMax();
3607 static inline bool BeginChildFrame(ImGuiID
id,
const ImVec2& size, ImGuiWindowFlags window_flags = 0) {
return BeginChild(
id, size, ImGuiChildFlags_FrameStyle, window_flags); }
3608 static inline void EndChildFrame() { EndChild(); }
3611 static inline void ShowStackToolWindow(
bool* p_open = NULL) { ShowIDStackToolWindow(p_open); }
3612 IMGUI_API
bool Combo(
const char* label,
int* current_item,
bool (*old_callback)(
void* user_data,
int idx,
const char** out_text),
void* user_data,
int items_count,
int popup_max_height_in_items = -1);
3613 IMGUI_API
bool ListBox(
const char* label,
int* current_item,
bool (*old_callback)(
void* user_data,
int idx,
const char** out_text),
void* user_data,
int items_count,
int height_in_items = -1);
3615 IMGUI_API
void SetItemAllowOverlap();
3617 static inline void PushAllowKeyboardFocus(
bool tab_stop) { PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); }
3618 static inline void PopAllowKeyboardFocus() { PopItemFlag(); }
3620 IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key);
3706#define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER)
3711#ifdef IMGUI_DISABLE_METRICS_WINDOW
3712#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name.
3717#if defined(__clang__)
3718#pragma clang diagnostic pop
3719#elif defined(__GNUC__)
3720#pragma GCC diagnostic pop
3724#pragma warning (pop)
3729#ifdef IMGUI_INCLUDE_IMGUI_USER_H
3730#ifdef IMGUI_USER_H_FILENAME
3731#include IMGUI_USER_H_FILENAME
3733#include "imgui_user.h"
Definition imgui_internal.h:756
Definition imgui_internal.h:3515
Definition imgui_internal.h:2012