31 #define IMGUI_VERSION "1.91.3" 32 #define IMGUI_VERSION_NUM 19130 33 #define IMGUI_HAS_TABLE 34 #define IMGUI_HAS_VIEWPORT // Viewport WIP branch 35 #define IMGUI_HAS_DOCK // Docking WIP branch 63 #ifdef IMGUI_USER_CONFIG 64 #include IMGUI_USER_CONFIG 86 #ifndef IMGUI_IMPL_API 87 #define IMGUI_IMPL_API IMGUI_API 93 #define IM_ASSERT(_EXPR) assert(_EXPR) // You can override the default assert handler by editing imconfig.h 95 #define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) // Size of a static C-style array. Don't use on pointers! 96 #define IM_UNUSED(_VAR) ((void)(_VAR)) // Used to silence "unused variable warnings". Often useful as asserts may be stripped out from final builds. 99 #define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) 104 #if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) 105 #define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) 106 #define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) 107 #elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) 110 #define IM_FMTARGS(FMT) 111 #define IM_FMTLIST(FMT) 113 #define IM_FMTARGS(FMT) 114 #define IM_FMTLIST(FMT) 118 #if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) 119 #define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) 120 #define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) 122 #define IM_MSVC_RUNTIME_CHECKS_OFF 123 #define IM_MSVC_RUNTIME_CHECKS_RESTORE 128 #pragma warning (push) 129 #pragma warning (disable: 26495) // [Static Analyzer] Variable 'XXX' is uninitialized. Always initialize a member variable (type.6). 131 #if defined(__clang__) 132 #pragma clang diagnostic push 133 #if __has_warning("-Wunknown-warning-option") 134 #pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' 136 #pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' 137 #pragma clang diagnostic ignored "-Wold-style-cast" 138 #pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe 139 #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" 140 #pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter 141 #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" // warning: 'xxx' is an unsafe pointer used for buffer access 142 #elif defined(__GNUC__) 143 #pragma GCC diagnostic push 144 #pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind 145 #pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead 153 typedef unsigned int ImGuiID;
154 typedef signed char ImS8;
155 typedef unsigned char ImU8;
156 typedef signed short ImS16;
157 typedef unsigned short ImU16;
158 typedef signed int ImS32;
159 typedef unsigned int ImU32;
160 typedef signed long long ImS64;
161 typedef unsigned long long ImU64;
211 enum ImGuiMouseSource : int;
212 enum ImGuiSortDirection : ImU8;
213 typedef int ImGuiCol;
214 typedef int ImGuiCond;
215 typedef int ImGuiDataType;
216 typedef int ImGuiMouseButton;
217 typedef int ImGuiMouseCursor;
218 typedef int ImGuiStyleVar;
219 typedef int ImGuiTableBgTarget;
226 typedef int ImDrawFlags;
227 typedef int ImDrawListFlags;
228 typedef int ImFontAtlasFlags;
229 typedef int ImGuiBackendFlags;
230 typedef int ImGuiButtonFlags;
231 typedef int ImGuiChildFlags;
232 typedef int ImGuiColorEditFlags;
233 typedef int ImGuiConfigFlags;
234 typedef int ImGuiComboFlags;
235 typedef int ImGuiDockNodeFlags;
236 typedef int ImGuiDragDropFlags;
237 typedef int ImGuiFocusedFlags;
238 typedef int ImGuiHoveredFlags;
239 typedef int ImGuiInputFlags;
240 typedef int ImGuiInputTextFlags;
241 typedef int ImGuiItemFlags;
242 typedef int ImGuiKeyChord;
243 typedef int ImGuiPopupFlags;
244 typedef int ImGuiMultiSelectFlags;
245 typedef int ImGuiSelectableFlags;
246 typedef int ImGuiSliderFlags;
247 typedef int ImGuiTabBarFlags;
248 typedef int ImGuiTabItemFlags;
249 typedef int ImGuiTableFlags;
250 typedef int ImGuiTableColumnFlags;
251 typedef int ImGuiTableRowFlags;
252 typedef int ImGuiTreeNodeFlags;
253 typedef int ImGuiViewportFlags;
254 typedef int ImGuiWindowFlags;
260 typedef void* ImTextureID;
267 typedef unsigned short ImDrawIdx;
272 typedef unsigned int ImWchar32;
273 typedef unsigned short ImWchar16;
274 #ifdef IMGUI_USE_WCHAR32 // ImWchar [configurable type: override in imconfig.h with '#define IMGUI_USE_WCHAR32' to support Unicode planes 1-16] 275 typedef ImWchar32 ImWchar;
277 typedef ImWchar16 ImWchar;
283 typedef ImS64 ImGuiSelectionUserData;
288 typedef void* (*ImGuiMemAllocFunc)(
size_t sz,
void* user_data);
289 typedef void (*ImGuiMemFreeFunc)(
void* ptr,
void* user_data);
294 IM_MSVC_RUNTIME_CHECKS_OFF
298 constexpr
ImVec2() : x(0.0f), y(0.0f) { }
299 constexpr ImVec2(
float _x,
float _y) : x(_x), y(_y) { }
300 float& operator[] (
size_t idx) { IM_ASSERT(idx == 0 || idx == 1);
return ((
float*)(
void*)(
char*)
this)[idx]; }
301 float operator[] (
size_t idx)
const { IM_ASSERT(idx == 0 || idx == 1);
return ((
const float*)(
const void*)(
const char*)
this)[idx]; }
302 #ifdef IM_VEC2_CLASS_EXTRA 311 constexpr
ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { }
312 constexpr ImVec4(
float _x,
float _y,
float _z,
float _w) : x(_x), y(_y), z(_z), w(_w) { }
313 #ifdef IM_VEC4_CLASS_EXTRA 317 IM_MSVC_RUNTIME_CHECKS_RESTORE
331 IMGUI_API
void DestroyContext(
ImGuiContext* ctx = NULL);
339 IMGUI_API
void NewFrame();
340 IMGUI_API
void EndFrame();
341 IMGUI_API
void Render();
345 IMGUI_API
void ShowDemoWindow(
bool* p_open = NULL);
346 IMGUI_API
void ShowMetricsWindow(
bool* p_open = NULL);
347 IMGUI_API
void ShowDebugLogWindow(
bool* p_open = NULL);
348 IMGUI_API
void ShowIDStackToolWindow(
bool* p_open = NULL);
349 IMGUI_API
void ShowAboutWindow(
bool* p_open = NULL);
350 IMGUI_API
void ShowStyleEditor(
ImGuiStyle* ref = NULL);
351 IMGUI_API
bool ShowStyleSelector(
const char* label);
352 IMGUI_API
void ShowFontSelector(
const char* label);
353 IMGUI_API
void ShowUserGuide();
354 IMGUI_API
const char* GetVersion();
357 IMGUI_API
void StyleColorsDark(
ImGuiStyle* dst = NULL);
358 IMGUI_API
void StyleColorsLight(
ImGuiStyle* dst = NULL);
359 IMGUI_API
void StyleColorsClassic(
ImGuiStyle* dst = NULL);
373 IMGUI_API
bool Begin(
const char* name,
bool* p_open = NULL, ImGuiWindowFlags flags = 0);
374 IMGUI_API
void End();
394 IMGUI_API
bool BeginChild(
const char* str_id,
const ImVec2& size =
ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0);
395 IMGUI_API
bool BeginChild(ImGuiID
id,
const ImVec2& size =
ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0);
396 IMGUI_API
void EndChild();
400 IMGUI_API
bool IsWindowAppearing();
401 IMGUI_API
bool IsWindowCollapsed();
402 IMGUI_API
bool IsWindowFocused(ImGuiFocusedFlags flags=0);
403 IMGUI_API
bool IsWindowHovered(ImGuiHoveredFlags flags=0);
405 IMGUI_API
float GetWindowDpiScale();
406 IMGUI_API
ImVec2 GetWindowPos();
407 IMGUI_API
ImVec2 GetWindowSize();
408 IMGUI_API
float GetWindowWidth();
409 IMGUI_API
float GetWindowHeight();
414 IMGUI_API
void SetNextWindowPos(
const ImVec2& pos, ImGuiCond cond = 0,
const ImVec2& pivot =
ImVec2(0, 0));
415 IMGUI_API
void SetNextWindowSize(
const ImVec2& size, ImGuiCond cond = 0);
416 IMGUI_API
void SetNextWindowSizeConstraints(
const ImVec2& size_min,
const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL,
void* custom_callback_data = NULL);
417 IMGUI_API
void SetNextWindowContentSize(
const ImVec2& size);
418 IMGUI_API
void SetNextWindowCollapsed(
bool collapsed, ImGuiCond cond = 0);
419 IMGUI_API
void SetNextWindowFocus();
420 IMGUI_API
void SetNextWindowScroll(
const ImVec2& scroll);
421 IMGUI_API
void SetNextWindowBgAlpha(
float alpha);
422 IMGUI_API
void SetNextWindowViewport(ImGuiID viewport_id);
423 IMGUI_API
void SetWindowPos(
const ImVec2& pos, ImGuiCond cond = 0);
424 IMGUI_API
void SetWindowSize(
const ImVec2& size, ImGuiCond cond = 0);
425 IMGUI_API
void SetWindowCollapsed(
bool collapsed, ImGuiCond cond = 0);
426 IMGUI_API
void SetWindowFocus();
427 IMGUI_API
void SetWindowFontScale(
float scale);
428 IMGUI_API
void SetWindowPos(
const char* name,
const ImVec2& pos, ImGuiCond cond = 0);
429 IMGUI_API
void SetWindowSize(
const char* name,
const ImVec2& size, ImGuiCond cond = 0);
430 IMGUI_API
void SetWindowCollapsed(
const char* name,
bool collapsed, ImGuiCond cond = 0);
431 IMGUI_API
void SetWindowFocus(
const char* name);
436 IMGUI_API
float GetScrollX();
437 IMGUI_API
float GetScrollY();
438 IMGUI_API
void SetScrollX(
float scroll_x);
439 IMGUI_API
void SetScrollY(
float scroll_y);
440 IMGUI_API
float GetScrollMaxX();
441 IMGUI_API
float GetScrollMaxY();
442 IMGUI_API
void SetScrollHereX(
float center_x_ratio = 0.5f);
443 IMGUI_API
void SetScrollHereY(
float center_y_ratio = 0.5f);
444 IMGUI_API
void SetScrollFromPosX(
float local_x,
float center_x_ratio = 0.5f);
445 IMGUI_API
void SetScrollFromPosY(
float local_y,
float center_y_ratio = 0.5f);
448 IMGUI_API
void PushFont(
ImFont* font);
449 IMGUI_API
void PopFont();
450 IMGUI_API
void PushStyleColor(ImGuiCol idx, ImU32 col);
451 IMGUI_API
void PushStyleColor(ImGuiCol idx,
const ImVec4& col);
452 IMGUI_API
void PopStyleColor(
int count = 1);
453 IMGUI_API
void PushStyleVar(ImGuiStyleVar idx,
float val);
454 IMGUI_API
void PushStyleVar(ImGuiStyleVar idx,
const ImVec2& val);
455 IMGUI_API
void PushStyleVarX(ImGuiStyleVar idx,
float val_x);
456 IMGUI_API
void PushStyleVarY(ImGuiStyleVar idx,
float val_y);
457 IMGUI_API
void PopStyleVar(
int count = 1);
458 IMGUI_API
void PushItemFlag(ImGuiItemFlags option,
bool enabled);
459 IMGUI_API
void PopItemFlag();
462 IMGUI_API
void PushItemWidth(
float item_width);
463 IMGUI_API
void PopItemWidth();
464 IMGUI_API
void SetNextItemWidth(
float item_width);
465 IMGUI_API
float CalcItemWidth();
466 IMGUI_API
void PushTextWrapPos(
float wrap_local_pos_x = 0.0f);
467 IMGUI_API
void PopTextWrapPos();
471 IMGUI_API
ImFont* GetFont();
472 IMGUI_API
float GetFontSize();
473 IMGUI_API
ImVec2 GetFontTexUvWhitePixel();
474 IMGUI_API ImU32 GetColorU32(ImGuiCol idx,
float alpha_mul = 1.0f);
475 IMGUI_API ImU32 GetColorU32(
const ImVec4& col);
476 IMGUI_API ImU32 GetColorU32(ImU32 col,
float alpha_mul = 1.0f);
477 IMGUI_API
const ImVec4& GetStyleColorVec4(ImGuiCol idx);
489 IMGUI_API
ImVec2 GetCursorScreenPos();
490 IMGUI_API
void SetCursorScreenPos(
const ImVec2& pos);
491 IMGUI_API
ImVec2 GetContentRegionAvail();
492 IMGUI_API
ImVec2 GetCursorPos();
493 IMGUI_API
float GetCursorPosX();
494 IMGUI_API
float GetCursorPosY();
495 IMGUI_API
void SetCursorPos(
const ImVec2& local_pos);
496 IMGUI_API
void SetCursorPosX(
float local_x);
497 IMGUI_API
void SetCursorPosY(
float local_y);
498 IMGUI_API
ImVec2 GetCursorStartPos();
501 IMGUI_API
void Separator();
502 IMGUI_API
void SameLine(
float offset_from_start_x=0.0f,
float spacing=-1.0f);
503 IMGUI_API
void NewLine();
504 IMGUI_API
void Spacing();
505 IMGUI_API
void Dummy(
const ImVec2& size);
506 IMGUI_API
void Indent(
float indent_w = 0.0f);
507 IMGUI_API
void Unindent(
float indent_w = 0.0f);
508 IMGUI_API
void BeginGroup();
509 IMGUI_API
void EndGroup();
510 IMGUI_API
void AlignTextToFramePadding();
511 IMGUI_API
float GetTextLineHeight();
512 IMGUI_API
float GetTextLineHeightWithSpacing();
513 IMGUI_API
float GetFrameHeight();
514 IMGUI_API
float GetFrameHeightWithSpacing();
527 IMGUI_API
void PushID(
const char* str_id);
528 IMGUI_API
void PushID(
const char* str_id_begin,
const char* str_id_end);
529 IMGUI_API
void PushID(
const void* ptr_id);
530 IMGUI_API
void PushID(
int int_id);
531 IMGUI_API
void PopID();
532 IMGUI_API ImGuiID GetID(
const char* str_id);
533 IMGUI_API ImGuiID GetID(
const char* str_id_begin,
const char* str_id_end);
534 IMGUI_API ImGuiID GetID(
const void* ptr_id);
535 IMGUI_API ImGuiID GetID(
int int_id);
538 IMGUI_API
void TextUnformatted(
const char* text,
const char* text_end = NULL);
539 IMGUI_API
void Text(
const char* fmt, ...) IM_FMTARGS(1);
540 IMGUI_API
void TextV(
const char* fmt, va_list args) IM_FMTLIST(1);
541 IMGUI_API
void TextColored(
const ImVec4& col,
const char* fmt, ...) IM_FMTARGS(2);
542 IMGUI_API
void TextColoredV(
const ImVec4& col,
const char* fmt, va_list args) IM_FMTLIST(2);
543 IMGUI_API
void TextDisabled(
const char* fmt, ...) IM_FMTARGS(1);
544 IMGUI_API
void TextDisabledV(
const char* fmt, va_list args) IM_FMTLIST(1);
545 IMGUI_API
void TextWrapped(
const char* fmt, ...) IM_FMTARGS(1);
546 IMGUI_API
void TextWrappedV(
const char* fmt, va_list args) IM_FMTLIST(1);
547 IMGUI_API
void LabelText(
const char* label,
const char* fmt, ...) IM_FMTARGS(2);
548 IMGUI_API
void LabelTextV(
const char* label,
const char* fmt, va_list args) IM_FMTLIST(2);
549 IMGUI_API
void BulletText(
const char* fmt, ...) IM_FMTARGS(1);
550 IMGUI_API
void BulletTextV(
const char* fmt, va_list args) IM_FMTLIST(1);
551 IMGUI_API
void SeparatorText(
const char* label);
557 IMGUI_API
bool SmallButton(
const char* label);
558 IMGUI_API
bool InvisibleButton(
const char* str_id,
const ImVec2& size, ImGuiButtonFlags flags = 0);
559 IMGUI_API
bool ArrowButton(
const char* str_id, ImGuiDir dir);
560 IMGUI_API
bool Checkbox(
const char* label,
bool* v);
561 IMGUI_API
bool CheckboxFlags(
const char* label,
int* flags,
int flags_value);
562 IMGUI_API
bool CheckboxFlags(
const char* label,
unsigned int* flags,
unsigned int flags_value);
563 IMGUI_API
bool RadioButton(
const char* label,
bool active);
564 IMGUI_API
bool RadioButton(
const char* label,
int* v,
int v_button);
565 IMGUI_API
void ProgressBar(
float fraction,
const ImVec2& size_arg =
ImVec2(-FLT_MIN, 0),
const char* overlay = NULL);
566 IMGUI_API
void Bullet();
567 IMGUI_API
bool TextLink(
const char* label);
568 IMGUI_API
void TextLinkOpenURL(
const char* label,
const char* url = NULL);
574 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));
575 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));
580 IMGUI_API
bool BeginCombo(
const char* label,
const char* preview_value, ImGuiComboFlags flags = 0);
581 IMGUI_API
void EndCombo();
582 IMGUI_API
bool Combo(
const char* label,
int* current_item,
const char*
const items[],
int items_count,
int popup_max_height_in_items = -1);
583 IMGUI_API
bool Combo(
const char* label,
int* current_item,
const char* items_separated_by_zeros,
int popup_max_height_in_items = -1);
584 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);
598 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);
599 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);
600 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);
601 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);
602 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);
603 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);
604 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);
605 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);
606 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);
607 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);
608 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);
609 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);
617 IMGUI_API
bool SliderFloat(
const char* label,
float* v,
float v_min,
float v_max,
const char* format =
"%.3f", ImGuiSliderFlags flags = 0);
618 IMGUI_API
bool SliderFloat2(
const char* label,
float v[2],
float v_min,
float v_max,
const char* format =
"%.3f", ImGuiSliderFlags flags = 0);
619 IMGUI_API
bool SliderFloat3(
const char* label,
float v[3],
float v_min,
float v_max,
const char* format =
"%.3f", ImGuiSliderFlags flags = 0);
620 IMGUI_API
bool SliderFloat4(
const char* label,
float v[4],
float v_min,
float v_max,
const char* format =
"%.3f", ImGuiSliderFlags flags = 0);
621 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);
622 IMGUI_API
bool SliderInt(
const char* label,
int* v,
int v_min,
int v_max,
const char* format =
"%d", ImGuiSliderFlags flags = 0);
623 IMGUI_API
bool SliderInt2(
const char* label,
int v[2],
int v_min,
int v_max,
const char* format =
"%d", ImGuiSliderFlags flags = 0);
624 IMGUI_API
bool SliderInt3(
const char* label,
int v[3],
int v_min,
int v_max,
const char* format =
"%d", ImGuiSliderFlags flags = 0);
625 IMGUI_API
bool SliderInt4(
const char* label,
int v[4],
int v_min,
int v_max,
const char* format =
"%d", ImGuiSliderFlags flags = 0);
626 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);
627 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);
628 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);
629 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);
630 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);
635 IMGUI_API
bool InputText(
const char* label,
char* buf,
size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL,
void* user_data = NULL);
636 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);
637 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);
638 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);
639 IMGUI_API
bool InputFloat2(
const char* label,
float v[2],
const char* format =
"%.3f", ImGuiInputTextFlags flags = 0);
640 IMGUI_API
bool InputFloat3(
const char* label,
float v[3],
const char* format =
"%.3f", ImGuiInputTextFlags flags = 0);
641 IMGUI_API
bool InputFloat4(
const char* label,
float v[4],
const char* format =
"%.3f", ImGuiInputTextFlags flags = 0);
642 IMGUI_API
bool InputInt(
const char* label,
int* v,
int step = 1,
int step_fast = 100, ImGuiInputTextFlags flags = 0);
643 IMGUI_API
bool InputInt2(
const char* label,
int v[2], ImGuiInputTextFlags flags = 0);
644 IMGUI_API
bool InputInt3(
const char* label,
int v[3], ImGuiInputTextFlags flags = 0);
645 IMGUI_API
bool InputInt4(
const char* label,
int v[4], ImGuiInputTextFlags flags = 0);
646 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);
647 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);
648 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);
653 IMGUI_API
bool ColorEdit3(
const char* label,
float col[3], ImGuiColorEditFlags flags = 0);
654 IMGUI_API
bool ColorEdit4(
const char* label,
float col[4], ImGuiColorEditFlags flags = 0);
655 IMGUI_API
bool ColorPicker3(
const char* label,
float col[3], ImGuiColorEditFlags flags = 0);
656 IMGUI_API
bool ColorPicker4(
const char* label,
float col[4], ImGuiColorEditFlags flags = 0,
const float* ref_col = NULL);
657 IMGUI_API
bool ColorButton(
const char* desc_id,
const ImVec4& col, ImGuiColorEditFlags flags = 0,
const ImVec2& size =
ImVec2(0, 0));
658 IMGUI_API
void SetColorEditOptions(ImGuiColorEditFlags flags);
662 IMGUI_API
bool TreeNode(
const char* label);
663 IMGUI_API
bool TreeNode(
const char* str_id,
const char* fmt, ...) IM_FMTARGS(2);
664 IMGUI_API
bool TreeNode(
const void* ptr_id,
const char* fmt, ...) IM_FMTARGS(2);
665 IMGUI_API
bool TreeNodeV(
const char* str_id,
const char* fmt, va_list args) IM_FMTLIST(2);
666 IMGUI_API
bool TreeNodeV(
const void* ptr_id,
const char* fmt, va_list args) IM_FMTLIST(2);
667 IMGUI_API
bool TreeNodeEx(
const char* label, ImGuiTreeNodeFlags flags = 0);
668 IMGUI_API
bool TreeNodeEx(
const char* str_id, ImGuiTreeNodeFlags flags,
const char* fmt, ...) IM_FMTARGS(3);
669 IMGUI_API
bool TreeNodeEx(
const void* ptr_id, ImGuiTreeNodeFlags flags,
const char* fmt, ...) IM_FMTARGS(3);
670 IMGUI_API
bool TreeNodeExV(
const char* str_id, ImGuiTreeNodeFlags flags,
const char* fmt, va_list args) IM_FMTLIST(3);
671 IMGUI_API
bool TreeNodeExV(
const void* ptr_id, ImGuiTreeNodeFlags flags,
const char* fmt, va_list args) IM_FMTLIST(3);
672 IMGUI_API
void TreePush(
const char* str_id);
673 IMGUI_API
void TreePush(
const void* ptr_id);
674 IMGUI_API
void TreePop();
675 IMGUI_API
float GetTreeNodeToLabelSpacing();
676 IMGUI_API
bool CollapsingHeader(
const char* label, ImGuiTreeNodeFlags flags = 0);
677 IMGUI_API
bool CollapsingHeader(
const char* label,
bool* p_visible, ImGuiTreeNodeFlags flags = 0);
678 IMGUI_API
void SetNextItemOpen(
bool is_open, ImGuiCond cond = 0);
679 IMGUI_API
void SetNextItemStorageID(ImGuiID storage_id);
684 IMGUI_API
bool Selectable(
const char* label,
bool selected =
false, ImGuiSelectableFlags flags = 0,
const ImVec2& size =
ImVec2(0, 0));
685 IMGUI_API
bool Selectable(
const char* label,
bool* p_selected, ImGuiSelectableFlags flags = 0,
const ImVec2& size =
ImVec2(0, 0));
694 IMGUI_API
ImGuiMultiSelectIO* BeginMultiSelect(ImGuiMultiSelectFlags flags,
int selection_size = -1,
int items_count = -1);
696 IMGUI_API
void SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data);
697 IMGUI_API
bool IsItemToggledSelection();
705 IMGUI_API
bool BeginListBox(
const char* label,
const ImVec2& size =
ImVec2(0, 0));
706 IMGUI_API
void EndListBox();
707 IMGUI_API
bool ListBox(
const char* label,
int* current_item,
const char*
const items[],
int items_count,
int height_in_items = -1);
708 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);
712 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));
713 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));
714 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));
715 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));
719 IMGUI_API
void Value(
const char* prefix,
bool b);
720 IMGUI_API
void Value(
const char* prefix,
int v);
721 IMGUI_API
void Value(
const char* prefix,
unsigned int v);
722 IMGUI_API
void Value(
const char* prefix,
float v,
const char* float_format = NULL);
729 IMGUI_API
bool BeginMenuBar();
730 IMGUI_API
void EndMenuBar();
731 IMGUI_API
bool BeginMainMenuBar();
732 IMGUI_API
void EndMainMenuBar();
733 IMGUI_API
bool BeginMenu(
const char* label,
bool enabled =
true);
734 IMGUI_API
void EndMenu();
735 IMGUI_API
bool MenuItem(
const char* label,
const char* shortcut = NULL,
bool selected =
false,
bool enabled =
true);
736 IMGUI_API
bool MenuItem(
const char* label,
const char* shortcut,
bool* p_selected,
bool enabled =
true);
742 IMGUI_API
bool BeginTooltip();
743 IMGUI_API
void EndTooltip();
744 IMGUI_API
void SetTooltip(
const char* fmt, ...) IM_FMTARGS(1);
745 IMGUI_API
void SetTooltipV(
const char* fmt, va_list args) IM_FMTLIST(1);
751 IMGUI_API
bool BeginItemTooltip();
752 IMGUI_API
void SetItemTooltip(
const char* fmt, ...) IM_FMTARGS(1);
753 IMGUI_API
void SetItemTooltipV(
const char* fmt, va_list args) IM_FMTLIST(1);
765 IMGUI_API
bool BeginPopup(
const char* str_id, ImGuiWindowFlags flags = 0);
766 IMGUI_API
bool BeginPopupModal(
const char* name,
bool* p_open = NULL, ImGuiWindowFlags flags = 0);
767 IMGUI_API
void EndPopup();
777 IMGUI_API
void OpenPopup(
const char* str_id, ImGuiPopupFlags popup_flags = 0);
778 IMGUI_API
void OpenPopup(ImGuiID
id, ImGuiPopupFlags popup_flags = 0);
779 IMGUI_API
void OpenPopupOnItemClick(
const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
780 IMGUI_API
void CloseCurrentPopup();
787 IMGUI_API
bool BeginPopupContextItem(
const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
788 IMGUI_API
bool BeginPopupContextWindow(
const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
789 IMGUI_API
bool BeginPopupContextVoid(
const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1);
795 IMGUI_API
bool IsPopupOpen(
const char* str_id, ImGuiPopupFlags flags = 0);
818 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);
819 IMGUI_API
void EndTable();
820 IMGUI_API
void TableNextRow(ImGuiTableRowFlags row_flags = 0,
float min_row_height = 0.0f);
821 IMGUI_API
bool TableNextColumn();
822 IMGUI_API
bool TableSetColumnIndex(
int column_n);
832 IMGUI_API
void TableSetupColumn(
const char* label, ImGuiTableColumnFlags flags = 0,
float init_width_or_weight = 0.0f, ImGuiID user_id = 0);
833 IMGUI_API
void TableSetupScrollFreeze(
int cols,
int rows);
834 IMGUI_API
void TableHeader(
const char* label);
835 IMGUI_API
void TableHeadersRow();
836 IMGUI_API
void TableAngledHeadersRow();
845 IMGUI_API
int TableGetColumnCount();
846 IMGUI_API
int TableGetColumnIndex();
847 IMGUI_API
int TableGetRowIndex();
848 IMGUI_API
const char* TableGetColumnName(
int column_n = -1);
849 IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(
int column_n = -1);
850 IMGUI_API
void TableSetColumnEnabled(
int column_n,
bool v);
851 IMGUI_API
int TableGetHoveredColumn();
852 IMGUI_API
void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color,
int column_n = -1);
856 IMGUI_API
void Columns(
int count = 1,
const char*
id = NULL,
bool borders =
true);
857 IMGUI_API
void NextColumn();
858 IMGUI_API
int GetColumnIndex();
859 IMGUI_API
float GetColumnWidth(
int column_index = -1);
860 IMGUI_API
void SetColumnWidth(
int column_index,
float width);
861 IMGUI_API
float GetColumnOffset(
int column_index = -1);
862 IMGUI_API
void SetColumnOffset(
int column_index,
float offset_x);
863 IMGUI_API
int GetColumnsCount();
867 IMGUI_API
bool BeginTabBar(
const char* str_id, ImGuiTabBarFlags flags = 0);
868 IMGUI_API
void EndTabBar();
869 IMGUI_API
bool BeginTabItem(
const char* label,
bool* p_open = NULL, ImGuiTabItemFlags flags = 0);
870 IMGUI_API
void EndTabItem();
871 IMGUI_API
bool TabItemButton(
const char* label, ImGuiTabItemFlags flags = 0);
872 IMGUI_API
void SetTabItemClosed(
const char* tab_or_docked_window_label);
887 IMGUI_API ImGuiID DockSpace(ImGuiID dockspace_id,
const ImVec2& size =
ImVec2(0, 0), ImGuiDockNodeFlags flags = 0,
const ImGuiWindowClass* window_class = NULL);
888 IMGUI_API ImGuiID DockSpaceOverViewport(ImGuiID dockspace_id = 0,
const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0,
const ImGuiWindowClass* window_class = NULL);
889 IMGUI_API
void SetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond = 0);
891 IMGUI_API ImGuiID GetWindowDockID();
892 IMGUI_API
bool IsWindowDocked();
896 IMGUI_API
void LogToTTY(
int auto_open_depth = -1);
897 IMGUI_API
void LogToFile(
int auto_open_depth = -1,
const char* filename = NULL);
898 IMGUI_API
void LogToClipboard(
int auto_open_depth = -1);
899 IMGUI_API
void LogFinish();
900 IMGUI_API
void LogButtons();
901 IMGUI_API
void LogText(
const char* fmt, ...) IM_FMTARGS(1);
902 IMGUI_API
void LogTextV(
const char* fmt, va_list args) IM_FMTLIST(1);
909 IMGUI_API
bool BeginDragDropSource(ImGuiDragDropFlags flags = 0);
910 IMGUI_API
bool SetDragDropPayload(
const char* type,
const void* data,
size_t sz, ImGuiCond cond = 0);
911 IMGUI_API
void EndDragDropSource();
912 IMGUI_API
bool BeginDragDropTarget();
913 IMGUI_API
const ImGuiPayload* AcceptDragDropPayload(
const char* type, ImGuiDragDropFlags flags = 0);
914 IMGUI_API
void EndDragDropTarget();
922 IMGUI_API
void BeginDisabled(
bool disabled =
true);
923 IMGUI_API
void EndDisabled();
927 IMGUI_API
void PushClipRect(
const ImVec2& clip_rect_min,
const ImVec2& clip_rect_max,
bool intersect_with_current_clip_rect);
928 IMGUI_API
void PopClipRect();
932 IMGUI_API
void SetItemDefaultFocus();
933 IMGUI_API
void SetKeyboardFocusHere(
int offset = 0);
936 IMGUI_API
void SetNextItemAllowOverlap();
941 IMGUI_API
bool IsItemHovered(ImGuiHoveredFlags flags = 0);
942 IMGUI_API
bool IsItemActive();
943 IMGUI_API
bool IsItemFocused();
944 IMGUI_API
bool IsItemClicked(ImGuiMouseButton mouse_button = 0);
945 IMGUI_API
bool IsItemVisible();
946 IMGUI_API
bool IsItemEdited();
947 IMGUI_API
bool IsItemActivated();
948 IMGUI_API
bool IsItemDeactivated();
949 IMGUI_API
bool IsItemDeactivatedAfterEdit();
950 IMGUI_API
bool IsItemToggledOpen();
951 IMGUI_API
bool IsAnyItemHovered();
952 IMGUI_API
bool IsAnyItemActive();
953 IMGUI_API
bool IsAnyItemFocused();
954 IMGUI_API ImGuiID GetItemID();
955 IMGUI_API
ImVec2 GetItemRectMin();
956 IMGUI_API
ImVec2 GetItemRectMax();
957 IMGUI_API
ImVec2 GetItemRectSize();
970 IMGUI_API
bool IsRectVisible(
const ImVec2& size);
971 IMGUI_API
bool IsRectVisible(
const ImVec2& rect_min,
const ImVec2& rect_max);
972 IMGUI_API
double GetTime();
973 IMGUI_API
int GetFrameCount();
975 IMGUI_API
const char* GetStyleColorName(ImGuiCol idx);
980 IMGUI_API
ImVec2 CalcTextSize(
const char* text,
const char* text_end = NULL,
bool hide_text_after_double_hash =
false,
float wrap_width = -1.0f);
983 IMGUI_API
ImVec4 ColorConvertU32ToFloat4(ImU32 in);
984 IMGUI_API ImU32 ColorConvertFloat4ToU32(
const ImVec4& in);
985 IMGUI_API
void ColorConvertRGBtoHSV(
float r,
float g,
float b,
float& out_h,
float& out_s,
float& out_v);
986 IMGUI_API
void ColorConvertHSVtoRGB(
float h,
float s,
float v,
float& out_r,
float& out_g,
float& out_b);
993 IMGUI_API
bool IsKeyDown(ImGuiKey key);
994 IMGUI_API
bool IsKeyPressed(ImGuiKey key,
bool repeat =
true);
995 IMGUI_API
bool IsKeyReleased(ImGuiKey key);
996 IMGUI_API
bool IsKeyChordPressed(ImGuiKeyChord key_chord);
997 IMGUI_API
int GetKeyPressedAmount(ImGuiKey key,
float repeat_delay,
float rate);
998 IMGUI_API
const char* GetKeyName(ImGuiKey key);
999 IMGUI_API
void SetNextFrameWantCaptureKeyboard(
bool want_capture_keyboard);
1016 IMGUI_API
bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0);
1017 IMGUI_API
void SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0);
1025 IMGUI_API
void SetItemKeyOwner(ImGuiKey key);
1031 IMGUI_API
bool IsMouseDown(ImGuiMouseButton button);
1032 IMGUI_API
bool IsMouseClicked(ImGuiMouseButton button,
bool repeat =
false);
1033 IMGUI_API
bool IsMouseReleased(ImGuiMouseButton button);
1034 IMGUI_API
bool IsMouseDoubleClicked(ImGuiMouseButton button);
1035 IMGUI_API
int GetMouseClickedCount(ImGuiMouseButton button);
1036 IMGUI_API
bool IsMouseHoveringRect(
const ImVec2& r_min,
const ImVec2& r_max,
bool clip =
true);
1037 IMGUI_API
bool IsMousePosValid(
const ImVec2* mouse_pos = NULL);
1038 IMGUI_API
bool IsAnyMouseDown();
1039 IMGUI_API
ImVec2 GetMousePos();
1040 IMGUI_API
ImVec2 GetMousePosOnOpeningCurrentPopup();
1041 IMGUI_API
bool IsMouseDragging(ImGuiMouseButton button,
float lock_threshold = -1.0f);
1042 IMGUI_API
ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0,
float lock_threshold = -1.0f);
1043 IMGUI_API
void ResetMouseDragDelta(ImGuiMouseButton button = 0);
1044 IMGUI_API ImGuiMouseCursor GetMouseCursor();
1045 IMGUI_API
void SetMouseCursor(ImGuiMouseCursor cursor_type);
1046 IMGUI_API
void SetNextFrameWantCaptureMouse(
bool want_capture_mouse);
1050 IMGUI_API
const char* GetClipboardText();
1051 IMGUI_API
void SetClipboardText(
const char* text);
1057 IMGUI_API
void LoadIniSettingsFromDisk(
const char* ini_filename);
1058 IMGUI_API
void LoadIniSettingsFromMemory(
const char* ini_data,
size_t ini_size=0);
1059 IMGUI_API
void SaveIniSettingsToDisk(
const char* ini_filename);
1060 IMGUI_API
const char* SaveIniSettingsToMemory(
size_t* out_ini_size = NULL);
1064 IMGUI_API
void DebugTextEncoding(
const char* text);
1065 IMGUI_API
void DebugFlashStyleColor(ImGuiCol idx);
1066 IMGUI_API
void DebugStartItemPicker();
1067 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);
1068 #ifndef IMGUI_DISABLE_DEBUG_TOOLS 1069 IMGUI_API
void DebugLog(
const char* fmt, ...) IM_FMTARGS(1);
1070 IMGUI_API
void DebugLogV(
const char* fmt, va_list args) IM_FMTLIST(1);
1077 IMGUI_API
void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func,
void* user_data = NULL);
1078 IMGUI_API
void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func,
void** p_user_data);
1079 IMGUI_API
void* MemAlloc(
size_t size);
1080 IMGUI_API
void MemFree(
void* ptr);
1085 IMGUI_API
void UpdatePlatformWindows();
1086 IMGUI_API
void RenderPlatformWindowsDefault(
void* platform_render_arg = NULL,
void* renderer_render_arg = NULL);
1087 IMGUI_API
void DestroyPlatformWindows();
1089 IMGUI_API
ImGuiViewport* FindViewportByPlatformHandle(
void* platform_handle);
1099 enum ImGuiWindowFlags_
1101 ImGuiWindowFlags_None = 0,
1102 ImGuiWindowFlags_NoTitleBar = 1 << 0,
1103 ImGuiWindowFlags_NoResize = 1 << 1,
1104 ImGuiWindowFlags_NoMove = 1 << 2,
1105 ImGuiWindowFlags_NoScrollbar = 1 << 3,
1106 ImGuiWindowFlags_NoScrollWithMouse = 1 << 4,
1107 ImGuiWindowFlags_NoCollapse = 1 << 5,
1108 ImGuiWindowFlags_AlwaysAutoResize = 1 << 6,
1109 ImGuiWindowFlags_NoBackground = 1 << 7,
1110 ImGuiWindowFlags_NoSavedSettings = 1 << 8,
1111 ImGuiWindowFlags_NoMouseInputs = 1 << 9,
1112 ImGuiWindowFlags_MenuBar = 1 << 10,
1113 ImGuiWindowFlags_HorizontalScrollbar = 1 << 11,
1114 ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12,
1115 ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13,
1116 ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14,
1117 ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15,
1118 ImGuiWindowFlags_NoNavInputs = 1 << 16,
1119 ImGuiWindowFlags_NoNavFocus = 1 << 17,
1120 ImGuiWindowFlags_UnsavedDocument = 1 << 18,
1121 ImGuiWindowFlags_NoDocking = 1 << 19,
1122 ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
1123 ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse,
1124 ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus,
1127 ImGuiWindowFlags_ChildWindow = 1 << 24,
1128 ImGuiWindowFlags_Tooltip = 1 << 25,
1129 ImGuiWindowFlags_Popup = 1 << 26,
1130 ImGuiWindowFlags_Modal = 1 << 27,
1131 ImGuiWindowFlags_ChildMenu = 1 << 28,
1132 ImGuiWindowFlags_DockNodeHost = 1 << 29,
1135 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1136 ImGuiWindowFlags_AlwaysUseWindowPadding = 1 << 30,
1137 ImGuiWindowFlags_NavFlattened = 1 << 31,
1150 enum ImGuiChildFlags_
1152 ImGuiChildFlags_None = 0,
1153 ImGuiChildFlags_Borders = 1 << 0,
1154 ImGuiChildFlags_AlwaysUseWindowPadding = 1 << 1,
1155 ImGuiChildFlags_ResizeX = 1 << 2,
1156 ImGuiChildFlags_ResizeY = 1 << 3,
1157 ImGuiChildFlags_AutoResizeX = 1 << 4,
1158 ImGuiChildFlags_AutoResizeY = 1 << 5,
1159 ImGuiChildFlags_AlwaysAutoResize = 1 << 6,
1160 ImGuiChildFlags_FrameStyle = 1 << 7,
1161 ImGuiChildFlags_NavFlattened = 1 << 8,
1164 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1165 ImGuiChildFlags_Border = ImGuiChildFlags_Borders,
1171 enum ImGuiItemFlags_
1173 ImGuiItemFlags_None = 0,
1174 ImGuiItemFlags_NoTabStop = 1 << 0,
1175 ImGuiItemFlags_NoNav = 1 << 1,
1176 ImGuiItemFlags_NoNavDefaultFocus = 1 << 2,
1177 ImGuiItemFlags_ButtonRepeat = 1 << 3,
1178 ImGuiItemFlags_AutoClosePopups = 1 << 4,
1179 ImGuiItemFlags_AllowDuplicateId = 1 << 5,
1184 enum ImGuiInputTextFlags_
1187 ImGuiInputTextFlags_None = 0,
1188 ImGuiInputTextFlags_CharsDecimal = 1 << 0,
1189 ImGuiInputTextFlags_CharsHexadecimal = 1 << 1,
1190 ImGuiInputTextFlags_CharsScientific = 1 << 2,
1191 ImGuiInputTextFlags_CharsUppercase = 1 << 3,
1192 ImGuiInputTextFlags_CharsNoBlank = 1 << 4,
1195 ImGuiInputTextFlags_AllowTabInput = 1 << 5,
1196 ImGuiInputTextFlags_EnterReturnsTrue = 1 << 6,
1197 ImGuiInputTextFlags_EscapeClearsAll = 1 << 7,
1198 ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 8,
1201 ImGuiInputTextFlags_ReadOnly = 1 << 9,
1202 ImGuiInputTextFlags_Password = 1 << 10,
1203 ImGuiInputTextFlags_AlwaysOverwrite = 1 << 11,
1204 ImGuiInputTextFlags_AutoSelectAll = 1 << 12,
1205 ImGuiInputTextFlags_ParseEmptyRefVal = 1 << 13,
1206 ImGuiInputTextFlags_DisplayEmptyRefVal = 1 << 14,
1207 ImGuiInputTextFlags_NoHorizontalScroll = 1 << 15,
1208 ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
1211 ImGuiInputTextFlags_CallbackCompletion = 1 << 17,
1212 ImGuiInputTextFlags_CallbackHistory = 1 << 18,
1213 ImGuiInputTextFlags_CallbackAlways = 1 << 19,
1214 ImGuiInputTextFlags_CallbackCharFilter = 1 << 20,
1215 ImGuiInputTextFlags_CallbackResize = 1 << 21,
1216 ImGuiInputTextFlags_CallbackEdit = 1 << 22,
1223 enum ImGuiTreeNodeFlags_
1225 ImGuiTreeNodeFlags_None = 0,
1226 ImGuiTreeNodeFlags_Selected = 1 << 0,
1227 ImGuiTreeNodeFlags_Framed = 1 << 1,
1228 ImGuiTreeNodeFlags_AllowOverlap = 1 << 2,
1229 ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3,
1230 ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4,
1231 ImGuiTreeNodeFlags_DefaultOpen = 1 << 5,
1232 ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6,
1233 ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7,
1234 ImGuiTreeNodeFlags_Leaf = 1 << 8,
1235 ImGuiTreeNodeFlags_Bullet = 1 << 9,
1236 ImGuiTreeNodeFlags_FramePadding = 1 << 10,
1237 ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11,
1238 ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12,
1239 ImGuiTreeNodeFlags_SpanTextWidth = 1 << 13,
1240 ImGuiTreeNodeFlags_SpanAllColumns = 1 << 14,
1241 ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1 << 15,
1243 ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog,
1245 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1246 ImGuiTreeNodeFlags_AllowItemOverlap = ImGuiTreeNodeFlags_AllowOverlap,
1258 enum ImGuiPopupFlags_
1260 ImGuiPopupFlags_None = 0,
1261 ImGuiPopupFlags_MouseButtonLeft = 0,
1262 ImGuiPopupFlags_MouseButtonRight = 1,
1263 ImGuiPopupFlags_MouseButtonMiddle = 2,
1264 ImGuiPopupFlags_MouseButtonMask_ = 0x1F,
1265 ImGuiPopupFlags_MouseButtonDefault_ = 1,
1266 ImGuiPopupFlags_NoReopen = 1 << 5,
1268 ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 7,
1269 ImGuiPopupFlags_NoOpenOverItems = 1 << 8,
1270 ImGuiPopupFlags_AnyPopupId = 1 << 10,
1271 ImGuiPopupFlags_AnyPopupLevel = 1 << 11,
1272 ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel,
1276 enum ImGuiSelectableFlags_
1278 ImGuiSelectableFlags_None = 0,
1279 ImGuiSelectableFlags_NoAutoClosePopups = 1 << 0,
1280 ImGuiSelectableFlags_SpanAllColumns = 1 << 1,
1281 ImGuiSelectableFlags_AllowDoubleClick = 1 << 2,
1282 ImGuiSelectableFlags_Disabled = 1 << 3,
1283 ImGuiSelectableFlags_AllowOverlap = 1 << 4,
1284 ImGuiSelectableFlags_Highlight = 1 << 5,
1286 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1287 ImGuiSelectableFlags_DontClosePopups = ImGuiSelectableFlags_NoAutoClosePopups,
1288 ImGuiSelectableFlags_AllowItemOverlap = ImGuiSelectableFlags_AllowOverlap,
1293 enum ImGuiComboFlags_
1295 ImGuiComboFlags_None = 0,
1296 ImGuiComboFlags_PopupAlignLeft = 1 << 0,
1297 ImGuiComboFlags_HeightSmall = 1 << 1,
1298 ImGuiComboFlags_HeightRegular = 1 << 2,
1299 ImGuiComboFlags_HeightLarge = 1 << 3,
1300 ImGuiComboFlags_HeightLargest = 1 << 4,
1301 ImGuiComboFlags_NoArrowButton = 1 << 5,
1302 ImGuiComboFlags_NoPreview = 1 << 6,
1303 ImGuiComboFlags_WidthFitPreview = 1 << 7,
1304 ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest,
1308 enum ImGuiTabBarFlags_
1310 ImGuiTabBarFlags_None = 0,
1311 ImGuiTabBarFlags_Reorderable = 1 << 0,
1312 ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1,
1313 ImGuiTabBarFlags_TabListPopupButton = 1 << 2,
1314 ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3,
1315 ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4,
1316 ImGuiTabBarFlags_NoTooltip = 1 << 5,
1317 ImGuiTabBarFlags_DrawSelectedOverline = 1 << 6,
1318 ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 7,
1319 ImGuiTabBarFlags_FittingPolicyScroll = 1 << 8,
1320 ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll,
1321 ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown,
1325 enum ImGuiTabItemFlags_
1327 ImGuiTabItemFlags_None = 0,
1328 ImGuiTabItemFlags_UnsavedDocument = 1 << 0,
1329 ImGuiTabItemFlags_SetSelected = 1 << 1,
1330 ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2,
1331 ImGuiTabItemFlags_NoPushId = 1 << 3,
1332 ImGuiTabItemFlags_NoTooltip = 1 << 4,
1333 ImGuiTabItemFlags_NoReorder = 1 << 5,
1334 ImGuiTabItemFlags_Leading = 1 << 6,
1335 ImGuiTabItemFlags_Trailing = 1 << 7,
1336 ImGuiTabItemFlags_NoAssumedClosure = 1 << 8,
1340 enum ImGuiFocusedFlags_
1342 ImGuiFocusedFlags_None = 0,
1343 ImGuiFocusedFlags_ChildWindows = 1 << 0,
1344 ImGuiFocusedFlags_RootWindow = 1 << 1,
1345 ImGuiFocusedFlags_AnyWindow = 1 << 2,
1346 ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3,
1347 ImGuiFocusedFlags_DockHierarchy = 1 << 4,
1348 ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows,
1354 enum ImGuiHoveredFlags_
1356 ImGuiHoveredFlags_None = 0,
1357 ImGuiHoveredFlags_ChildWindows = 1 << 0,
1358 ImGuiHoveredFlags_RootWindow = 1 << 1,
1359 ImGuiHoveredFlags_AnyWindow = 1 << 2,
1360 ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3,
1361 ImGuiHoveredFlags_DockHierarchy = 1 << 4,
1362 ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5,
1364 ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7,
1365 ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8,
1366 ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9,
1367 ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10,
1368 ImGuiHoveredFlags_NoNavOverride = 1 << 11,
1369 ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow,
1370 ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped,
1371 ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows,
1379 ImGuiHoveredFlags_ForTooltip = 1 << 12,
1384 ImGuiHoveredFlags_Stationary = 1 << 13,
1385 ImGuiHoveredFlags_DelayNone = 1 << 14,
1386 ImGuiHoveredFlags_DelayShort = 1 << 15,
1387 ImGuiHoveredFlags_DelayNormal = 1 << 16,
1388 ImGuiHoveredFlags_NoSharedDelay = 1 << 17,
1394 enum ImGuiDockNodeFlags_
1396 ImGuiDockNodeFlags_None = 0,
1397 ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0,
1399 ImGuiDockNodeFlags_NoDockingOverCentralNode = 1 << 2,
1400 ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3,
1401 ImGuiDockNodeFlags_NoDockingSplit = 1 << 4,
1402 ImGuiDockNodeFlags_NoResize = 1 << 5,
1403 ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6,
1404 ImGuiDockNodeFlags_NoUndocking = 1 << 7,
1406 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1407 ImGuiDockNodeFlags_NoSplit = ImGuiDockNodeFlags_NoDockingSplit,
1408 ImGuiDockNodeFlags_NoDockingInCentralNode = ImGuiDockNodeFlags_NoDockingOverCentralNode,
1413 enum ImGuiDragDropFlags_
1415 ImGuiDragDropFlags_None = 0,
1417 ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0,
1418 ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1,
1419 ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2,
1420 ImGuiDragDropFlags_SourceAllowNullID = 1 << 3,
1421 ImGuiDragDropFlags_SourceExtern = 1 << 4,
1422 ImGuiDragDropFlags_PayloadAutoExpire = 1 << 5,
1423 ImGuiDragDropFlags_PayloadNoCrossContext = 1 << 6,
1424 ImGuiDragDropFlags_PayloadNoCrossProcess = 1 << 7,
1426 ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10,
1427 ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11,
1428 ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12,
1429 ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect,
1431 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1432 ImGuiDragDropFlags_SourceAutoExpirePayload = ImGuiDragDropFlags_PayloadAutoExpire,
1437 #define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" // float[3]: Standard type for colors, without alpha. User code may use this type. 1438 #define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" // float[4]: Standard type for colors. User code may use this type. 1451 ImGuiDataType_Float,
1452 ImGuiDataType_Double,
1469 enum ImGuiSortDirection : ImU8
1471 ImGuiSortDirection_None = 0,
1472 ImGuiSortDirection_Ascending = 1,
1473 ImGuiSortDirection_Descending = 2
1477 #if defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_OBSOLETE_KEYIO) 1478 #define IMGUI_DISABLE_OBSOLETE_KEYIO 1493 ImGuiKey_RightArrow,
1506 ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper,
1507 ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper,
1509 ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9,
1510 ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J,
1511 ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T,
1512 ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z,
1513 ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6,
1514 ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12,
1515 ImGuiKey_F13, ImGuiKey_F14, ImGuiKey_F15, ImGuiKey_F16, ImGuiKey_F17, ImGuiKey_F18,
1516 ImGuiKey_F19, ImGuiKey_F20, ImGuiKey_F21, ImGuiKey_F22, ImGuiKey_F23, ImGuiKey_F24,
1517 ImGuiKey_Apostrophe,
1524 ImGuiKey_LeftBracket,
1526 ImGuiKey_RightBracket,
1527 ImGuiKey_GraveAccent,
1529 ImGuiKey_ScrollLock,
1531 ImGuiKey_PrintScreen,
1533 ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4,
1534 ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9,
1535 ImGuiKey_KeypadDecimal,
1536 ImGuiKey_KeypadDivide,
1537 ImGuiKey_KeypadMultiply,
1538 ImGuiKey_KeypadSubtract,
1540 ImGuiKey_KeypadEnter,
1541 ImGuiKey_KeypadEqual,
1543 ImGuiKey_AppForward,
1547 ImGuiKey_GamepadStart,
1548 ImGuiKey_GamepadBack,
1549 ImGuiKey_GamepadFaceLeft,
1550 ImGuiKey_GamepadFaceRight,
1551 ImGuiKey_GamepadFaceUp,
1552 ImGuiKey_GamepadFaceDown,
1553 ImGuiKey_GamepadDpadLeft,
1554 ImGuiKey_GamepadDpadRight,
1555 ImGuiKey_GamepadDpadUp,
1556 ImGuiKey_GamepadDpadDown,
1563 ImGuiKey_GamepadLStickLeft,
1564 ImGuiKey_GamepadLStickRight,
1565 ImGuiKey_GamepadLStickUp,
1566 ImGuiKey_GamepadLStickDown,
1567 ImGuiKey_GamepadRStickLeft,
1568 ImGuiKey_GamepadRStickRight,
1569 ImGuiKey_GamepadRStickUp,
1570 ImGuiKey_GamepadRStickDown,
1574 ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY,
1577 ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper,
1590 ImGuiMod_Ctrl = 1 << 12,
1591 ImGuiMod_Shift = 1 << 13,
1592 ImGuiMod_Alt = 1 << 14,
1593 ImGuiMod_Super = 1 << 15,
1594 ImGuiMod_Mask_ = 0xF000,
1599 ImGuiKey_NamedKey_BEGIN = 512,
1600 ImGuiKey_NamedKey_END = ImGuiKey_COUNT,
1601 ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN,
1602 #ifdef IMGUI_DISABLE_OBSOLETE_KEYIO 1603 ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT,
1604 ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN,
1606 ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT,
1607 ImGuiKey_KeysData_OFFSET = 0,
1610 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1611 ImGuiMod_Shortcut = ImGuiMod_Ctrl,
1612 ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, ImGuiKey_ModSuper = ImGuiMod_Super,
1620 enum ImGuiInputFlags_
1622 ImGuiInputFlags_None = 0,
1623 ImGuiInputFlags_Repeat = 1 << 0,
1628 ImGuiInputFlags_RouteActive = 1 << 10,
1629 ImGuiInputFlags_RouteFocused = 1 << 11,
1630 ImGuiInputFlags_RouteGlobal = 1 << 12,
1631 ImGuiInputFlags_RouteAlways = 1 << 13,
1633 ImGuiInputFlags_RouteOverFocused = 1 << 14,
1634 ImGuiInputFlags_RouteOverActive = 1 << 15,
1635 ImGuiInputFlags_RouteUnlessBgFocused = 1 << 16,
1636 ImGuiInputFlags_RouteFromRootWindow = 1 << 17,
1639 ImGuiInputFlags_Tooltip = 1 << 18,
1642 #ifndef IMGUI_DISABLE_OBSOLETE_KEYIO 1648 ImGuiNavInput_Activate, ImGuiNavInput_Cancel, ImGuiNavInput_Input, ImGuiNavInput_Menu, ImGuiNavInput_DpadLeft, ImGuiNavInput_DpadRight, ImGuiNavInput_DpadUp, ImGuiNavInput_DpadDown,
1649 ImGuiNavInput_LStickLeft, ImGuiNavInput_LStickRight, ImGuiNavInput_LStickUp, ImGuiNavInput_LStickDown, ImGuiNavInput_FocusPrev, ImGuiNavInput_FocusNext, ImGuiNavInput_TweakSlow, ImGuiNavInput_TweakFast,
1650 ImGuiNavInput_COUNT,
1655 enum ImGuiConfigFlags_
1657 ImGuiConfigFlags_None = 0,
1658 ImGuiConfigFlags_NavEnableKeyboard = 1 << 0,
1659 ImGuiConfigFlags_NavEnableGamepad = 1 << 1,
1660 ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2,
1661 ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3,
1662 ImGuiConfigFlags_NoMouse = 1 << 4,
1663 ImGuiConfigFlags_NoMouseCursorChange = 1 << 5,
1664 ImGuiConfigFlags_NoKeyboard = 1 << 6,
1667 ImGuiConfigFlags_DockingEnable = 1 << 7,
1671 ImGuiConfigFlags_ViewportsEnable = 1 << 10,
1672 ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 14,
1673 ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 15,
1676 ImGuiConfigFlags_IsSRGB = 1 << 20,
1677 ImGuiConfigFlags_IsTouchScreen = 1 << 21,
1681 enum ImGuiBackendFlags_
1683 ImGuiBackendFlags_None = 0,
1684 ImGuiBackendFlags_HasGamepad = 1 << 0,
1685 ImGuiBackendFlags_HasMouseCursors = 1 << 1,
1686 ImGuiBackendFlags_HasSetMousePos = 1 << 2,
1687 ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3,
1690 ImGuiBackendFlags_PlatformHasViewports = 1 << 10,
1691 ImGuiBackendFlags_HasMouseHoveredViewport=1 << 11,
1692 ImGuiBackendFlags_RendererHasViewports = 1 << 12,
1699 ImGuiCol_TextDisabled,
1704 ImGuiCol_BorderShadow,
1706 ImGuiCol_FrameBgHovered,
1707 ImGuiCol_FrameBgActive,
1709 ImGuiCol_TitleBgActive,
1710 ImGuiCol_TitleBgCollapsed,
1712 ImGuiCol_ScrollbarBg,
1713 ImGuiCol_ScrollbarGrab,
1714 ImGuiCol_ScrollbarGrabHovered,
1715 ImGuiCol_ScrollbarGrabActive,
1717 ImGuiCol_SliderGrab,
1718 ImGuiCol_SliderGrabActive,
1720 ImGuiCol_ButtonHovered,
1721 ImGuiCol_ButtonActive,
1723 ImGuiCol_HeaderHovered,
1724 ImGuiCol_HeaderActive,
1726 ImGuiCol_SeparatorHovered,
1727 ImGuiCol_SeparatorActive,
1728 ImGuiCol_ResizeGrip,
1729 ImGuiCol_ResizeGripHovered,
1730 ImGuiCol_ResizeGripActive,
1731 ImGuiCol_TabHovered,
1733 ImGuiCol_TabSelected,
1734 ImGuiCol_TabSelectedOverline,
1736 ImGuiCol_TabDimmedSelected,
1737 ImGuiCol_TabDimmedSelectedOverline,
1738 ImGuiCol_DockingPreview,
1739 ImGuiCol_DockingEmptyBg,
1741 ImGuiCol_PlotLinesHovered,
1742 ImGuiCol_PlotHistogram,
1743 ImGuiCol_PlotHistogramHovered,
1744 ImGuiCol_TableHeaderBg,
1745 ImGuiCol_TableBorderStrong,
1746 ImGuiCol_TableBorderLight,
1747 ImGuiCol_TableRowBg,
1748 ImGuiCol_TableRowBgAlt,
1750 ImGuiCol_TextSelectedBg,
1751 ImGuiCol_DragDropTarget,
1752 ImGuiCol_NavHighlight,
1753 ImGuiCol_NavWindowingHighlight,
1754 ImGuiCol_NavWindowingDimBg,
1755 ImGuiCol_ModalWindowDimBg,
1758 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 1759 ImGuiCol_TabActive = ImGuiCol_TabSelected,
1760 ImGuiCol_TabUnfocused = ImGuiCol_TabDimmed,
1761 ImGuiCol_TabUnfocusedActive = ImGuiCol_TabDimmedSelected,
1776 ImGuiStyleVar_Alpha,
1777 ImGuiStyleVar_DisabledAlpha,
1778 ImGuiStyleVar_WindowPadding,
1779 ImGuiStyleVar_WindowRounding,
1780 ImGuiStyleVar_WindowBorderSize,
1781 ImGuiStyleVar_WindowMinSize,
1782 ImGuiStyleVar_WindowTitleAlign,
1783 ImGuiStyleVar_ChildRounding,
1784 ImGuiStyleVar_ChildBorderSize,
1785 ImGuiStyleVar_PopupRounding,
1786 ImGuiStyleVar_PopupBorderSize,
1787 ImGuiStyleVar_FramePadding,
1788 ImGuiStyleVar_FrameRounding,
1789 ImGuiStyleVar_FrameBorderSize,
1790 ImGuiStyleVar_ItemSpacing,
1791 ImGuiStyleVar_ItemInnerSpacing,
1792 ImGuiStyleVar_IndentSpacing,
1793 ImGuiStyleVar_CellPadding,
1794 ImGuiStyleVar_ScrollbarSize,
1795 ImGuiStyleVar_ScrollbarRounding,
1796 ImGuiStyleVar_GrabMinSize,
1797 ImGuiStyleVar_GrabRounding,
1798 ImGuiStyleVar_TabRounding,
1799 ImGuiStyleVar_TabBorderSize,
1800 ImGuiStyleVar_TabBarBorderSize,
1801 ImGuiStyleVar_TabBarOverlineSize,
1802 ImGuiStyleVar_TableAngledHeadersAngle,
1803 ImGuiStyleVar_TableAngledHeadersTextAlign,
1804 ImGuiStyleVar_ButtonTextAlign,
1805 ImGuiStyleVar_SelectableTextAlign,
1806 ImGuiStyleVar_SeparatorTextBorderSize,
1807 ImGuiStyleVar_SeparatorTextAlign,
1808 ImGuiStyleVar_SeparatorTextPadding,
1809 ImGuiStyleVar_DockingSeparatorSize,
1814 enum ImGuiButtonFlags_
1816 ImGuiButtonFlags_None = 0,
1817 ImGuiButtonFlags_MouseButtonLeft = 1 << 0,
1818 ImGuiButtonFlags_MouseButtonRight = 1 << 1,
1819 ImGuiButtonFlags_MouseButtonMiddle = 1 << 2,
1820 ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle,
1825 enum ImGuiColorEditFlags_
1827 ImGuiColorEditFlags_None = 0,
1828 ImGuiColorEditFlags_NoAlpha = 1 << 1,
1829 ImGuiColorEditFlags_NoPicker = 1 << 2,
1830 ImGuiColorEditFlags_NoOptions = 1 << 3,
1831 ImGuiColorEditFlags_NoSmallPreview = 1 << 4,
1832 ImGuiColorEditFlags_NoInputs = 1 << 5,
1833 ImGuiColorEditFlags_NoTooltip = 1 << 6,
1834 ImGuiColorEditFlags_NoLabel = 1 << 7,
1835 ImGuiColorEditFlags_NoSidePreview = 1 << 8,
1836 ImGuiColorEditFlags_NoDragDrop = 1 << 9,
1837 ImGuiColorEditFlags_NoBorder = 1 << 10,
1840 ImGuiColorEditFlags_AlphaBar = 1 << 16,
1841 ImGuiColorEditFlags_AlphaPreview = 1 << 17,
1842 ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 18,
1843 ImGuiColorEditFlags_HDR = 1 << 19,
1844 ImGuiColorEditFlags_DisplayRGB = 1 << 20,
1845 ImGuiColorEditFlags_DisplayHSV = 1 << 21,
1846 ImGuiColorEditFlags_DisplayHex = 1 << 22,
1847 ImGuiColorEditFlags_Uint8 = 1 << 23,
1848 ImGuiColorEditFlags_Float = 1 << 24,
1849 ImGuiColorEditFlags_PickerHueBar = 1 << 25,
1850 ImGuiColorEditFlags_PickerHueWheel = 1 << 26,
1851 ImGuiColorEditFlags_InputRGB = 1 << 27,
1852 ImGuiColorEditFlags_InputHSV = 1 << 28,
1856 ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar,
1859 ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex,
1860 ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float,
1861 ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar,
1862 ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV,
1871 enum ImGuiSliderFlags_
1873 ImGuiSliderFlags_None = 0,
1874 ImGuiSliderFlags_Logarithmic = 1 << 5,
1875 ImGuiSliderFlags_NoRoundToFormat = 1 << 6,
1876 ImGuiSliderFlags_NoInput = 1 << 7,
1877 ImGuiSliderFlags_WrapAround = 1 << 8,
1878 ImGuiSliderFlags_ClampOnInput = 1 << 9,
1879 ImGuiSliderFlags_ClampZeroRange = 1 << 10,
1880 ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange,
1881 ImGuiSliderFlags_InvalidMask_ = 0x7000000F,
1886 enum ImGuiMouseButton_
1888 ImGuiMouseButton_Left = 0,
1889 ImGuiMouseButton_Right = 1,
1890 ImGuiMouseButton_Middle = 2,
1891 ImGuiMouseButton_COUNT = 5
1896 enum ImGuiMouseCursor_
1898 ImGuiMouseCursor_None = -1,
1899 ImGuiMouseCursor_Arrow = 0,
1900 ImGuiMouseCursor_TextInput,
1901 ImGuiMouseCursor_ResizeAll,
1902 ImGuiMouseCursor_ResizeNS,
1903 ImGuiMouseCursor_ResizeEW,
1904 ImGuiMouseCursor_ResizeNESW,
1905 ImGuiMouseCursor_ResizeNWSE,
1906 ImGuiMouseCursor_Hand,
1907 ImGuiMouseCursor_NotAllowed,
1908 ImGuiMouseCursor_COUNT
1915 enum ImGuiMouseSource :
int 1917 ImGuiMouseSource_Mouse = 0,
1918 ImGuiMouseSource_TouchScreen,
1919 ImGuiMouseSource_Pen,
1920 ImGuiMouseSource_COUNT
1929 ImGuiCond_Always = 1 << 0,
1930 ImGuiCond_Once = 1 << 1,
1931 ImGuiCond_FirstUseEver = 1 << 2,
1932 ImGuiCond_Appearing = 1 << 3,
1961 enum ImGuiTableFlags_
1964 ImGuiTableFlags_None = 0,
1965 ImGuiTableFlags_Resizable = 1 << 0,
1966 ImGuiTableFlags_Reorderable = 1 << 1,
1967 ImGuiTableFlags_Hideable = 1 << 2,
1968 ImGuiTableFlags_Sortable = 1 << 3,
1969 ImGuiTableFlags_NoSavedSettings = 1 << 4,
1970 ImGuiTableFlags_ContextMenuInBody = 1 << 5,
1972 ImGuiTableFlags_RowBg = 1 << 6,
1973 ImGuiTableFlags_BordersInnerH = 1 << 7,
1974 ImGuiTableFlags_BordersOuterH = 1 << 8,
1975 ImGuiTableFlags_BordersInnerV = 1 << 9,
1976 ImGuiTableFlags_BordersOuterV = 1 << 10,
1977 ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH,
1978 ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV,
1979 ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH,
1980 ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH,
1981 ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter,
1982 ImGuiTableFlags_NoBordersInBody = 1 << 11,
1983 ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12,
1985 ImGuiTableFlags_SizingFixedFit = 1 << 13,
1986 ImGuiTableFlags_SizingFixedSame = 2 << 13,
1987 ImGuiTableFlags_SizingStretchProp = 3 << 13,
1988 ImGuiTableFlags_SizingStretchSame = 4 << 13,
1990 ImGuiTableFlags_NoHostExtendX = 1 << 16,
1991 ImGuiTableFlags_NoHostExtendY = 1 << 17,
1992 ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18,
1993 ImGuiTableFlags_PreciseWidths = 1 << 19,
1995 ImGuiTableFlags_NoClip = 1 << 20,
1997 ImGuiTableFlags_PadOuterX = 1 << 21,
1998 ImGuiTableFlags_NoPadOuterX = 1 << 22,
1999 ImGuiTableFlags_NoPadInnerX = 1 << 23,
2001 ImGuiTableFlags_ScrollX = 1 << 24,
2002 ImGuiTableFlags_ScrollY = 1 << 25,
2004 ImGuiTableFlags_SortMulti = 1 << 26,
2005 ImGuiTableFlags_SortTristate = 1 << 27,
2007 ImGuiTableFlags_HighlightHoveredColumn = 1 << 28,
2010 ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame,
2014 enum ImGuiTableColumnFlags_
2017 ImGuiTableColumnFlags_None = 0,
2018 ImGuiTableColumnFlags_Disabled = 1 << 0,
2019 ImGuiTableColumnFlags_DefaultHide = 1 << 1,
2020 ImGuiTableColumnFlags_DefaultSort = 1 << 2,
2021 ImGuiTableColumnFlags_WidthStretch = 1 << 3,
2022 ImGuiTableColumnFlags_WidthFixed = 1 << 4,
2023 ImGuiTableColumnFlags_NoResize = 1 << 5,
2024 ImGuiTableColumnFlags_NoReorder = 1 << 6,
2025 ImGuiTableColumnFlags_NoHide = 1 << 7,
2026 ImGuiTableColumnFlags_NoClip = 1 << 8,
2027 ImGuiTableColumnFlags_NoSort = 1 << 9,
2028 ImGuiTableColumnFlags_NoSortAscending = 1 << 10,
2029 ImGuiTableColumnFlags_NoSortDescending = 1 << 11,
2030 ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12,
2031 ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13,
2032 ImGuiTableColumnFlags_PreferSortAscending = 1 << 14,
2033 ImGuiTableColumnFlags_PreferSortDescending = 1 << 15,
2034 ImGuiTableColumnFlags_IndentEnable = 1 << 16,
2035 ImGuiTableColumnFlags_IndentDisable = 1 << 17,
2036 ImGuiTableColumnFlags_AngledHeader = 1 << 18,
2039 ImGuiTableColumnFlags_IsEnabled = 1 << 24,
2040 ImGuiTableColumnFlags_IsVisible = 1 << 25,
2041 ImGuiTableColumnFlags_IsSorted = 1 << 26,
2042 ImGuiTableColumnFlags_IsHovered = 1 << 27,
2045 ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed,
2046 ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable,
2047 ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered,
2048 ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30,
2052 enum ImGuiTableRowFlags_
2054 ImGuiTableRowFlags_None = 0,
2055 ImGuiTableRowFlags_Headers = 1 << 0,
2067 enum ImGuiTableBgTarget_
2069 ImGuiTableBgTarget_None = 0,
2070 ImGuiTableBgTarget_RowBg0 = 1,
2071 ImGuiTableBgTarget_RowBg1 = 2,
2072 ImGuiTableBgTarget_CellBg = 3,
2091 ImGuiID ColumnUserID;
2094 ImGuiSortDirection SortDirection;
2107 #ifndef IMGUI_DISABLE_DEBUG_TOOLS 2108 #define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) 2110 #define IMGUI_DEBUG_LOG(...) ((void)0) 2120 inline void*
operator new(size_t,
ImNewWrapper,
void* ptr) {
return ptr; }
2121 inline void operator delete(
void*,
ImNewWrapper,
void*) {}
2122 #define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) 2123 #define IM_FREE(_PTR) ImGui::MemFree(_PTR) 2124 #define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) 2125 #define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE 2126 template<
typename T>
void IM_DELETE(T* p) {
if (p) { p->~T(); ImGui::MemFree(p); } }
2139 IM_MSVC_RUNTIME_CHECKS_OFF
2140 template<
typename T>
2148 typedef T value_type;
2149 typedef value_type* iterator;
2150 typedef const value_type* const_iterator;
2153 inline ImVector() { Size = Capacity = 0; Data = NULL; }
2154 inline ImVector(
const ImVector<T>& src) { Size = Capacity = 0; Data = NULL; operator=(src); }
2155 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; }
2156 inline ~
ImVector() {
if (Data) IM_FREE(Data); }
2158 inline void clear() {
if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } }
2159 inline void clear_delete() {
for (
int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); }
2160 inline void clear_destruct() {
for (
int n = 0; n < Size; n++) Data[n].~T(); clear(); }
2162 inline bool empty()
const {
return Size == 0; }
2163 inline int size()
const {
return Size; }
2164 inline int size_in_bytes()
const {
return Size * (int)
sizeof(T); }
2165 inline int max_size()
const {
return 0x7FFFFFFF / (int)
sizeof(T); }
2166 inline int capacity()
const {
return Capacity; }
2167 inline T& operator[](
int i) { IM_ASSERT(i >= 0 && i < Size);
return Data[i]; }
2168 inline const T& operator[](
int i)
const { IM_ASSERT(i >= 0 && i < Size);
return Data[i]; }
2170 inline T* begin() {
return Data; }
2171 inline const T* begin()
const {
return Data; }
2172 inline T* end() {
return Data + Size; }
2173 inline const T* end()
const {
return Data + Size; }
2174 inline T& front() { IM_ASSERT(Size > 0);
return Data[0]; }
2175 inline const T& front()
const { IM_ASSERT(Size > 0);
return Data[0]; }
2176 inline T& back() { IM_ASSERT(Size > 0);
return Data[Size - 1]; }
2177 inline const T& back()
const { IM_ASSERT(Size > 0);
return Data[Size - 1]; }
2178 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; }
2180 inline int _grow_capacity(
int sz)
const {
int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8;
return new_capacity > sz ? new_capacity : sz; }
2181 inline void resize(
int new_size) {
if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; }
2182 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; }
2183 inline void shrink(
int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; }
2184 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; }
2185 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; }
2188 inline void push_back(
const T& v) {
if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v,
sizeof(v)); Size++; }
2189 inline void pop_back() { IM_ASSERT(Size > 0); Size--; }
2190 inline void push_front(
const T& v) {
if (Size == 0) push_back(v);
else insert(Data, v); }
2191 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; }
2192 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; }
2193 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; }
2194 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; }
2195 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; }
2196 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; }
2197 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; }
2198 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; }
2199 inline bool find_erase(
const T& v) {
const T* it =
find(v);
if (it < Data + Size) { erase(it);
return true; }
return false; }
2200 inline bool find_erase_unsorted(
const T& v) {
const T* it =
find(v);
if (it < Data + Size) { erase_unsorted(it);
return true; }
return false; }
2201 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; }
2203 IM_MSVC_RUNTIME_CHECKS_RESTORE
2216 float DisabledAlpha;
2218 float WindowRounding;
2219 float WindowBorderSize;
2222 ImGuiDir WindowMenuButtonPosition;
2223 float ChildRounding;
2224 float ChildBorderSize;
2225 float PopupRounding;
2226 float PopupBorderSize;
2228 float FrameRounding;
2229 float FrameBorderSize;
2233 ImVec2 TouchExtraPadding;
2234 float IndentSpacing;
2235 float ColumnsMinSpacing;
2236 float ScrollbarSize;
2237 float ScrollbarRounding;
2240 float LogSliderDeadzone;
2242 float TabBorderSize;
2243 float TabMinWidthForCloseButton;
2244 float TabBarBorderSize;
2245 float TabBarOverlineSize;
2246 float TableAngledHeadersAngle;
2247 ImVec2 TableAngledHeadersTextAlign;
2248 ImGuiDir ColorButtonPosition;
2250 ImVec2 SelectableTextAlign;
2251 float SeparatorTextBorderSize;
2252 ImVec2 SeparatorTextAlign;
2253 ImVec2 SeparatorTextPadding;
2254 ImVec2 DisplayWindowPadding;
2255 ImVec2 DisplaySafeAreaPadding;
2256 float DockingSeparatorSize;
2257 float MouseCursorScale;
2258 bool AntiAliasedLines;
2259 bool AntiAliasedLinesUseTex;
2260 bool AntiAliasedFill;
2261 float CurveTessellationTol;
2262 float CircleTessellationMaxError;
2263 ImVec4 Colors[ImGuiCol_COUNT];
2267 float HoverStationaryDelay;
2268 float HoverDelayShort;
2269 float HoverDelayNormal;
2270 ImGuiHoveredFlags HoverFlagsForTooltipMouse;
2271 ImGuiHoveredFlags HoverFlagsForTooltipNav;
2274 IMGUI_API
void ScaleAllSizes(
float scale_factor);
2295 float DownDurationPrev;
2305 ImGuiConfigFlags ConfigFlags;
2306 ImGuiBackendFlags BackendFlags;
2309 float IniSavingRate;
2310 const char* IniFilename;
2311 const char* LogFilename;
2316 float FontGlobalScale;
2317 bool FontAllowUserScaling;
2319 ImVec2 DisplayFramebufferScale;
2322 bool ConfigDockingNoSplit;
2323 bool ConfigDockingWithShift;
2324 bool ConfigDockingAlwaysTabBar;
2325 bool ConfigDockingTransparentPayload;
2328 bool ConfigViewportsNoAutoMerge;
2329 bool ConfigViewportsNoTaskBarIcon;
2330 bool ConfigViewportsNoDecoration;
2331 bool ConfigViewportsNoDefaultParent;
2335 bool MouseDrawCursor;
2336 bool ConfigMacOSXBehaviors;
2337 bool ConfigNavSwapGamepadButtons;
2338 bool ConfigInputTrickleEventQueue;
2339 bool ConfigInputTextCursorBlink;
2340 bool ConfigInputTextEnterKeepActive;
2341 bool ConfigDragClickToInputText;
2342 bool ConfigWindowsResizeFromEdges;
2343 bool ConfigWindowsMoveFromTitleBarOnly;
2344 bool ConfigScrollbarScrollByPage;
2345 float ConfigMemoryCompactTimer;
2349 float MouseDoubleClickTime;
2350 float MouseDoubleClickMaxDist;
2351 float MouseDragThreshold;
2352 float KeyRepeatDelay;
2353 float KeyRepeatRate;
2373 bool ConfigErrorRecovery;
2374 bool ConfigErrorRecoveryEnableAssert;
2375 bool ConfigErrorRecoveryEnableDebugLog;
2376 bool ConfigErrorRecoveryEnableTooltip;
2382 bool ConfigDebugIsDebuggerPresent;
2388 bool ConfigDebugHighlightIdConflicts;
2394 bool ConfigDebugBeginReturnValueOnce;
2395 bool ConfigDebugBeginReturnValueLoop;
2400 bool ConfigDebugIgnoreFocusLoss;
2403 bool ConfigDebugIniSettings;
2411 const char* BackendPlatformName;
2412 const char* BackendRendererName;
2413 void* BackendPlatformUserData;
2414 void* BackendRendererUserData;
2415 void* BackendLanguageUserData;
2422 IMGUI_API
void AddKeyEvent(ImGuiKey key,
bool down);
2423 IMGUI_API
void AddKeyAnalogEvent(ImGuiKey key,
bool down,
float v);
2424 IMGUI_API
void AddMousePosEvent(
float x,
float y);
2425 IMGUI_API
void AddMouseButtonEvent(
int button,
bool down);
2426 IMGUI_API
void AddMouseWheelEvent(
float wheel_x,
float wheel_y);
2427 IMGUI_API
void AddMouseSourceEvent(ImGuiMouseSource source);
2428 IMGUI_API
void AddMouseViewportEvent(ImGuiID
id);
2429 IMGUI_API
void AddFocusEvent(
bool focused);
2430 IMGUI_API
void AddInputCharacter(
unsigned int c);
2431 IMGUI_API
void AddInputCharacterUTF16(ImWchar16 c);
2432 IMGUI_API
void AddInputCharactersUTF8(
const char* str);
2434 IMGUI_API
void SetKeyEventNativeData(ImGuiKey key,
int native_keycode,
int native_scancode,
int native_legacy_index = -1);
2435 IMGUI_API
void SetAppAcceptingEvents(
bool accepting_events);
2436 IMGUI_API
void ClearEventsQueue();
2437 IMGUI_API
void ClearInputKeys();
2438 IMGUI_API
void ClearInputMouse();
2439 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 2440 IMGUI_API
void ClearInputCharacters();
2449 bool WantCaptureMouse;
2450 bool WantCaptureKeyboard;
2452 bool WantSetMousePos;
2453 bool WantSaveIniSettings;
2457 int MetricsRenderVertices;
2458 int MetricsRenderIndices;
2459 int MetricsRenderWindows;
2460 int MetricsActiveWindows;
2476 ImGuiMouseSource MouseSource;
2477 ImGuiID MouseHoveredViewport;
2484 ImGuiKeyChord KeyMods;
2486 bool WantCaptureMouseUnlessPopupClose;
2488 ImVec2 MouseClickedPos[5];
2489 double MouseClickedTime[5];
2490 bool MouseClicked[5];
2491 bool MouseDoubleClicked[5];
2492 ImU16 MouseClickedCount[5];
2493 ImU16 MouseClickedLastCount[5];
2494 bool MouseReleased[5];
2495 bool MouseDownOwned[5];
2496 bool MouseDownOwnedUnlessPopupClose[5];
2497 bool MouseWheelRequestAxisSwap;
2498 bool MouseCtrlLeftAsRightClick;
2499 float MouseDownDuration[5];
2500 float MouseDownDurationPrev[5];
2501 ImVec2 MouseDragMaxDistanceAbs[5];
2502 float MouseDragMaxDistanceSqr[5];
2505 bool AppAcceptingEvents;
2506 ImS8 BackendUsingLegacyKeyArrays;
2507 bool BackendUsingLegacyNavInputArray;
2508 ImWchar16 InputQueueSurrogate;
2514 #ifndef IMGUI_DISABLE_OBSOLETE_KEYIO 2515 int KeyMap[ImGuiKey_COUNT];
2516 bool KeysDown[ImGuiKey_COUNT];
2517 float NavInputs[ImGuiNavInput_COUNT];
2523 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 2524 const char* (*GetClipboardTextFn)(
void* user_data);
2525 void (*SetClipboardTextFn)(
void* user_data,
const char* text);
2526 void* ClipboardUserData;
2548 ImGuiInputTextFlags EventFlag;
2549 ImGuiInputTextFlags Flags;
2570 IMGUI_API
void DeleteChars(
int pos,
int bytes_count);
2571 IMGUI_API
void InsertChars(
int pos,
const char* text,
const char* text_end = NULL);
2572 void SelectAll() { SelectionStart = 0; SelectionEnd = BufTextLen; }
2573 void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; }
2574 bool HasSelection()
const {
return SelectionStart != SelectionEnd; }
2597 ImGuiID ParentViewportId;
2598 ImGuiID FocusRouteParentWindowId;
2599 ImGuiViewportFlags ViewportFlagsOverrideSet;
2600 ImGuiViewportFlags ViewportFlagsOverrideClear;
2601 ImGuiTabItemFlags TabItemFlagsOverrideSet;
2602 ImGuiDockNodeFlags DockNodeFlagsOverrideSet;
2603 bool DockingAlwaysTabBar;
2604 bool DockingAllowUnclassed;
2606 ImGuiWindowClass() { memset(
this, 0,
sizeof(*
this)); ParentViewportId = (ImGuiID)-1; DockingAllowUnclassed =
true; }
2618 ImGuiID SourceParentId;
2620 char DataType[32 + 1];
2625 void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0,
sizeof(DataType)); DataFrameCount = -1; Preview = Delivery =
false; }
2626 bool IsDataType(
const char* type)
const {
return DataFrameCount != -1 && strcmp(type, DataType) == 0; }
2627 bool IsPreview()
const {
return Preview; }
2628 bool IsDelivery()
const {
return Delivery; }
2636 #define IM_UNICODE_CODEPOINT_INVALID 0xFFFD // Invalid Unicode code point (standard value). 2637 #ifdef IMGUI_USE_WCHAR32 2638 #define IM_UNICODE_CODEPOINT_MAX 0x10FFFF // Maximum Unicode code point supported by this build. 2640 #define IM_UNICODE_CODEPOINT_MAX 0xFFFF // Maximum Unicode code point supported by this build. 2648 mutable int RefFrame;
2649 operator bool()
const {
int current_frame = ImGui::GetFrameCount();
if (RefFrame == current_frame)
return false; RefFrame = current_frame;
return true; }
2656 IMGUI_API
bool Draw(
const char* label =
"Filter (inc,-exc)",
float width = 0.0f);
2657 IMGUI_API
bool PassFilter(
const char* text,
const char* text_end = NULL)
const;
2658 IMGUI_API
void Build();
2659 void Clear() { InputBuf[0] = 0; Build(); }
2660 bool IsActive()
const {
return !Filters.empty(); }
2669 ImGuiTextRange(
const char* _b,
const char* _e) { b = _b; e = _e; }
2670 bool empty()
const {
return b == e; }
2683 IMGUI_API
static char EmptyString[1];
2686 inline char operator[](
int i)
const { IM_ASSERT(Buf.Data != NULL);
return Buf.Data[i]; }
2687 const char* begin()
const {
return Buf.Data ? &Buf.front() : EmptyString; }
2688 const char* end()
const {
return Buf.Data ? &Buf.back() : EmptyString; }
2689 int size()
const {
return Buf.Size ? Buf.Size - 1 : 0; }
2690 bool empty()
const {
return Buf.Size <= 1; }
2691 void clear() { Buf.clear(); }
2692 void reserve(
int capacity) { Buf.reserve(capacity); }
2693 const char* c_str()
const {
return Buf.Data ? Buf.Data : EmptyString; }
2694 IMGUI_API
void append(
const char* str,
const char* str_end = NULL);
2695 IMGUI_API
void appendf(
const char* fmt, ...) IM_FMTARGS(2);
2696 IMGUI_API
void appendfv(
const char* fmt, va_list args) IM_FMTLIST(2);
2703 union {
int val_i;
float val_f;
void* val_p; };
2725 void Clear() { Data.clear(); }
2726 IMGUI_API
int GetInt(ImGuiID key,
int default_val = 0)
const;
2727 IMGUI_API
void SetInt(ImGuiID key,
int val);
2728 IMGUI_API
bool GetBool(ImGuiID key,
bool default_val =
false)
const;
2729 IMGUI_API
void SetBool(ImGuiID key,
bool val);
2730 IMGUI_API
float GetFloat(ImGuiID key,
float default_val = 0.0f)
const;
2731 IMGUI_API
void SetFloat(ImGuiID key,
float val);
2732 IMGUI_API
void* GetVoidPtr(ImGuiID key)
const;
2733 IMGUI_API
void SetVoidPtr(ImGuiID key,
void* val);
2739 IMGUI_API
int* GetIntRef(ImGuiID key,
int default_val = 0);
2740 IMGUI_API
bool* GetBoolRef(ImGuiID key,
bool default_val =
false);
2741 IMGUI_API
float* GetFloatRef(ImGuiID key,
float default_val = 0.0f);
2742 IMGUI_API
void** GetVoidPtrRef(ImGuiID key,
void* default_val = NULL);
2745 IMGUI_API
void BuildSortByKey();
2747 IMGUI_API
void SetAllInt(
int val);
2749 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 2782 double StartSeekOffsetY;
2788 IMGUI_API ~ImGuiListClipper();
2789 IMGUI_API
void Begin(
int items_count,
float items_height = -1.0f);
2790 IMGUI_API
void End();
2791 IMGUI_API
bool Step();
2795 inline void IncludeItemByIndex(
int item_index) { IncludeItemsByIndex(item_index, item_index + 1); }
2796 IMGUI_API
void IncludeItemsByIndex(
int item_begin,
int item_end);
2801 IMGUI_API
void SeekCursorForItem(
int item_index);
2803 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 2804 inline void IncludeRangeByIndices(
int item_begin,
int item_end) { IncludeItemsByIndex(item_begin, item_end); }
2805 inline void ForceDisplayRangeByIndices(
int item_begin,
int item_end) { IncludeItemsByIndex(item_begin, item_end); }
2814 #ifdef IMGUI_DEFINE_MATH_OPERATORS 2815 #define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED 2816 IM_MSVC_RUNTIME_CHECKS_OFF
2817 static inline ImVec2 operator*(
const ImVec2& lhs,
const float rhs) {
return ImVec2(lhs.x * rhs, lhs.y * rhs); }
2818 static inline ImVec2 operator/(
const ImVec2& lhs,
const float rhs) {
return ImVec2(lhs.x / rhs, lhs.y / rhs); }
2819 static inline ImVec2 operator+(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); }
2820 static inline ImVec2 operator-(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); }
2821 static inline ImVec2 operator*(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); }
2822 static inline ImVec2 operator/(
const ImVec2& lhs,
const ImVec2& rhs) {
return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); }
2824 static inline ImVec2& operator*=(
ImVec2& lhs,
const float rhs) { lhs.x *= rhs; lhs.y *= rhs;
return lhs; }
2825 static inline ImVec2& operator/=(
ImVec2& lhs,
const float rhs) { lhs.x /= rhs; lhs.y /= rhs;
return lhs; }
2826 static inline ImVec2& operator+=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y;
return lhs; }
2827 static inline ImVec2& operator-=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y;
return lhs; }
2828 static inline ImVec2& operator*=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y;
return lhs; }
2829 static inline ImVec2& operator/=(
ImVec2& lhs,
const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y;
return lhs; }
2830 static inline bool operator==(
const ImVec2& lhs,
const ImVec2& rhs) {
return lhs.x == rhs.x && lhs.y == rhs.y; }
2831 static inline bool operator!=(
const ImVec2& lhs,
const ImVec2& rhs) {
return lhs.x != rhs.x || lhs.y != rhs.y; }
2832 static inline ImVec4 operator+(
const ImVec4& lhs,
const ImVec4& rhs) {
return ImVec4(lhs.x + rhs.x, lhs.y + rhs.y, lhs.z + rhs.z, lhs.w + rhs.w); }
2833 static inline ImVec4 operator-(
const ImVec4& lhs,
const ImVec4& rhs) {
return ImVec4(lhs.x - rhs.x, lhs.y - rhs.y, lhs.z - rhs.z, lhs.w - rhs.w); }
2834 static inline ImVec4 operator*(
const ImVec4& lhs,
const ImVec4& rhs) {
return ImVec4(lhs.x * rhs.x, lhs.y * rhs.y, lhs.z * rhs.z, lhs.w * rhs.w); }
2835 static 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; }
2836 static 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; }
2837 IM_MSVC_RUNTIME_CHECKS_RESTORE
2842 #ifndef IM_COL32_R_SHIFT 2843 #ifdef IMGUI_USE_BGRA_PACKED_COLOR 2844 #define IM_COL32_R_SHIFT 16 2845 #define IM_COL32_G_SHIFT 8 2846 #define IM_COL32_B_SHIFT 0 2847 #define IM_COL32_A_SHIFT 24 2848 #define IM_COL32_A_MASK 0xFF000000 2850 #define IM_COL32_R_SHIFT 0 2851 #define IM_COL32_G_SHIFT 8 2852 #define IM_COL32_B_SHIFT 16 2853 #define IM_COL32_A_SHIFT 24 2854 #define IM_COL32_A_MASK 0xFF000000 2857 #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)) 2858 #define IM_COL32_WHITE IM_COL32(255,255,255,255) // Opaque white = 0xFFFFFFFF 2859 #define IM_COL32_BLACK IM_COL32(0,0,0,255) // Opaque black 2860 #define IM_COL32_BLACK_TRANS IM_COL32(0,0,0,0) // Transparent black = 0x00000000 2871 constexpr
ImColor(
float r,
float g,
float b,
float a = 1.0f) : Value(r, g, b, a) { }
2872 constexpr ImColor(
const ImVec4& col) : Value(col) {}
2873 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)) {}
2874 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)) {}
2875 inline operator ImU32()
const {
return ImGui::ColorConvertFloat4ToU32(Value); }
2876 inline operator ImVec4()
const {
return Value; }
2879 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; }
2880 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); }
2924 enum ImGuiMultiSelectFlags_
2926 ImGuiMultiSelectFlags_None = 0,
2927 ImGuiMultiSelectFlags_SingleSelect = 1 << 0,
2928 ImGuiMultiSelectFlags_NoSelectAll = 1 << 1,
2929 ImGuiMultiSelectFlags_NoRangeSelect = 1 << 2,
2930 ImGuiMultiSelectFlags_NoAutoSelect = 1 << 3,
2931 ImGuiMultiSelectFlags_NoAutoClear = 1 << 4,
2932 ImGuiMultiSelectFlags_NoAutoClearOnReselect = 1 << 5,
2933 ImGuiMultiSelectFlags_BoxSelect1d = 1 << 6,
2934 ImGuiMultiSelectFlags_BoxSelect2d = 1 << 7,
2935 ImGuiMultiSelectFlags_BoxSelectNoScroll = 1 << 8,
2936 ImGuiMultiSelectFlags_ClearOnEscape = 1 << 9,
2937 ImGuiMultiSelectFlags_ClearOnClickVoid = 1 << 10,
2938 ImGuiMultiSelectFlags_ScopeWindow = 1 << 11,
2939 ImGuiMultiSelectFlags_ScopeRect = 1 << 12,
2940 ImGuiMultiSelectFlags_SelectOnClick = 1 << 13,
2941 ImGuiMultiSelectFlags_SelectOnClickRelease = 1 << 14,
2943 ImGuiMultiSelectFlags_NavWrapX = 1 << 16,
2955 ImGuiSelectionUserData RangeSrcItem;
2956 ImGuiSelectionUserData NavIdItem;
2963 enum ImGuiSelectionRequestType
2965 ImGuiSelectionRequestType_None = 0,
2966 ImGuiSelectionRequestType_SetAll,
2967 ImGuiSelectionRequestType_SetRange,
2974 ImGuiSelectionRequestType
Type;
2976 ImS8 RangeDirection;
2977 ImGuiSelectionUserData RangeFirstItem;
2978 ImGuiSelectionUserData RangeLastItem;
3004 int _SelectionOrder;
3010 IMGUI_API
bool Contains(ImGuiID
id)
const;
3011 IMGUI_API
void Clear();
3012 IMGUI_API
void Swap(ImGuiSelectionBasicStorage& r);
3013 IMGUI_API
void SetItemSelected(ImGuiID
id,
bool selected);
3014 IMGUI_API
bool GetNextSelectedItem(
void** opaque_it, ImGuiID* out_id);
3015 inline ImGuiID GetStorageIdFromIndex(
int idx) {
return AdapterIndexToStorageId(
this, idx); }
3037 #ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX 3038 #define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) 3048 #ifndef ImDrawCallback 3056 #define ImDrawCallback_ResetRenderState (ImDrawCallback)(-8) 3066 ImTextureID TextureId;
3067 unsigned int VtxOffset;
3068 unsigned int IdxOffset;
3069 unsigned int ElemCount;
3070 ImDrawCallback UserCallback;
3071 void* UserCallbackData;
3073 ImDrawCmd() { memset(
this, 0,
sizeof(*
this)); }
3076 inline ImTextureID GetTexID()
const {
return TextureId; }
3080 #ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT 3092 IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT;
3099 ImTextureID TextureId;
3100 unsigned int VtxOffset;
3121 inline void Clear() { _Current = 0; _Count = 1; }
3122 IMGUI_API
void ClearFreeMemory();
3123 IMGUI_API
void Split(
ImDrawList* draw_list,
int count);
3125 IMGUI_API
void SetCurrentChannel(
ImDrawList* draw_list,
int channel_idx);
3132 ImDrawFlags_None = 0,
3133 ImDrawFlags_Closed = 1 << 0,
3134 ImDrawFlags_RoundCornersTopLeft = 1 << 4,
3135 ImDrawFlags_RoundCornersTopRight = 1 << 5,
3136 ImDrawFlags_RoundCornersBottomLeft = 1 << 6,
3137 ImDrawFlags_RoundCornersBottomRight = 1 << 7,
3138 ImDrawFlags_RoundCornersNone = 1 << 8,
3139 ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
3140 ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
3141 ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
3142 ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight,
3143 ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
3144 ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll,
3145 ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone,
3150 enum ImDrawListFlags_
3152 ImDrawListFlags_None = 0,
3153 ImDrawListFlags_AntiAliasedLines = 1 << 0,
3154 ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1,
3155 ImDrawListFlags_AntiAliasedFill = 1 << 2,
3156 ImDrawListFlags_AllowVtxOffset = 1 << 3,
3174 ImDrawListFlags Flags;
3177 unsigned int _VtxCurrentIdx;
3180 ImDrawIdx* _IdxWritePtr;
3187 const char* _OwnerName;
3193 IMGUI_API
void PushClipRect(
const ImVec2& clip_rect_min,
const ImVec2& clip_rect_max,
bool intersect_with_current_clip_rect =
false);
3194 IMGUI_API
void PushClipRectFullScreen();
3195 IMGUI_API
void PopClipRect();
3196 IMGUI_API
void PushTextureID(ImTextureID texture_id);
3197 IMGUI_API
void PopTextureID();
3198 inline ImVec2 GetClipRectMin()
const {
const ImVec4& cr = _ClipRectStack.back();
return ImVec2(cr.x, cr.y); }
3199 inline ImVec2 GetClipRectMax()
const {
const ImVec4& cr = _ClipRectStack.back();
return ImVec2(cr.z, cr.w); }
3208 IMGUI_API
void AddLine(
const ImVec2& p1,
const ImVec2& p2, ImU32 col,
float thickness = 1.0f);
3209 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);
3210 IMGUI_API
void AddRectFilled(
const ImVec2& p_min,
const ImVec2& p_max, ImU32 col,
float rounding = 0.0f, ImDrawFlags flags = 0);
3211 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);
3212 IMGUI_API
void AddQuad(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness = 1.0f);
3214 IMGUI_API
void AddTriangle(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col,
float thickness = 1.0f);
3215 IMGUI_API
void AddTriangleFilled(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col);
3216 IMGUI_API
void AddCircle(
const ImVec2& center,
float radius, ImU32 col,
int num_segments = 0,
float thickness = 1.0f);
3217 IMGUI_API
void AddCircleFilled(
const ImVec2& center,
float radius, ImU32 col,
int num_segments = 0);
3218 IMGUI_API
void AddNgon(
const ImVec2& center,
float radius, ImU32 col,
int num_segments,
float thickness = 1.0f);
3219 IMGUI_API
void AddNgonFilled(
const ImVec2& center,
float radius, ImU32 col,
int num_segments);
3220 IMGUI_API
void AddEllipse(
const ImVec2& center,
const ImVec2& radius, ImU32 col,
float rot = 0.0f,
int num_segments = 0,
float thickness = 1.0f);
3221 IMGUI_API
void AddEllipseFilled(
const ImVec2& center,
const ImVec2& radius, ImU32 col,
float rot = 0.0f,
int num_segments = 0);
3222 IMGUI_API
void AddText(
const ImVec2& pos, ImU32 col,
const char* text_begin,
const char* text_end = NULL);
3223 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);
3224 IMGUI_API
void AddBezierCubic(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4, ImU32 col,
float thickness,
int num_segments = 0);
3225 IMGUI_API
void AddBezierQuadratic(
const ImVec2& p1,
const ImVec2& p2,
const ImVec2& p3, ImU32 col,
float thickness,
int num_segments = 0);
3230 IMGUI_API
void AddPolyline(
const ImVec2* points,
int num_points, ImU32 col, ImDrawFlags flags,
float thickness);
3231 IMGUI_API
void AddConvexPolyFilled(
const ImVec2* points,
int num_points, ImU32 col);
3232 IMGUI_API
void AddConcavePolyFilled(
const ImVec2* points,
int num_points, ImU32 col);
3238 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);
3239 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);
3240 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);
3245 inline void PathClear() { _Path.Size = 0; }
3246 inline void PathLineTo(
const ImVec2& pos) { _Path.push_back(pos); }
3247 inline void PathLineToMergeDuplicate(
const ImVec2& pos) {
if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); }
3248 inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3249 inline void PathFillConcave(ImU32 col) { AddConcavePolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3250 inline void PathStroke(ImU32 col, ImDrawFlags flags = 0,
float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; }
3251 IMGUI_API
void PathArcTo(
const ImVec2& center,
float radius,
float a_min,
float a_max,
int num_segments = 0);
3252 IMGUI_API
void PathArcToFast(
const ImVec2& center,
float radius,
int a_min_of_12,
int a_max_of_12);
3253 IMGUI_API
void PathEllipticalArcTo(
const ImVec2& center,
const ImVec2& radius,
float rot,
float a_min,
float a_max,
int num_segments = 0);
3254 IMGUI_API
void PathBezierCubicCurveTo(
const ImVec2& p2,
const ImVec2& p3,
const ImVec2& p4,
int num_segments = 0);
3255 IMGUI_API
void PathBezierQuadraticCurveTo(
const ImVec2& p2,
const ImVec2& p3,
int num_segments = 0);
3256 IMGUI_API
void PathRect(
const ImVec2& rect_min,
const ImVec2& rect_max,
float rounding = 0.0f, ImDrawFlags flags = 0);
3259 IMGUI_API
void AddCallback(ImDrawCallback callback,
void* callback_data);
3260 IMGUI_API
void AddDrawCmd();
3269 inline void ChannelsSplit(
int count) { _Splitter.Split(
this, count); }
3270 inline void ChannelsMerge() { _Splitter.Merge(
this); }
3271 inline void ChannelsSetCurrent(
int n) { _Splitter.SetCurrentChannel(
this, n); }
3276 IMGUI_API
void PrimReserve(
int idx_count,
int vtx_count);
3277 IMGUI_API
void PrimUnreserve(
int idx_count,
int vtx_count);
3278 IMGUI_API
void PrimRect(
const ImVec2& a,
const ImVec2& b, ImU32 col);
3281 inline void PrimWriteVtx(
const ImVec2& pos,
const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; }
3282 inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; }
3283 inline void PrimVtx(
const ImVec2& pos,
const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); }
3293 IMGUI_API
void _ResetForNewFrame();
3294 IMGUI_API
void _ClearFreeMemory();
3295 IMGUI_API
void _PopUnusedDrawCmd();
3296 IMGUI_API
void _TryMergeDrawCmds();
3297 IMGUI_API
void _OnChangedClipRect();
3298 IMGUI_API
void _OnChangedTextureID();
3299 IMGUI_API
void _OnChangedVtxOffset();
3300 IMGUI_API
void _SetTextureID(ImTextureID texture_id);
3301 IMGUI_API
int _CalcCircleAutoSegmentCount(
float radius)
const;
3302 IMGUI_API
void _PathArcToFastEx(
const ImVec2& center,
float radius,
int a_min_sample,
int a_max_sample,
int a_step);
3303 IMGUI_API
void _PathArcToN(
const ImVec2& center,
float radius,
float a_min,
float a_max,
int num_segments);
3323 IMGUI_API
void Clear();
3324 IMGUI_API
void AddDrawList(
ImDrawList* draw_list);
3325 IMGUI_API
void DeIndexAllBuffers();
3326 IMGUI_API
void ScaleClipRects(
const ImVec2& fb_scale);
3337 bool FontDataOwnedByAtlas;
3343 ImVec2 GlyphExtraSpacing;
3345 const ImWchar* GlyphRanges;
3346 float GlyphMinAdvanceX;
3347 float GlyphMaxAdvanceX;
3349 unsigned int FontBuilderFlags;
3350 float RasterizerMultiply;
3351 float RasterizerDensity;
3352 ImWchar EllipsisChar;
3365 unsigned int Colored : 1;
3366 unsigned int Visible : 1;
3367 unsigned int Codepoint : 30;
3369 float X0, Y0, X1, Y1;
3370 float U0, V0, U1, V1;
3380 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); }
3381 inline bool GetBit(
size_t n)
const {
int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31);
return (UsedChars[off] & mask) != 0; }
3382 inline void SetBit(
size_t n) {
int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; }
3383 inline void AddChar(ImWchar c) { SetBit(c); }
3384 IMGUI_API
void AddText(
const char* text,
const char* text_end = NULL);
3385 IMGUI_API
void AddRanges(
const ImWchar* ranges);
3392 unsigned short Width, Height;
3393 unsigned short X, Y;
3394 unsigned int GlyphID;
3395 float GlyphAdvanceX;
3398 ImFontAtlasCustomRect() { Width = Height = 0; X = Y = 0xFFFF; GlyphID = 0; GlyphAdvanceX = 0.0f; GlyphOffset =
ImVec2(0, 0); Font = NULL; }
3399 bool IsPacked()
const {
return X != 0xFFFF; }
3403 enum ImFontAtlasFlags_
3405 ImFontAtlasFlags_None = 0,
3406 ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0,
3407 ImFontAtlasFlags_NoMouseCursors = 1 << 1,
3408 ImFontAtlasFlags_NoBakedLines = 1 << 2,
3431 IMGUI_API ~ImFontAtlas();
3434 IMGUI_API
ImFont* AddFontFromFileTTF(
const char* filename,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3435 IMGUI_API
ImFont* AddFontFromMemoryTTF(
void* font_data,
int font_data_size,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3436 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);
3437 IMGUI_API
ImFont* AddFontFromMemoryCompressedBase85TTF(
const char* compressed_font_data_base85,
float size_pixels,
const ImFontConfig* font_cfg = NULL,
const ImWchar* glyph_ranges = NULL);
3438 IMGUI_API
void ClearInputData();
3439 IMGUI_API
void ClearTexData();
3440 IMGUI_API
void ClearFonts();
3441 IMGUI_API
void Clear();
3448 IMGUI_API
bool Build();
3449 IMGUI_API
void GetTexDataAsAlpha8(
unsigned char** out_pixels,
int* out_width,
int* out_height,
int* out_bytes_per_pixel = NULL);
3450 IMGUI_API
void GetTexDataAsRGBA32(
unsigned char** out_pixels,
int* out_width,
int* out_height,
int* out_bytes_per_pixel = NULL);
3451 bool IsBuilt()
const {
return Fonts.Size > 0 && TexReady; }
3452 void SetTexID(ImTextureID
id) { TexID = id; }
3462 IMGUI_API
const ImWchar* GetGlyphRangesDefault();
3463 IMGUI_API
const ImWchar* GetGlyphRangesGreek();
3464 IMGUI_API
const ImWchar* GetGlyphRangesKorean();
3465 IMGUI_API
const ImWchar* GetGlyphRangesJapanese();
3466 IMGUI_API
const ImWchar* GetGlyphRangesChineseFull();
3467 IMGUI_API
const ImWchar* GetGlyphRangesChineseSimplifiedCommon();
3468 IMGUI_API
const ImWchar* GetGlyphRangesCyrillic();
3469 IMGUI_API
const ImWchar* GetGlyphRangesThai();
3470 IMGUI_API
const ImWchar* GetGlyphRangesVietnamese();
3483 IMGUI_API
int AddCustomRectRegular(
int width,
int height);
3484 IMGUI_API
int AddCustomRectFontGlyph(
ImFont* font, ImWchar
id,
int width,
int height,
float advance_x,
const ImVec2& offset =
ImVec2(0, 0));
3485 ImFontAtlasCustomRect* GetCustomRectByIndex(
int index) { IM_ASSERT(index >= 0);
return &CustomRects[index]; }
3489 IMGUI_API
bool GetMouseCursorTexData(ImGuiMouseCursor cursor,
ImVec2* out_offset,
ImVec2* out_size,
ImVec2 out_uv_border[2],
ImVec2 out_uv_fill[2]);
3495 ImFontAtlasFlags Flags;
3497 int TexDesiredWidth;
3498 int TexGlyphPadding;
3505 bool TexPixelsUseColors;
3506 unsigned char* TexPixelsAlpha8;
3507 unsigned int* TexPixelsRGBA32;
3515 ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1];
3519 unsigned int FontBuilderFlags;
3522 int PackIdMouseCursors;
3536 float FallbackAdvanceX;
3547 short ConfigDataCount;
3548 ImWchar FallbackChar;
3549 ImWchar EllipsisChar;
3550 short EllipsisCharCount;
3551 float EllipsisWidth;
3552 float EllipsisCharStep;
3553 bool DirtyLookupTables;
3555 float Ascent, Descent;
3556 int MetricsTotalSurface;
3557 ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/4096/8];
3561 IMGUI_API ~ImFont();
3562 IMGUI_API
const ImFontGlyph*FindGlyph(ImWchar c)
const;
3563 IMGUI_API
const ImFontGlyph*FindGlyphNoFallback(ImWchar c)
const;
3564 float GetCharAdvance(ImWchar c)
const {
return ((
int)c < IndexAdvanceX.Size) ? IndexAdvanceX[(int)c] : FallbackAdvanceX; }
3565 bool IsLoaded()
const {
return ContainerAtlas != NULL; }
3566 const char* GetDebugName()
const {
return ConfigData ? ConfigData->Name :
"<unknown>"; }
3570 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;
3571 IMGUI_API
const char* CalcWordWrapPositionA(
float scale,
const char* text,
const char* text_end,
float wrap_width)
const;
3572 IMGUI_API
void RenderChar(
ImDrawList* draw_list,
float size,
const ImVec2& pos, ImU32 col, ImWchar c)
const;
3573 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;
3576 IMGUI_API
void BuildLookupTable();
3577 IMGUI_API
void ClearOutputData();
3578 IMGUI_API
void GrowIndex(
int new_size);
3579 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);
3580 IMGUI_API
void AddRemapChar(ImWchar dst, ImWchar src,
bool overwrite_dst =
true);
3581 IMGUI_API
void SetGlyphVisible(ImWchar c,
bool visible);
3582 IMGUI_API
bool IsGlyphRangeUnused(
unsigned int c_begin,
unsigned int c_last);
3590 enum ImGuiViewportFlags_
3592 ImGuiViewportFlags_None = 0,
3593 ImGuiViewportFlags_IsPlatformWindow = 1 << 0,
3594 ImGuiViewportFlags_IsPlatformMonitor = 1 << 1,
3595 ImGuiViewportFlags_OwnedByApp = 1 << 2,
3596 ImGuiViewportFlags_NoDecoration = 1 << 3,
3597 ImGuiViewportFlags_NoTaskBarIcon = 1 << 4,
3598 ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5,
3599 ImGuiViewportFlags_NoFocusOnClick = 1 << 6,
3600 ImGuiViewportFlags_NoInputs = 1 << 7,
3601 ImGuiViewportFlags_NoRendererClear = 1 << 8,
3602 ImGuiViewportFlags_NoAutoMerge = 1 << 9,
3603 ImGuiViewportFlags_TopMost = 1 << 10,
3604 ImGuiViewportFlags_CanHostOtherWindows = 1 << 11,
3607 ImGuiViewportFlags_IsMinimized = 1 << 12,
3608 ImGuiViewportFlags_IsFocused = 1 << 13,
3621 ImGuiViewportFlags Flags;
3627 ImGuiID ParentViewportId;
3635 void* RendererUserData;
3636 void* PlatformUserData;
3637 void* PlatformHandle;
3638 void* PlatformHandleRaw;
3639 bool PlatformWindowCreated;
3640 bool PlatformRequestMove;
3641 bool PlatformRequestResize;
3642 bool PlatformRequestClose;
3645 ~
ImGuiViewport() { IM_ASSERT(PlatformUserData == NULL && RendererUserData == NULL); }
3648 ImVec2 GetCenter()
const {
return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); }
3649 ImVec2 GetWorkCenter()
const {
return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); }
3713 const char* (*Platform_GetClipboardTextFn)(
ImGuiContext* ctx);
3714 void (*Platform_SetClipboardTextFn)(
ImGuiContext* ctx,
const char* text);
3715 void* Platform_ClipboardUserData;
3719 bool (*Platform_OpenInShellFn)(
ImGuiContext* ctx,
const char* path);
3720 void* Platform_OpenInShellUserData;
3725 void* Platform_ImeUserData;
3730 ImWchar Platform_LocaleDecimalPoint;
3759 void (*Platform_SetWindowTitle)(
ImGuiViewport* vp,
const char* str);
3760 void (*Platform_SetWindowAlpha)(
ImGuiViewport* vp,
float alpha);
3762 void (*Platform_RenderWindow)(
ImGuiViewport* vp,
void* render_arg);
3763 void (*Platform_SwapBuffers)(
ImGuiViewport* vp,
void* render_arg);
3767 int (*Platform_CreateVkSurface)(
ImGuiViewport* vp, ImU64 vk_inst,
const void* vk_allocators, ImU64* out_vk_surface);
3773 void (*Renderer_RenderWindow)(
ImGuiViewport* vp,
void* render_arg);
3774 void (*Renderer_SwapBuffers)(
ImGuiViewport* vp,
void* render_arg);
3794 ImVec2 MainPos, MainSize;
3795 ImVec2 WorkPos, WorkSize;
3797 void* PlatformHandle;
3806 float InputLineHeight;
3817 #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 3821 static inline void PushButtonRepeat(
bool repeat) { PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); }
3822 static inline void PopButtonRepeat() { PopItemFlag(); }
3823 static inline void PushTabStop(
bool tab_stop) { PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); }
3824 static inline void PopTabStop() { PopItemFlag(); }
3825 IMGUI_API
ImVec2 GetContentRegionMax();
3826 IMGUI_API
ImVec2 GetWindowContentRegionMin();
3827 IMGUI_API
ImVec2 GetWindowContentRegionMax();
3829 static inline bool BeginChildFrame(ImGuiID
id,
const ImVec2& size, ImGuiWindowFlags window_flags = 0) {
return BeginChild(
id, size, ImGuiChildFlags_FrameStyle, window_flags); }
3830 static inline void EndChildFrame() { EndChild(); }
3833 static inline void ShowStackToolWindow(
bool* p_open = NULL) { ShowIDStackToolWindow(p_open); }
3834 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);
3835 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);
3837 IMGUI_API
void SetItemAllowOverlap();
3839 static inline void PushAllowKeyboardFocus(
bool tab_stop) { PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); }
3840 static inline void PopAllowKeyboardFocus() { PopItemFlag(); }
3842 IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key);
3928 #define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // OBSOLETED IN 1.90 (now using C++11 standard version) 3930 #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS 3933 #if defined(IMGUI_DISABLE_METRICS_WINDOW) && !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(IMGUI_DISABLE_DEBUG_TOOLS) 3934 #define IMGUI_DISABLE_DEBUG_TOOLS 3936 #if defined(IMGUI_DISABLE_METRICS_WINDOW) && defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) 3937 #error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. 3942 #if defined(__clang__) 3943 #pragma clang diagnostic pop 3944 #elif defined(__GNUC__) 3945 #pragma GCC diagnostic pop 3949 #pragma warning (pop) 3954 #ifdef IMGUI_INCLUDE_IMGUI_USER_H 3955 #ifdef IMGUI_USER_H_FILENAME 3956 #include IMGUI_USER_H_FILENAME 3958 #include "imgui_user.h" 3962 #endif // #ifndef IMGUI_DISABLE Definition: imgui_internal.h:766
In find(In first, In last, const T &v)
Definition: algorithm.h:225
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: imgui_internal.h:3802
Definition: imgui_internal.h:2195
Definition: movie_decoder.h:32