| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
#define IMGUI_VERSION "1.92.9 WIP" |
| 33 |
#define IMGUI_VERSION_NUM 19284 |
| 34 |
#define IMGUI_HAS_TABLE |
| 35 |
#define IMGUI_HAS_TEXTURES |
| 36 |
#define IMGUI_HAS_VIEWPORT |
| 37 |
#define IMGUI_HAS_DOCK |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
#pragma once |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
#ifdef IMGUI_USER_CONFIG |
| 68 |
#include IMGUI_USER_CONFIG |
| 69 |
#endif |
| 70 |
#include "imconfig.h" |
| 71 |
|
| 72 |
#ifndef IMGUI_DISABLE |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
#include <float.h> |
| 80 |
#include <stdarg.h> |
| 81 |
#include <stddef.h> |
| 82 |
#include <string.h> |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
#ifndef IMGUI_API |
| 88 |
#define IMGUI_API |
| 89 |
#endif |
| 90 |
#ifndef IMGUI_IMPL_API |
| 91 |
#define IMGUI_IMPL_API IMGUI_API |
| 92 |
#endif |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
#ifndef IM_ASSERT |
| 97 |
#include <assert.h> |
| 98 |
#define IM_ASSERT(_EXPR) assert(_EXPR) |
| 99 |
#endif |
| 100 |
#define IM_COUNTOF(_ARR) ((int)(sizeof(_ARR) / sizeof(*(_ARR)))) |
| 101 |
#define IM_UNUSED(_VAR) ((void)(_VAR)) |
| 102 |
#define IM_STRINGIFY_HELPER(_EXPR) #_EXPR |
| 103 |
#define IM_STRINGIFY(_EXPR) IM_STRINGIFY_HELPER(_EXPR) |
| 104 |
|
| 105 |
|
| 106 |
#define IMGUI_CHECKVERSION() ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__) |
| 114 |
#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1))) |
| 115 |
#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0))) |
| 116 |
#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__)) |
| 117 |
#define IM_FMTARGS(FMT) __attribute__((format(printf, FMT, FMT+1))) |
| 118 |
#define IM_FMTLIST(FMT) __attribute__((format(printf, FMT, 0))) |
| 119 |
#else |
| 120 |
#define IM_FMTARGS(FMT) |
| 121 |
#define IM_FMTLIST(FMT) |
| 122 |
#endif |
| 123 |
|
| 124 |
|
| 125 |
#if defined(_MSC_VER) && !defined(__clang__) && !defined(__INTEL_COMPILER) && !defined(IMGUI_DEBUG_PARANOID) |
| 126 |
#define IM_MSVC_RUNTIME_CHECKS_OFF __pragma(runtime_checks("",off)) __pragma(check_stack(off)) __pragma(strict_gs_check(push,off)) |
| 127 |
#define IM_MSVC_RUNTIME_CHECKS_RESTORE __pragma(runtime_checks("",restore)) __pragma(check_stack()) __pragma(strict_gs_check(pop)) |
| 128 |
#else |
| 129 |
#define IM_MSVC_RUNTIME_CHECKS_OFF |
| 130 |
#define IM_MSVC_RUNTIME_CHECKS_RESTORE |
| 131 |
#endif |
| 132 |
|
| 133 |
|
| 134 |
#ifdef _MSC_VER |
| 135 |
#pragma warning (push) |
| 136 |
#pragma warning (disable: 26495) |
| 137 |
#endif |
| 138 |
#if defined(__clang__) |
| 139 |
#pragma clang diagnostic push |
| 140 |
#if __has_warning("-Wunknown-warning-option") |
| 141 |
#pragma clang diagnostic ignored "-Wunknown-warning-option" |
| 142 |
#endif |
| 143 |
#pragma clang diagnostic ignored "-Wunknown-pragmas" |
| 144 |
#pragma clang diagnostic ignored "-Wold-style-cast" |
| 145 |
#pragma clang diagnostic ignored "-Wfloat-equal" |
| 146 |
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" |
| 147 |
#pragma clang diagnostic ignored "-Wreserved-identifier" |
| 148 |
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" |
| 149 |
#pragma clang diagnostic ignored "-Wnontrivial-memaccess" |
| 150 |
#elif defined(__GNUC__) |
| 151 |
#pragma GCC diagnostic push |
| 152 |
#pragma GCC diagnostic ignored "-Wpragmas" |
| 153 |
#pragma GCC diagnostic ignored "-Wfloat-equal" |
| 154 |
#pragma GCC diagnostic ignored "-Wclass-memaccess" |
| 155 |
#endif |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
typedef unsigned int ImGuiID; |
| 163 |
typedef signed char ImS8; |
| 164 |
typedef unsigned char ImU8; |
| 165 |
typedef signed short ImS16; |
| 166 |
typedef unsigned short ImU16; |
| 167 |
typedef signed int ImS32; |
| 168 |
typedef unsigned int ImU32; |
| 169 |
typedef signed long long ImS64; |
| 170 |
typedef unsigned long long ImU64; |
| 171 |
|
| 172 |
|
| 173 |
struct ImDrawChannel; |
| 174 |
struct ImDrawCmd; |
| 175 |
struct ImDrawData; |
| 176 |
struct ImDrawList; |
| 177 |
struct ImDrawListSharedData; |
| 178 |
struct ImDrawListSplitter; |
| 179 |
struct ImDrawVert; |
| 180 |
struct ImFont; |
| 181 |
struct ImFontAtlas; |
| 182 |
struct ImFontAtlasBuilder; |
| 183 |
struct ImFontAtlasRect; |
| 184 |
struct ImFontBaked; |
| 185 |
struct ImFontConfig; |
| 186 |
struct ImFontGlyph; |
| 187 |
struct ImFontGlyphRangesBuilder; |
| 188 |
struct ImFontLoader; |
| 189 |
struct ImTextureData; |
| 190 |
struct ImTextureRect; |
| 191 |
struct ImColor; |
| 192 |
|
| 193 |
|
| 194 |
struct ImGuiContext; |
| 195 |
struct ImGuiIO; |
| 196 |
struct ImGuiInputTextCallbackData; |
| 197 |
struct ImGuiKeyData; |
| 198 |
struct ImGuiListClipper; |
| 199 |
struct ImGuiMultiSelectIO; |
| 200 |
struct ImGuiOnceUponAFrame; |
| 201 |
struct ImGuiPayload; |
| 202 |
struct ImGuiPlatformIO; |
| 203 |
struct ImGuiPlatformImeData; |
| 204 |
struct ImGuiPlatformMonitor; |
| 205 |
struct ImGuiSelectionBasicStorage; |
| 206 |
struct ImGuiSelectionExternalStorage; |
| 207 |
struct ImGuiSelectionRequest; |
| 208 |
struct ImGuiSizeCallbackData; |
| 209 |
struct ImGuiStorage; |
| 210 |
struct ImGuiStoragePair; |
| 211 |
struct ImGuiStyle; |
| 212 |
struct ImGuiTableSortSpecs; |
| 213 |
struct ImGuiTableColumnSortSpecs; |
| 214 |
struct ImGuiTextBuffer; |
| 215 |
struct ImGuiTextFilter; |
| 216 |
struct ImGuiViewport; |
| 217 |
struct ImGuiWindowClass; |
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
enum ImGuiDir : int; |
| 226 |
enum ImGuiKey : int; |
| 227 |
enum ImGuiMouseSource : int; |
| 228 |
enum ImGuiSortDirection : ImU8; |
| 229 |
typedef int ImGuiCol; |
| 230 |
typedef int ImGuiCond; |
| 231 |
typedef int ImGuiDataType; |
| 232 |
typedef int ImGuiMouseButton; |
| 233 |
typedef int ImGuiMouseCursor; |
| 234 |
typedef int ImGuiStyleVar; |
| 235 |
typedef int ImGuiTableBgTarget; |
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
typedef int ImDrawFlags; |
| 243 |
typedef int ImDrawListFlags; |
| 244 |
typedef int ImDrawTextFlags; |
| 245 |
typedef int ImFontFlags; |
| 246 |
typedef int ImFontAtlasFlags; |
| 247 |
typedef int ImGuiBackendFlags; |
| 248 |
typedef int ImGuiButtonFlags; |
| 249 |
typedef int ImGuiChildFlags; |
| 250 |
typedef int ImGuiColorEditFlags; |
| 251 |
typedef int ImGuiConfigFlags; |
| 252 |
typedef int ImGuiComboFlags; |
| 253 |
typedef int ImGuiDockNodeFlags; |
| 254 |
typedef int ImGuiDragDropFlags; |
| 255 |
typedef int ImGuiFocusedFlags; |
| 256 |
typedef int ImGuiHoveredFlags; |
| 257 |
typedef int ImGuiInputFlags; |
| 258 |
typedef int ImGuiInputTextFlags; |
| 259 |
typedef int ImGuiItemFlags; |
| 260 |
typedef int ImGuiKeyChord; |
| 261 |
typedef int ImGuiListClipperFlags; |
| 262 |
typedef int ImGuiPopupFlags; |
| 263 |
typedef int ImGuiMultiSelectFlags; |
| 264 |
typedef int ImGuiSelectableFlags; |
| 265 |
typedef int ImGuiSliderFlags; |
| 266 |
typedef int ImGuiTabBarFlags; |
| 267 |
typedef int ImGuiTabItemFlags; |
| 268 |
typedef int ImGuiTableFlags; |
| 269 |
typedef int ImGuiTableColumnFlags; |
| 270 |
typedef int ImGuiTableRowFlags; |
| 271 |
typedef int ImGuiTreeNodeFlags; |
| 272 |
typedef int ImGuiViewportFlags; |
| 273 |
typedef int ImGuiWindowFlags; |
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
typedef unsigned int ImWchar32; |
| 278 |
typedef unsigned short ImWchar16; |
| 279 |
#ifdef IMGUI_USE_WCHAR32 |
| 280 |
typedef ImWchar32 ImWchar; |
| 281 |
#else |
| 282 |
typedef ImWchar16 ImWchar; |
| 283 |
#endif |
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
|
| 288 |
typedef ImS64 ImGuiSelectionUserData; |
| 289 |
|
| 290 |
|
| 291 |
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data); |
| 292 |
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data); |
| 293 |
typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); |
| 294 |
typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); |
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
|
| 299 |
IM_MSVC_RUNTIME_CHECKS_OFF |
| 300 |
struct ImVec2 |
| 301 |
{ |
| 302 |
float x, y; |
| 303 |
constexpr ImVec2() : x(0.0f), y(0.0f) { } |
| 304 |
constexpr ImVec2(float _x, float _y) : x(_x), y(_y) { } |
| 305 |
float& operator[] (size_t idx) { IM_ASSERT(idx == 0 || idx == 1); return ((float*)(void*)(char*)this)[idx]; } |
| 306 |
float operator[] (size_t idx) const { IM_ASSERT(idx == 0 || idx == 1); return ((const float*)(const void*)(const char*)this)[idx]; } |
| 307 |
#ifdef IM_VEC2_CLASS_EXTRA |
| 308 |
IM_VEC2_CLASS_EXTRA |
| 309 |
#endif |
| 310 |
}; |
| 311 |
|
| 312 |
|
| 313 |
struct ImVec4 |
| 314 |
{ |
| 315 |
float x, y, z, w; |
| 316 |
constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { } |
| 317 |
constexpr ImVec4(float _x, float _y, float _z, float _w) : x(_x), y(_y), z(_z), w(_w) { } |
| 318 |
#ifdef IM_VEC4_CLASS_EXTRA |
| 319 |
IM_VEC4_CLASS_EXTRA |
| 320 |
#endif |
| 321 |
}; |
| 322 |
IM_MSVC_RUNTIME_CHECKS_RESTORE |
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
#ifndef ImTextureID |
| 345 |
typedef ImU64 ImTextureID; |
| 346 |
#endif |
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
#ifndef ImTextureID_Invalid |
| 352 |
#define ImTextureID_Invalid ((ImTextureID)0) |
| 353 |
#endif |
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
|
| 371 |
IM_MSVC_RUNTIME_CHECKS_OFF |
| 372 |
struct ImTextureRef |
| 373 |
{ |
| 374 |
ImTextureRef() { _TexData = NULL; _TexID = ImTextureID_Invalid; } |
| 375 |
ImTextureRef(ImTextureID tex_id) { _TexData = NULL; _TexID = tex_id; } |
| 376 |
#if !defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) && !defined(ImTextureID) |
| 377 |
ImTextureRef(void* tex_id) { _TexData = NULL; _TexID = (ImTextureID)(size_t)tex_id; } |
| 378 |
#endif |
| 379 |
|
| 380 |
inline ImTextureID GetTexID() const; |
| 381 |
|
| 382 |
|
| 383 |
ImTextureData* _TexData; |
| 384 |
ImTextureID _TexID; |
| 385 |
}; |
| 386 |
IM_MSVC_RUNTIME_CHECKS_RESTORE |
| 387 |
|
| 388 |
|
| 389 |
|
| 390 |
|
| 391 |
|
| 392 |
|
| 393 |
namespace ImGui |
| 394 |
{ |
| 395 |
|
| 396 |
|
| 397 |
|
| 398 |
|
| 399 |
IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL); |
| 400 |
IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); |
| 401 |
IMGUI_API ImGuiContext* GetCurrentContext(); |
| 402 |
IMGUI_API void SetCurrentContext(ImGuiContext* ctx); |
| 403 |
|
| 404 |
|
| 405 |
IMGUI_API ImGuiIO& GetIO(); |
| 406 |
IMGUI_API ImGuiPlatformIO& GetPlatformIO(); |
| 407 |
IMGUI_API ImGuiStyle& GetStyle(); |
| 408 |
IMGUI_API void NewFrame(); |
| 409 |
IMGUI_API void EndFrame(); |
| 410 |
IMGUI_API void Render(); |
| 411 |
IMGUI_API ImDrawData* GetDrawData(); |
| 412 |
|
| 413 |
|
| 414 |
IMGUI_API void ShowDemoWindow(bool* p_open = NULL); |
| 415 |
IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); |
| 416 |
IMGUI_API void ShowDebugLogWindow(bool* p_open = NULL); |
| 417 |
IMGUI_API void ShowIDStackToolWindow(bool* p_open = NULL); |
| 418 |
IMGUI_API void ShowAboutWindow(bool* p_open = NULL); |
| 419 |
IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); |
| 420 |
IMGUI_API bool ShowStyleSelector(const char* label); |
| 421 |
IMGUI_API void ShowFontSelector(const char* label); |
| 422 |
IMGUI_API void ShowUserGuide(); |
| 423 |
IMGUI_API const char* GetVersion(); |
| 424 |
|
| 425 |
|
| 426 |
IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); |
| 427 |
IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); |
| 428 |
IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); |
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
|
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
|
| 440 |
|
| 441 |
|
| 442 |
IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); |
| 443 |
IMGUI_API void End(); |
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
|
| 455 |
|
| 456 |
|
| 457 |
|
| 458 |
|
| 459 |
|
| 460 |
|
| 461 |
|
| 462 |
|
| 463 |
IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0); |
| 464 |
IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0); |
| 465 |
IMGUI_API void EndChild(); |
| 466 |
|
| 467 |
|
| 468 |
|
| 469 |
IMGUI_API bool IsWindowAppearing(); |
| 470 |
IMGUI_API bool IsWindowCollapsed(); |
| 471 |
IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); |
| 472 |
IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); |
| 473 |
IMGUI_API ImDrawList* GetWindowDrawList(); |
| 474 |
IMGUI_API float GetWindowDpiScale(); |
| 475 |
IMGUI_API ImVec2 GetWindowPos(); |
| 476 |
IMGUI_API ImVec2 GetWindowSize(); |
| 477 |
IMGUI_API float GetWindowWidth(); |
| 478 |
IMGUI_API float GetWindowHeight(); |
| 479 |
IMGUI_API ImGuiViewport*GetWindowViewport(); |
| 480 |
|
| 481 |
|
| 482 |
|
| 483 |
IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivot = ImVec2(0, 0)); |
| 484 |
IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); |
| 485 |
IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback = NULL, void* custom_callback_data = NULL); |
| 486 |
IMGUI_API void SetNextWindowContentSize(const ImVec2& size); |
| 487 |
IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); |
| 488 |
IMGUI_API void SetNextWindowFocus(); |
| 489 |
IMGUI_API void SetNextWindowScroll(const ImVec2& scroll); |
| 490 |
IMGUI_API void SetNextWindowBgAlpha(float alpha); |
| 491 |
IMGUI_API void SetNextWindowViewport(ImGuiID viewport_id); |
| 492 |
IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); |
| 493 |
IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); |
| 494 |
IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); |
| 495 |
IMGUI_API void SetWindowFocus(); |
| 496 |
IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); |
| 497 |
IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); |
| 498 |
IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); |
| 499 |
IMGUI_API void SetWindowFocus(const char* name); |
| 500 |
|
| 501 |
|
| 502 |
|
| 503 |
|
| 504 |
IMGUI_API float GetScrollX(); |
| 505 |
IMGUI_API float GetScrollY(); |
| 506 |
IMGUI_API void SetScrollX(float scroll_x); |
| 507 |
IMGUI_API void SetScrollY(float scroll_y); |
| 508 |
IMGUI_API float GetScrollMaxX(); |
| 509 |
IMGUI_API float GetScrollMaxY(); |
| 510 |
IMGUI_API void SetScrollHereX(float center_x_ratio = 0.5f); |
| 511 |
IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); |
| 512 |
IMGUI_API void SetScrollFromPosX(float local_x, float center_x_ratio = 0.5f); |
| 513 |
IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); |
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
|
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
|
| 530 |
|
| 531 |
IMGUI_API void PushFont(ImFont* font, float font_size_base_unscaled); |
| 532 |
IMGUI_API void PopFont(); |
| 533 |
IMGUI_API ImFont* GetFont(); |
| 534 |
IMGUI_API float GetFontSize(); |
| 535 |
IMGUI_API ImFontBaked* GetFontBaked(); |
| 536 |
|
| 537 |
|
| 538 |
IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col); |
| 539 |
IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col); |
| 540 |
IMGUI_API void PopStyleColor(int count = 1); |
| 541 |
IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val); |
| 542 |
IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val); |
| 543 |
IMGUI_API void PushStyleVarX(ImGuiStyleVar idx, float val_x); |
| 544 |
IMGUI_API void PushStyleVarY(ImGuiStyleVar idx, float val_y); |
| 545 |
IMGUI_API void PopStyleVar(int count = 1); |
| 546 |
IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled); |
| 547 |
IMGUI_API void PopItemFlag(); |
| 548 |
|
| 549 |
|
| 550 |
IMGUI_API void PushItemWidth(float item_width); |
| 551 |
IMGUI_API void PopItemWidth(); |
| 552 |
IMGUI_API void SetNextItemWidth(float item_width); |
| 553 |
IMGUI_API float CalcItemWidth(); |
| 554 |
IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); |
| 555 |
IMGUI_API void PopTextWrapPos(); |
| 556 |
|
| 557 |
|
| 558 |
|
| 559 |
IMGUI_API ImVec2 GetFontTexUvWhitePixel(); |
| 560 |
IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); |
| 561 |
IMGUI_API ImU32 GetColorU32(const ImVec4& col); |
| 562 |
IMGUI_API ImU32 GetColorU32(ImU32 col, float alpha_mul = 1.0f); |
| 563 |
IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); |
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
IMGUI_API ImVec2 GetCursorScreenPos(); |
| 576 |
IMGUI_API void SetCursorScreenPos(const ImVec2& pos); |
| 577 |
IMGUI_API ImVec2 GetContentRegionAvail(); |
| 578 |
IMGUI_API ImVec2 GetCursorPos(); |
| 579 |
IMGUI_API float GetCursorPosX(); |
| 580 |
IMGUI_API float GetCursorPosY(); |
| 581 |
IMGUI_API void SetCursorPos(const ImVec2& local_pos); |
| 582 |
IMGUI_API void SetCursorPosX(float local_x); |
| 583 |
IMGUI_API void SetCursorPosY(float local_y); |
| 584 |
IMGUI_API ImVec2 GetCursorStartPos(); |
| 585 |
|
| 586 |
|
| 587 |
IMGUI_API void Separator(); |
| 588 |
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f); |
| 589 |
IMGUI_API void NewLine(); |
| 590 |
IMGUI_API void Spacing(); |
| 591 |
IMGUI_API void Dummy(const ImVec2& size); |
| 592 |
IMGUI_API void Indent(float indent_w = 0.0f); |
| 593 |
IMGUI_API void Unindent(float indent_w = 0.0f); |
| 594 |
IMGUI_API void BeginGroup(); |
| 595 |
IMGUI_API void EndGroup(); |
| 596 |
IMGUI_API void AlignTextToFramePadding(); |
| 597 |
IMGUI_API float GetTextLineHeight(); |
| 598 |
IMGUI_API float GetTextLineHeightWithSpacing(); |
| 599 |
IMGUI_API float GetFrameHeight(); |
| 600 |
IMGUI_API float GetFrameHeightWithSpacing(); |
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
|
| 605 |
|
| 606 |
|
| 607 |
|
| 608 |
|
| 609 |
|
| 610 |
|
| 611 |
|
| 612 |
|
| 613 |
IMGUI_API void PushID(const char* str_id); |
| 614 |
IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); |
| 615 |
IMGUI_API void PushID(const void* ptr_id); |
| 616 |
IMGUI_API void PushID(int int_id); |
| 617 |
IMGUI_API void PopID(); |
| 618 |
IMGUI_API ImGuiID GetID(const char* str_id); |
| 619 |
IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end); |
| 620 |
IMGUI_API ImGuiID GetID(const void* ptr_id); |
| 621 |
IMGUI_API ImGuiID GetID(int int_id); |
| 622 |
|
| 623 |
|
| 624 |
|
| 625 |
IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); |
| 626 |
IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS(1); |
| 627 |
IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 628 |
IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS(2); |
| 629 |
IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST(2); |
| 630 |
IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS(1); |
| 631 |
IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 632 |
IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS(1); |
| 633 |
IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 634 |
IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS(2); |
| 635 |
IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); |
| 636 |
IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS(1); |
| 637 |
IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 638 |
IMGUI_API void SeparatorText(const char* label); |
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0, 0)); |
| 644 |
IMGUI_API bool SmallButton(const char* label); |
| 645 |
IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size, ImGuiButtonFlags flags = 0); |
| 646 |
IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); |
| 647 |
IMGUI_API bool Checkbox(const char* label, bool* v); |
| 648 |
IMGUI_API bool CheckboxFlags(const char* label, int* flags, int flags_value); |
| 649 |
IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value); |
| 650 |
IMGUI_API bool RadioButton(const char* label, bool active); |
| 651 |
IMGUI_API bool RadioButton(const char* label, int* v, int v_button); |
| 652 |
IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-FLT_MIN, 0), const char* overlay = NULL); |
| 653 |
IMGUI_API void Bullet(); |
| 654 |
IMGUI_API bool TextLink(const char* label); |
| 655 |
IMGUI_API bool TextLinkOpenURL(const char* label, const char* url = NULL); |
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
|
| 660 |
|
| 661 |
|
| 662 |
|
| 663 |
IMGUI_API void Image(ImTextureRef tex_ref, const ImVec2& image_size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1)); |
| 664 |
IMGUI_API void ImageWithBg(ImTextureRef tex_ref, 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)); |
| 665 |
IMGUI_API bool ImageButton(const char* str_id, ImTextureRef tex_ref, 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)); |
| 666 |
|
| 667 |
|
| 668 |
|
| 669 |
|
| 670 |
IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags = 0); |
| 671 |
IMGUI_API void EndCombo(); |
| 672 |
IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1); |
| 673 |
IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int popup_max_height_in_items = -1); |
| 674 |
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); |
| 675 |
|
| 676 |
|
| 677 |
|
| 678 |
|
| 679 |
|
| 680 |
|
| 681 |
|
| 682 |
|
| 683 |
|
| 684 |
|
| 685 |
|
| 686 |
|
| 687 |
|
| 688 |
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); |
| 689 |
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); |
| 690 |
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); |
| 691 |
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); |
| 692 |
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); |
| 693 |
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); |
| 694 |
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); |
| 695 |
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); |
| 696 |
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); |
| 697 |
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); |
| 698 |
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); |
| 699 |
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); |
| 700 |
|
| 701 |
|
| 702 |
|
| 703 |
|
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); |
| 708 |
IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); |
| 709 |
IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); |
| 710 |
IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0); |
| 711 |
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); |
| 712 |
IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); |
| 713 |
IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); |
| 714 |
IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); |
| 715 |
IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0); |
| 716 |
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); |
| 717 |
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); |
| 718 |
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); |
| 719 |
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); |
| 720 |
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); |
| 721 |
|
| 722 |
|
| 723 |
|
| 724 |
|
| 725 |
IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiInputTextCallback callback = NULL, void* user_data = NULL); |
| 726 |
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); |
| 727 |
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); |
| 728 |
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); |
| 729 |
IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); |
| 730 |
IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); |
| 731 |
IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", ImGuiInputTextFlags flags = 0); |
| 732 |
IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImGuiInputTextFlags flags = 0); |
| 733 |
IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0); |
| 734 |
IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0); |
| 735 |
IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0); |
| 736 |
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); |
| 737 |
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); |
| 738 |
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); |
| 739 |
|
| 740 |
|
| 741 |
|
| 742 |
|
| 743 |
IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); |
| 744 |
IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0); |
| 745 |
IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = 0); |
| 746 |
IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = 0, const float* ref_col = NULL); |
| 747 |
IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); |
| 748 |
IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); |
| 749 |
|
| 750 |
|
| 751 |
|
| 752 |
IMGUI_API bool TreeNode(const char* label); |
| 753 |
IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); |
| 754 |
IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); |
| 755 |
IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2); |
| 756 |
IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2); |
| 757 |
IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0); |
| 758 |
IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); |
| 759 |
IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) IM_FMTARGS(3); |
| 760 |
IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); |
| 761 |
IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) IM_FMTLIST(3); |
| 762 |
IMGUI_API void TreePush(const char* str_id); |
| 763 |
IMGUI_API void TreePush(const void* ptr_id); |
| 764 |
IMGUI_API void TreePop(); |
| 765 |
IMGUI_API float GetTreeNodeToLabelSpacing(); |
| 766 |
IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); |
| 767 |
IMGUI_API bool CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags = 0); |
| 768 |
IMGUI_API void SetNextItemOpen(bool is_open, ImGuiCond cond = 0); |
| 769 |
IMGUI_API void SetNextItemStorageID(ImGuiID storage_id); |
| 770 |
IMGUI_API bool TreeNodeGetOpen(ImGuiID storage_id); |
| 771 |
|
| 772 |
|
| 773 |
|
| 774 |
|
| 775 |
IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); |
| 776 |
IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags = 0, const ImVec2& size = ImVec2(0, 0)); |
| 777 |
|
| 778 |
|
| 779 |
|
| 780 |
|
| 781 |
|
| 782 |
|
| 783 |
|
| 784 |
|
| 785 |
IMGUI_API ImGuiMultiSelectIO* BeginMultiSelect(ImGuiMultiSelectFlags flags, int selection_size = -1, int items_count = -1); |
| 786 |
IMGUI_API ImGuiMultiSelectIO* EndMultiSelect(); |
| 787 |
IMGUI_API void SetNextItemSelectionUserData(ImGuiSelectionUserData selection_user_data); |
| 788 |
IMGUI_API bool IsItemToggledSelection(); |
| 789 |
|
| 790 |
|
| 791 |
|
| 792 |
|
| 793 |
|
| 794 |
|
| 795 |
|
| 796 |
|
| 797 |
IMGUI_API bool BeginListBox(const char* label, const ImVec2& size = ImVec2(0, 0)); |
| 798 |
IMGUI_API void EndListBox(); |
| 799 |
IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1); |
| 800 |
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); |
| 801 |
|
| 802 |
|
| 803 |
|
| 804 |
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)); |
| 805 |
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)); |
| 806 |
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)); |
| 807 |
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)); |
| 808 |
|
| 809 |
|
| 810 |
|
| 811 |
IMGUI_API void Value(const char* prefix, bool b); |
| 812 |
IMGUI_API void Value(const char* prefix, int v); |
| 813 |
IMGUI_API void Value(const char* prefix, unsigned int v); |
| 814 |
IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL); |
| 815 |
|
| 816 |
|
| 817 |
|
| 818 |
|
| 819 |
|
| 820 |
|
| 821 |
IMGUI_API bool BeginMenuBar(); |
| 822 |
IMGUI_API void EndMenuBar(); |
| 823 |
IMGUI_API bool BeginMainMenuBar(); |
| 824 |
IMGUI_API void EndMainMenuBar(); |
| 825 |
IMGUI_API bool BeginMenu(const char* label, bool enabled = true); |
| 826 |
IMGUI_API void EndMenu(); |
| 827 |
IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true); |
| 828 |
IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled = true); |
| 829 |
|
| 830 |
|
| 831 |
|
| 832 |
|
| 833 |
|
| 834 |
IMGUI_API bool BeginTooltip(); |
| 835 |
IMGUI_API void EndTooltip(); |
| 836 |
IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); |
| 837 |
IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 838 |
|
| 839 |
|
| 840 |
|
| 841 |
|
| 842 |
|
| 843 |
IMGUI_API bool BeginItemTooltip(); |
| 844 |
IMGUI_API void SetItemTooltip(const char* fmt, ...) IM_FMTARGS(1); |
| 845 |
IMGUI_API void SetItemTooltipV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
|
| 850 |
|
| 851 |
|
| 852 |
|
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); |
| 858 |
IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); |
| 859 |
IMGUI_API void EndPopup(); |
| 860 |
|
| 861 |
|
| 862 |
|
| 863 |
|
| 864 |
|
| 865 |
|
| 866 |
|
| 867 |
|
| 868 |
IMGUI_API void OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags = 0); |
| 869 |
IMGUI_API void OpenPopup(ImGuiID id, ImGuiPopupFlags popup_flags = 0); |
| 870 |
IMGUI_API void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 0); |
| 871 |
IMGUI_API void CloseCurrentPopup(); |
| 872 |
|
| 873 |
|
| 874 |
|
| 875 |
|
| 876 |
|
| 877 |
|
| 878 |
|
| 879 |
|
| 880 |
|
| 881 |
|
| 882 |
IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 0); |
| 883 |
IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 0); |
| 884 |
IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 0); |
| 885 |
|
| 886 |
|
| 887 |
|
| 888 |
|
| 889 |
|
| 890 |
IMGUI_API bool IsPopupOpen(const char* str_id, ImGuiPopupFlags flags = 0); |
| 891 |
|
| 892 |
|
| 893 |
|
| 894 |
|
| 895 |
|
| 896 |
|
| 897 |
|
| 898 |
|
| 899 |
|
| 900 |
|
| 901 |
|
| 902 |
|
| 903 |
|
| 904 |
|
| 905 |
|
| 906 |
|
| 907 |
|
| 908 |
|
| 909 |
|
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
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); |
| 914 |
IMGUI_API void EndTable(); |
| 915 |
IMGUI_API void TableNextRow(ImGuiTableRowFlags row_flags = 0, float min_row_height = 0.0f); |
| 916 |
IMGUI_API bool TableNextColumn(); |
| 917 |
IMGUI_API bool TableSetColumnIndex(int column_n); |
| 918 |
|
| 919 |
|
| 920 |
|
| 921 |
|
| 922 |
|
| 923 |
|
| 924 |
|
| 925 |
|
| 926 |
|
| 927 |
|
| 928 |
IMGUI_API void TableSetupColumn(const char* label, ImGuiTableColumnFlags flags = 0, float init_width_or_weight = 0.0f, ImGuiID user_data = 0); |
| 929 |
IMGUI_API void TableSetupScrollFreeze(int cols, int rows); |
| 930 |
IMGUI_API void TableHeader(const char* label); |
| 931 |
IMGUI_API void TableHeadersRow(); |
| 932 |
IMGUI_API void TableAngledHeadersRow(); |
| 933 |
|
| 934 |
|
| 935 |
|
| 936 |
|
| 937 |
|
| 938 |
|
| 939 |
|
| 940 |
IMGUI_API ImGuiTableSortSpecs* TableGetSortSpecs(); |
| 941 |
IMGUI_API int TableGetColumnCount(); |
| 942 |
IMGUI_API int TableGetColumnIndex(); |
| 943 |
IMGUI_API int TableGetRowIndex(); |
| 944 |
IMGUI_API const char* TableGetColumnName(int column_n = -1); |
| 945 |
IMGUI_API ImGuiTableColumnFlags TableGetColumnFlags(int column_n = -1); |
| 946 |
IMGUI_API void TableSetColumnEnabled(int column_n, bool v); |
| 947 |
IMGUI_API int TableGetHoveredColumn(); |
| 948 |
IMGUI_API void TableSetBgColor(ImGuiTableBgTarget target, ImU32 color, int column_n = -1); |
| 949 |
|
| 950 |
|
| 951 |
|
| 952 |
IMGUI_API void Columns(int count = 1, const char* id = NULL, bool borders = true); |
| 953 |
IMGUI_API void NextColumn(); |
| 954 |
IMGUI_API int GetColumnIndex(); |
| 955 |
IMGUI_API float GetColumnWidth(int column_index = -1); |
| 956 |
IMGUI_API void SetColumnWidth(int column_index, float width); |
| 957 |
IMGUI_API float GetColumnOffset(int column_index = -1); |
| 958 |
IMGUI_API void SetColumnOffset(int column_index, float offset_x); |
| 959 |
IMGUI_API int GetColumnsCount(); |
| 960 |
|
| 961 |
|
| 962 |
|
| 963 |
IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); |
| 964 |
IMGUI_API void EndTabBar(); |
| 965 |
IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags flags = 0); |
| 966 |
IMGUI_API void EndTabItem(); |
| 967 |
IMGUI_API bool TabItemButton(const char* label, ImGuiTabItemFlags flags = 0); |
| 968 |
IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); |
| 969 |
|
| 970 |
|
| 971 |
|
| 972 |
|
| 973 |
|
| 974 |
|
| 975 |
|
| 976 |
|
| 977 |
|
| 978 |
|
| 979 |
|
| 980 |
|
| 981 |
|
| 982 |
|
| 983 |
|
| 984 |
|
| 985 |
|
| 986 |
|
| 987 |
|
| 988 |
|
| 989 |
|
| 990 |
|
| 991 |
IMGUI_API ImGuiID DockSpace(ImGuiID dockspace_id, const ImVec2& size = ImVec2(0, 0), ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); |
| 992 |
IMGUI_API ImGuiID DockSpaceOverViewport(ImGuiID dockspace_id = 0, const ImGuiViewport* viewport = NULL, ImGuiDockNodeFlags flags = 0, const ImGuiWindowClass* window_class = NULL); |
| 993 |
IMGUI_API void SetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond = 0); |
| 994 |
IMGUI_API void SetNextWindowClass(const ImGuiWindowClass* window_class); |
| 995 |
IMGUI_API ImGuiID GetWindowDockID(); |
| 996 |
IMGUI_API bool IsWindowDocked(); |
| 997 |
|
| 998 |
|
| 999 |
|
| 1000 |
IMGUI_API void LogToTTY(int auto_open_depth = -1); |
| 1001 |
IMGUI_API void LogToFile(int auto_open_depth = -1, const char* filename = NULL); |
| 1002 |
IMGUI_API void LogToClipboard(int auto_open_depth = -1); |
| 1003 |
IMGUI_API void LogFinish(); |
| 1004 |
IMGUI_API void LogButtons(); |
| 1005 |
IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); |
| 1006 |
IMGUI_API void LogTextV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 1007 |
|
| 1008 |
|
| 1009 |
|
| 1010 |
|
| 1011 |
|
| 1012 |
|
| 1013 |
IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); |
| 1014 |
IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t sz, ImGuiCond cond = 0); |
| 1015 |
IMGUI_API void EndDragDropSource(); |
| 1016 |
IMGUI_API bool BeginDragDropTarget(); |
| 1017 |
IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags = 0); |
| 1018 |
IMGUI_API void EndDragDropTarget(); |
| 1019 |
IMGUI_API const ImGuiPayload* GetDragDropPayload(); |
| 1020 |
|
| 1021 |
|
| 1022 |
|
| 1023 |
|
| 1024 |
|
| 1025 |
|
| 1026 |
IMGUI_API void BeginDisabled(bool disabled = true); |
| 1027 |
IMGUI_API void EndDisabled(); |
| 1028 |
|
| 1029 |
|
| 1030 |
|
| 1031 |
IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect); |
| 1032 |
IMGUI_API void PopClipRect(); |
| 1033 |
|
| 1034 |
|
| 1035 |
IMGUI_API void SetItemDefaultFocus(); |
| 1036 |
IMGUI_API void SetKeyboardFocusHere(int offset = 0); |
| 1037 |
|
| 1038 |
|
| 1039 |
IMGUI_API void SetNavCursorVisible(bool visible); |
| 1040 |
|
| 1041 |
|
| 1042 |
IMGUI_API void SetNextItemAllowOverlap(); |
| 1043 |
|
| 1044 |
|
| 1045 |
|
| 1046 |
|
| 1047 |
IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); |
| 1048 |
IMGUI_API bool IsItemActive(); |
| 1049 |
IMGUI_API bool IsItemFocused(); |
| 1050 |
IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); |
| 1051 |
IMGUI_API bool IsItemVisible(); |
| 1052 |
IMGUI_API bool IsItemEdited(); |
| 1053 |
IMGUI_API bool IsItemActivated(); |
| 1054 |
IMGUI_API bool IsItemDeactivated(); |
| 1055 |
IMGUI_API bool IsItemDeactivatedAfterEdit(); |
| 1056 |
IMGUI_API bool IsItemToggledOpen(); |
| 1057 |
IMGUI_API bool IsAnyItemHovered(); |
| 1058 |
IMGUI_API bool IsAnyItemActive(); |
| 1059 |
IMGUI_API bool IsAnyItemFocused(); |
| 1060 |
IMGUI_API ImGuiID GetItemID(); |
| 1061 |
IMGUI_API ImVec2 GetItemRectMin(); |
| 1062 |
IMGUI_API ImVec2 GetItemRectMax(); |
| 1063 |
IMGUI_API ImVec2 GetItemRectSize(); |
| 1064 |
IMGUI_API ImGuiItemFlags GetItemFlags(); |
| 1065 |
|
| 1066 |
|
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
IMGUI_API ImGuiViewport* GetMainViewport(); |
| 1071 |
|
| 1072 |
|
| 1073 |
IMGUI_API ImDrawList* GetBackgroundDrawList(ImGuiViewport* viewport = NULL); |
| 1074 |
IMGUI_API ImDrawList* GetForegroundDrawList(ImGuiViewport* viewport = NULL); |
| 1075 |
|
| 1076 |
|
| 1077 |
IMGUI_API bool IsRectVisible(const ImVec2& size); |
| 1078 |
IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); |
| 1079 |
IMGUI_API double GetTime(); |
| 1080 |
IMGUI_API int GetFrameCount(); |
| 1081 |
IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); |
| 1082 |
IMGUI_API const char* GetStyleColorName(ImGuiCol idx); |
| 1083 |
IMGUI_API void SetStateStorage(ImGuiStorage* storage); |
| 1084 |
IMGUI_API ImGuiStorage* GetStateStorage(); |
| 1085 |
|
| 1086 |
|
| 1087 |
IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text_after_double_hash = false, float wrap_width = -1.0f); |
| 1088 |
|
| 1089 |
|
| 1090 |
IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in); |
| 1091 |
IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in); |
| 1092 |
IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v); |
| 1093 |
IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b); |
| 1094 |
|
| 1095 |
|
| 1096 |
|
| 1097 |
|
| 1098 |
|
| 1099 |
IMGUI_API bool IsKeyDown(ImGuiKey key); |
| 1100 |
IMGUI_API bool IsKeyPressed(ImGuiKey key, bool repeat = true); |
| 1101 |
IMGUI_API bool IsKeyReleased(ImGuiKey key); |
| 1102 |
IMGUI_API bool IsKeyChordPressed(ImGuiKeyChord key_chord); |
| 1103 |
IMGUI_API int GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); |
| 1104 |
IMGUI_API const char* GetKeyName(ImGuiKey key); |
| 1105 |
IMGUI_API void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); |
| 1106 |
|
| 1107 |
|
| 1108 |
|
| 1109 |
|
| 1110 |
|
| 1111 |
|
| 1112 |
|
| 1113 |
|
| 1114 |
|
| 1115 |
|
| 1116 |
|
| 1117 |
|
| 1118 |
|
| 1119 |
|
| 1120 |
|
| 1121 |
|
| 1122 |
|
| 1123 |
|
| 1124 |
|
| 1125 |
|
| 1126 |
|
| 1127 |
IMGUI_API bool Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0); |
| 1128 |
IMGUI_API void SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags = 0); |
| 1129 |
|
| 1130 |
|
| 1131 |
|
| 1132 |
|
| 1133 |
|
| 1134 |
|
| 1135 |
|
| 1136 |
|
| 1137 |
IMGUI_API bool SetItemKeyOwner(ImGuiKey key); |
| 1138 |
|
| 1139 |
|
| 1140 |
|
| 1141 |
|
| 1142 |
|
| 1143 |
IMGUI_API bool IsMouseDown(ImGuiMouseButton button); |
| 1144 |
IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); |
| 1145 |
IMGUI_API bool IsMouseReleased(ImGuiMouseButton button); |
| 1146 |
IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); |
| 1147 |
IMGUI_API bool IsMouseReleasedWithDelay(ImGuiMouseButton button, float delay); |
| 1148 |
IMGUI_API int GetMouseClickedCount(ImGuiMouseButton button); |
| 1149 |
IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = true); |
| 1150 |
IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); |
| 1151 |
IMGUI_API bool IsAnyMouseDown(); |
| 1152 |
IMGUI_API ImVec2 GetMousePos(); |
| 1153 |
IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); |
| 1154 |
IMGUI_API bool IsMouseDragging(ImGuiMouseButton button, float lock_threshold = -1.0f); |
| 1155 |
IMGUI_API ImVec2 GetMouseDragDelta(ImGuiMouseButton button = 0, float lock_threshold = -1.0f); |
| 1156 |
IMGUI_API void ResetMouseDragDelta(ImGuiMouseButton button = 0); |
| 1157 |
IMGUI_API ImGuiMouseCursor GetMouseCursor(); |
| 1158 |
IMGUI_API void SetMouseCursor(ImGuiMouseCursor cursor_type); |
| 1159 |
IMGUI_API void SetNextFrameWantCaptureMouse(bool want_capture_mouse); |
| 1160 |
|
| 1161 |
|
| 1162 |
|
| 1163 |
IMGUI_API const char* GetClipboardText(); |
| 1164 |
IMGUI_API void SetClipboardText(const char* text); |
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
|
| 1169 |
|
| 1170 |
IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); |
| 1171 |
IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); |
| 1172 |
IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename); |
| 1173 |
IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); |
| 1174 |
|
| 1175 |
|
| 1176 |
|
| 1177 |
|
| 1178 |
|
| 1179 |
IMGUI_API void DebugTextEncoding(const char* text); |
| 1180 |
IMGUI_API void DebugFlashStyleColor(ImGuiCol idx); |
| 1181 |
IMGUI_API void DebugStartItemPicker(); |
| 1182 |
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); |
| 1183 |
#ifndef IMGUI_DISABLE_DEBUG_TOOLS |
| 1184 |
IMGUI_API void DebugLog(const char* fmt, ...) IM_FMTARGS(1); |
| 1185 |
IMGUI_API void DebugLogV(const char* fmt, va_list args) IM_FMTLIST(1); |
| 1186 |
#endif |
| 1187 |
|
| 1188 |
|
| 1189 |
|
| 1190 |
|
| 1191 |
|
| 1192 |
IMGUI_API void SetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data = NULL); |
| 1193 |
IMGUI_API void GetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); |
| 1194 |
IMGUI_API void* MemAlloc(size_t size); |
| 1195 |
IMGUI_API void MemFree(void* ptr); |
| 1196 |
|
| 1197 |
|
| 1198 |
|
| 1199 |
|
| 1200 |
IMGUI_API void UpdatePlatformWindows(); |
| 1201 |
IMGUI_API void RenderPlatformWindowsDefault(void* platform_render_arg = NULL, void* renderer_render_arg = NULL); |
| 1202 |
IMGUI_API void DestroyPlatformWindows(); |
| 1203 |
IMGUI_API ImGuiViewport* FindViewportByID(ImGuiID viewport_id); |
| 1204 |
IMGUI_API ImGuiViewport* FindViewportByPlatformHandle(void* platform_handle); |
| 1205 |
|
| 1206 |
} |
| 1207 |
|
| 1208 |
|
| 1209 |
|
| 1210 |
|
| 1211 |
|
| 1212 |
|
| 1213 |
|
| 1214 |
enum ImGuiWindowFlags_ |
| 1215 |
{ |
| 1216 |
ImGuiWindowFlags_None = 0, |
| 1217 |
ImGuiWindowFlags_NoTitleBar = 1 << 0, |
| 1218 |
ImGuiWindowFlags_NoResize = 1 << 1, |
| 1219 |
ImGuiWindowFlags_NoMove = 1 << 2, |
| 1220 |
ImGuiWindowFlags_NoScrollbar = 1 << 3, |
| 1221 |
ImGuiWindowFlags_NoScrollWithMouse = 1 << 4, |
| 1222 |
ImGuiWindowFlags_NoCollapse = 1 << 5, |
| 1223 |
ImGuiWindowFlags_AlwaysAutoResize = 1 << 6, |
| 1224 |
ImGuiWindowFlags_NoBackground = 1 << 7, |
| 1225 |
ImGuiWindowFlags_NoSavedSettings = 1 << 8, |
| 1226 |
ImGuiWindowFlags_NoMouseInputs = 1 << 9, |
| 1227 |
ImGuiWindowFlags_MenuBar = 1 << 10, |
| 1228 |
ImGuiWindowFlags_HorizontalScrollbar = 1 << 11, |
| 1229 |
ImGuiWindowFlags_NoFocusOnAppearing = 1 << 12, |
| 1230 |
ImGuiWindowFlags_NoBringToFrontOnFocus = 1 << 13, |
| 1231 |
ImGuiWindowFlags_AlwaysVerticalScrollbar= 1 << 14, |
| 1232 |
ImGuiWindowFlags_AlwaysHorizontalScrollbar=1<< 15, |
| 1233 |
ImGuiWindowFlags_NoNavInputs = 1 << 16, |
| 1234 |
ImGuiWindowFlags_NoNavFocus = 1 << 17, |
| 1235 |
ImGuiWindowFlags_UnsavedDocument = 1 << 18, |
| 1236 |
ImGuiWindowFlags_NoDocking = 1 << 19, |
| 1237 |
ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, |
| 1238 |
ImGuiWindowFlags_NoDecoration = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoCollapse, |
| 1239 |
ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, |
| 1240 |
|
| 1241 |
|
| 1242 |
ImGuiWindowFlags_DockNodeHost = 1 << 23, |
| 1243 |
ImGuiWindowFlags_ChildWindow = 1 << 24, |
| 1244 |
ImGuiWindowFlags_Tooltip = 1 << 25, |
| 1245 |
ImGuiWindowFlags_Popup = 1 << 26, |
| 1246 |
ImGuiWindowFlags_Modal = 1 << 27, |
| 1247 |
ImGuiWindowFlags_ChildMenu = 1 << 28, |
| 1248 |
|
| 1249 |
|
| 1250 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1251 |
|
| 1252 |
|
| 1253 |
#endif |
| 1254 |
}; |
| 1255 |
|
| 1256 |
|
| 1257 |
|
| 1258 |
|
| 1259 |
|
| 1260 |
|
| 1261 |
|
| 1262 |
|
| 1263 |
|
| 1264 |
|
| 1265 |
enum ImGuiChildFlags_ |
| 1266 |
{ |
| 1267 |
ImGuiChildFlags_None = 0, |
| 1268 |
ImGuiChildFlags_Borders = 1 << 0, |
| 1269 |
ImGuiChildFlags_AlwaysUseWindowPadding = 1 << 1, |
| 1270 |
ImGuiChildFlags_ResizeX = 1 << 2, |
| 1271 |
ImGuiChildFlags_ResizeY = 1 << 3, |
| 1272 |
ImGuiChildFlags_AutoResizeX = 1 << 4, |
| 1273 |
ImGuiChildFlags_AutoResizeY = 1 << 5, |
| 1274 |
ImGuiChildFlags_AlwaysAutoResize = 1 << 6, |
| 1275 |
ImGuiChildFlags_FrameStyle = 1 << 7, |
| 1276 |
ImGuiChildFlags_NavFlattened = 1 << 8, |
| 1277 |
|
| 1278 |
|
| 1279 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1280 |
|
| 1281 |
#endif |
| 1282 |
}; |
| 1283 |
|
| 1284 |
|
| 1285 |
|
| 1286 |
enum ImGuiItemFlags_ |
| 1287 |
{ |
| 1288 |
ImGuiItemFlags_None = 0, |
| 1289 |
ImGuiItemFlags_NoTabStop = 1 << 0, |
| 1290 |
ImGuiItemFlags_NoNav = 1 << 1, |
| 1291 |
ImGuiItemFlags_NoNavDefaultFocus = 1 << 2, |
| 1292 |
ImGuiItemFlags_ButtonRepeat = 1 << 3, |
| 1293 |
ImGuiItemFlags_AutoClosePopups = 1 << 4, |
| 1294 |
ImGuiItemFlags_AllowDuplicateId = 1 << 5, |
| 1295 |
ImGuiItemFlags_Disabled = 1 << 6, |
| 1296 |
}; |
| 1297 |
|
| 1298 |
|
| 1299 |
|
| 1300 |
enum ImGuiInputTextFlags_ |
| 1301 |
{ |
| 1302 |
|
| 1303 |
ImGuiInputTextFlags_None = 0, |
| 1304 |
ImGuiInputTextFlags_CharsDecimal = 1 << 0, |
| 1305 |
ImGuiInputTextFlags_CharsHexadecimal = 1 << 1, |
| 1306 |
ImGuiInputTextFlags_CharsScientific = 1 << 2, |
| 1307 |
ImGuiInputTextFlags_CharsUppercase = 1 << 3, |
| 1308 |
ImGuiInputTextFlags_CharsNoBlank = 1 << 4, |
| 1309 |
|
| 1310 |
|
| 1311 |
ImGuiInputTextFlags_AllowTabInput = 1 << 5, |
| 1312 |
ImGuiInputTextFlags_EnterReturnsTrue = 1 << 6, |
| 1313 |
ImGuiInputTextFlags_EscapeClearsAll = 1 << 7, |
| 1314 |
ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 8, |
| 1315 |
|
| 1316 |
|
| 1317 |
ImGuiInputTextFlags_ReadOnly = 1 << 9, |
| 1318 |
ImGuiInputTextFlags_Password = 1 << 10, |
| 1319 |
ImGuiInputTextFlags_AlwaysOverwrite = 1 << 11, |
| 1320 |
ImGuiInputTextFlags_AutoSelectAll = 1 << 12, |
| 1321 |
ImGuiInputTextFlags_ParseEmptyRefVal = 1 << 13, |
| 1322 |
ImGuiInputTextFlags_DisplayEmptyRefVal = 1 << 14, |
| 1323 |
ImGuiInputTextFlags_NoHorizontalScroll = 1 << 15, |
| 1324 |
ImGuiInputTextFlags_NoUndoRedo = 1 << 16, |
| 1325 |
|
| 1326 |
|
| 1327 |
ImGuiInputTextFlags_ElideLeft = 1 << 17, |
| 1328 |
|
| 1329 |
|
| 1330 |
ImGuiInputTextFlags_CallbackCompletion = 1 << 18, |
| 1331 |
ImGuiInputTextFlags_CallbackHistory = 1 << 19, |
| 1332 |
ImGuiInputTextFlags_CallbackAlways = 1 << 20, |
| 1333 |
ImGuiInputTextFlags_CallbackCharFilter = 1 << 21, |
| 1334 |
ImGuiInputTextFlags_CallbackResize = 1 << 22, |
| 1335 |
ImGuiInputTextFlags_CallbackEdit = 1 << 23, |
| 1336 |
|
| 1337 |
|
| 1338 |
|
| 1339 |
|
| 1340 |
|
| 1341 |
|
| 1342 |
|
| 1343 |
|
| 1344 |
ImGuiInputTextFlags_WordWrap = 1 << 24, |
| 1345 |
|
| 1346 |
|
| 1347 |
|
| 1348 |
}; |
| 1349 |
|
| 1350 |
|
| 1351 |
enum ImGuiTreeNodeFlags_ |
| 1352 |
{ |
| 1353 |
ImGuiTreeNodeFlags_None = 0, |
| 1354 |
ImGuiTreeNodeFlags_Selected = 1 << 0, |
| 1355 |
ImGuiTreeNodeFlags_Framed = 1 << 1, |
| 1356 |
ImGuiTreeNodeFlags_AllowOverlap = 1 << 2, |
| 1357 |
ImGuiTreeNodeFlags_NoTreePushOnOpen = 1 << 3, |
| 1358 |
ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1 << 4, |
| 1359 |
ImGuiTreeNodeFlags_DefaultOpen = 1 << 5, |
| 1360 |
ImGuiTreeNodeFlags_OpenOnDoubleClick = 1 << 6, |
| 1361 |
ImGuiTreeNodeFlags_OpenOnArrow = 1 << 7, |
| 1362 |
ImGuiTreeNodeFlags_Leaf = 1 << 8, |
| 1363 |
ImGuiTreeNodeFlags_Bullet = 1 << 9, |
| 1364 |
ImGuiTreeNodeFlags_FramePadding = 1 << 10, |
| 1365 |
ImGuiTreeNodeFlags_SpanAvailWidth = 1 << 11, |
| 1366 |
ImGuiTreeNodeFlags_SpanFullWidth = 1 << 12, |
| 1367 |
ImGuiTreeNodeFlags_SpanLabelWidth = 1 << 13, |
| 1368 |
ImGuiTreeNodeFlags_SpanAllColumns = 1 << 14, |
| 1369 |
ImGuiTreeNodeFlags_LabelSpanAllColumns = 1 << 15, |
| 1370 |
|
| 1371 |
ImGuiTreeNodeFlags_NavLeftJumpsToParent = 1 << 17, |
| 1372 |
ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, |
| 1373 |
|
| 1374 |
|
| 1375 |
|
| 1376 |
ImGuiTreeNodeFlags_DrawLinesNone = 1 << 18, |
| 1377 |
ImGuiTreeNodeFlags_DrawLinesFull = 1 << 19, |
| 1378 |
ImGuiTreeNodeFlags_DrawLinesToNodes = 1 << 20, |
| 1379 |
|
| 1380 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1381 |
ImGuiTreeNodeFlags_NavLeftJumpsBackHere = ImGuiTreeNodeFlags_NavLeftJumpsToParent, |
| 1382 |
|
| 1383 |
|
| 1384 |
#endif |
| 1385 |
}; |
| 1386 |
|
| 1387 |
|
| 1388 |
|
| 1389 |
|
| 1390 |
enum ImGuiPopupFlags_ |
| 1391 |
{ |
| 1392 |
ImGuiPopupFlags_None = 0, |
| 1393 |
ImGuiPopupFlags_MouseButtonLeft = 1 << 2, |
| 1394 |
ImGuiPopupFlags_MouseButtonRight = 2 << 2, |
| 1395 |
ImGuiPopupFlags_MouseButtonMiddle = 3 << 2, |
| 1396 |
ImGuiPopupFlags_NoReopen = 1 << 5, |
| 1397 |
|
| 1398 |
ImGuiPopupFlags_NoOpenOverExistingPopup = 1 << 7, |
| 1399 |
ImGuiPopupFlags_NoOpenOverItems = 1 << 8, |
| 1400 |
ImGuiPopupFlags_AnyPopupId = 1 << 10, |
| 1401 |
ImGuiPopupFlags_AnyPopupLevel = 1 << 11, |
| 1402 |
ImGuiPopupFlags_AnyPopup = ImGuiPopupFlags_AnyPopupId | ImGuiPopupFlags_AnyPopupLevel, |
| 1403 |
ImGuiPopupFlags_MouseButtonShift_ = 2, |
| 1404 |
ImGuiPopupFlags_MouseButtonMask_ = 0x0C, |
| 1405 |
ImGuiPopupFlags_InvalidMask_ = 0x03, |
| 1406 |
}; |
| 1407 |
|
| 1408 |
|
| 1409 |
enum ImGuiSelectableFlags_ |
| 1410 |
{ |
| 1411 |
ImGuiSelectableFlags_None = 0, |
| 1412 |
ImGuiSelectableFlags_NoAutoClosePopups = 1 << 0, |
| 1413 |
ImGuiSelectableFlags_SpanAllColumns = 1 << 1, |
| 1414 |
ImGuiSelectableFlags_AllowDoubleClick = 1 << 2, |
| 1415 |
ImGuiSelectableFlags_Disabled = 1 << 3, |
| 1416 |
ImGuiSelectableFlags_AllowOverlap = 1 << 4, |
| 1417 |
ImGuiSelectableFlags_Highlight = 1 << 5, |
| 1418 |
ImGuiSelectableFlags_SelectOnNav = 1 << 6, |
| 1419 |
|
| 1420 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1421 |
ImGuiSelectableFlags_DontClosePopups = ImGuiSelectableFlags_NoAutoClosePopups, |
| 1422 |
|
| 1423 |
#endif |
| 1424 |
}; |
| 1425 |
|
| 1426 |
|
| 1427 |
enum ImGuiComboFlags_ |
| 1428 |
{ |
| 1429 |
ImGuiComboFlags_None = 0, |
| 1430 |
ImGuiComboFlags_PopupAlignLeft = 1 << 0, |
| 1431 |
ImGuiComboFlags_HeightSmall = 1 << 1, |
| 1432 |
ImGuiComboFlags_HeightRegular = 1 << 2, |
| 1433 |
ImGuiComboFlags_HeightLarge = 1 << 3, |
| 1434 |
ImGuiComboFlags_HeightLargest = 1 << 4, |
| 1435 |
ImGuiComboFlags_NoArrowButton = 1 << 5, |
| 1436 |
ImGuiComboFlags_NoPreview = 1 << 6, |
| 1437 |
ImGuiComboFlags_WidthFitPreview = 1 << 7, |
| 1438 |
ImGuiComboFlags_HeightMask_ = ImGuiComboFlags_HeightSmall | ImGuiComboFlags_HeightRegular | ImGuiComboFlags_HeightLarge | ImGuiComboFlags_HeightLargest, |
| 1439 |
}; |
| 1440 |
|
| 1441 |
|
| 1442 |
enum ImGuiTabBarFlags_ |
| 1443 |
{ |
| 1444 |
ImGuiTabBarFlags_None = 0, |
| 1445 |
ImGuiTabBarFlags_Reorderable = 1 << 0, |
| 1446 |
ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1, |
| 1447 |
ImGuiTabBarFlags_TabListPopupButton = 1 << 2, |
| 1448 |
ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, |
| 1449 |
ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4, |
| 1450 |
ImGuiTabBarFlags_NoTooltip = 1 << 5, |
| 1451 |
ImGuiTabBarFlags_DrawSelectedOverline = 1 << 6, |
| 1452 |
|
| 1453 |
|
| 1454 |
ImGuiTabBarFlags_FittingPolicyMixed = 1 << 7, |
| 1455 |
ImGuiTabBarFlags_FittingPolicyShrink = 1 << 8, |
| 1456 |
ImGuiTabBarFlags_FittingPolicyScroll = 1 << 9, |
| 1457 |
ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyMixed | ImGuiTabBarFlags_FittingPolicyShrink | ImGuiTabBarFlags_FittingPolicyScroll, |
| 1458 |
ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyMixed, |
| 1459 |
|
| 1460 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1461 |
ImGuiTabBarFlags_FittingPolicyResizeDown = ImGuiTabBarFlags_FittingPolicyShrink, |
| 1462 |
#endif |
| 1463 |
}; |
| 1464 |
|
| 1465 |
|
| 1466 |
enum ImGuiTabItemFlags_ |
| 1467 |
{ |
| 1468 |
ImGuiTabItemFlags_None = 0, |
| 1469 |
ImGuiTabItemFlags_UnsavedDocument = 1 << 0, |
| 1470 |
ImGuiTabItemFlags_SetSelected = 1 << 1, |
| 1471 |
ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, |
| 1472 |
ImGuiTabItemFlags_NoPushId = 1 << 3, |
| 1473 |
ImGuiTabItemFlags_NoTooltip = 1 << 4, |
| 1474 |
ImGuiTabItemFlags_NoReorder = 1 << 5, |
| 1475 |
ImGuiTabItemFlags_Leading = 1 << 6, |
| 1476 |
ImGuiTabItemFlags_Trailing = 1 << 7, |
| 1477 |
ImGuiTabItemFlags_NoAssumedClosure = 1 << 8, |
| 1478 |
}; |
| 1479 |
|
| 1480 |
|
| 1481 |
enum ImGuiFocusedFlags_ |
| 1482 |
{ |
| 1483 |
ImGuiFocusedFlags_None = 0, |
| 1484 |
ImGuiFocusedFlags_ChildWindows = 1 << 0, |
| 1485 |
ImGuiFocusedFlags_RootWindow = 1 << 1, |
| 1486 |
ImGuiFocusedFlags_AnyWindow = 1 << 2, |
| 1487 |
ImGuiFocusedFlags_NoPopupHierarchy = 1 << 3, |
| 1488 |
ImGuiFocusedFlags_DockHierarchy = 1 << 4, |
| 1489 |
ImGuiFocusedFlags_RootAndChildWindows = ImGuiFocusedFlags_RootWindow | ImGuiFocusedFlags_ChildWindows, |
| 1490 |
}; |
| 1491 |
|
| 1492 |
|
| 1493 |
|
| 1494 |
|
| 1495 |
enum ImGuiHoveredFlags_ |
| 1496 |
{ |
| 1497 |
ImGuiHoveredFlags_None = 0, |
| 1498 |
ImGuiHoveredFlags_ChildWindows = 1 << 0, |
| 1499 |
ImGuiHoveredFlags_RootWindow = 1 << 1, |
| 1500 |
ImGuiHoveredFlags_AnyWindow = 1 << 2, |
| 1501 |
ImGuiHoveredFlags_NoPopupHierarchy = 1 << 3, |
| 1502 |
ImGuiHoveredFlags_DockHierarchy = 1 << 4, |
| 1503 |
ImGuiHoveredFlags_AllowWhenBlockedByPopup = 1 << 5, |
| 1504 |
|
| 1505 |
ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 1 << 7, |
| 1506 |
ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1 << 8, |
| 1507 |
ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1 << 9, |
| 1508 |
ImGuiHoveredFlags_AllowWhenDisabled = 1 << 10, |
| 1509 |
ImGuiHoveredFlags_NoNavOverride = 1 << 11, |
| 1510 |
ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow, |
| 1511 |
ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, |
| 1512 |
ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, |
| 1513 |
|
| 1514 |
|
| 1515 |
|
| 1516 |
|
| 1517 |
|
| 1518 |
|
| 1519 |
|
| 1520 |
ImGuiHoveredFlags_ForTooltip = 1 << 12, |
| 1521 |
|
| 1522 |
|
| 1523 |
|
| 1524 |
|
| 1525 |
ImGuiHoveredFlags_Stationary = 1 << 13, |
| 1526 |
ImGuiHoveredFlags_DelayNone = 1 << 14, |
| 1527 |
ImGuiHoveredFlags_DelayShort = 1 << 15, |
| 1528 |
ImGuiHoveredFlags_DelayNormal = 1 << 16, |
| 1529 |
ImGuiHoveredFlags_NoSharedDelay = 1 << 17, |
| 1530 |
}; |
| 1531 |
|
| 1532 |
|
| 1533 |
|
| 1534 |
|
| 1535 |
enum ImGuiDockNodeFlags_ |
| 1536 |
{ |
| 1537 |
ImGuiDockNodeFlags_None = 0, |
| 1538 |
ImGuiDockNodeFlags_KeepAliveOnly = 1 << 0, |
| 1539 |
|
| 1540 |
ImGuiDockNodeFlags_NoDockingOverCentralNode = 1 << 2, |
| 1541 |
ImGuiDockNodeFlags_PassthruCentralNode = 1 << 3, |
| 1542 |
ImGuiDockNodeFlags_NoDockingSplit = 1 << 4, |
| 1543 |
ImGuiDockNodeFlags_NoResize = 1 << 5, |
| 1544 |
ImGuiDockNodeFlags_AutoHideTabBar = 1 << 6, |
| 1545 |
ImGuiDockNodeFlags_NoUndocking = 1 << 7, |
| 1546 |
|
| 1547 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1548 |
ImGuiDockNodeFlags_NoSplit = ImGuiDockNodeFlags_NoDockingSplit, |
| 1549 |
ImGuiDockNodeFlags_NoDockingInCentralNode = ImGuiDockNodeFlags_NoDockingOverCentralNode, |
| 1550 |
#endif |
| 1551 |
}; |
| 1552 |
|
| 1553 |
|
| 1554 |
enum ImGuiDragDropFlags_ |
| 1555 |
{ |
| 1556 |
ImGuiDragDropFlags_None = 0, |
| 1557 |
|
| 1558 |
ImGuiDragDropFlags_SourceNoPreviewTooltip = 1 << 0, |
| 1559 |
ImGuiDragDropFlags_SourceNoDisableHover = 1 << 1, |
| 1560 |
ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 1 << 2, |
| 1561 |
ImGuiDragDropFlags_SourceAllowNullID = 1 << 3, |
| 1562 |
ImGuiDragDropFlags_SourceExtern = 1 << 4, |
| 1563 |
ImGuiDragDropFlags_PayloadAutoExpire = 1 << 5, |
| 1564 |
ImGuiDragDropFlags_PayloadNoCrossContext = 1 << 6, |
| 1565 |
ImGuiDragDropFlags_PayloadNoCrossProcess = 1 << 7, |
| 1566 |
|
| 1567 |
ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10, |
| 1568 |
ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11, |
| 1569 |
ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12, |
| 1570 |
ImGuiDragDropFlags_AcceptDrawAsHovered = 1 << 13, |
| 1571 |
ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect, |
| 1572 |
|
| 1573 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1574 |
ImGuiDragDropFlags_SourceAutoExpirePayload = ImGuiDragDropFlags_PayloadAutoExpire, |
| 1575 |
#endif |
| 1576 |
}; |
| 1577 |
|
| 1578 |
|
| 1579 |
#define IMGUI_PAYLOAD_TYPE_COLOR_3F "_COL3F" |
| 1580 |
#define IMGUI_PAYLOAD_TYPE_COLOR_4F "_COL4F" |
| 1581 |
|
| 1582 |
|
| 1583 |
enum ImGuiDataType_ |
| 1584 |
{ |
| 1585 |
ImGuiDataType_S8, |
| 1586 |
ImGuiDataType_U8, |
| 1587 |
ImGuiDataType_S16, |
| 1588 |
ImGuiDataType_U16, |
| 1589 |
ImGuiDataType_S32, |
| 1590 |
ImGuiDataType_U32, |
| 1591 |
ImGuiDataType_S64, |
| 1592 |
ImGuiDataType_U64, |
| 1593 |
ImGuiDataType_Float, |
| 1594 |
ImGuiDataType_Double, |
| 1595 |
ImGuiDataType_Bool, |
| 1596 |
ImGuiDataType_String, |
| 1597 |
ImGuiDataType_COUNT |
| 1598 |
}; |
| 1599 |
|
| 1600 |
|
| 1601 |
enum ImGuiDir : int |
| 1602 |
{ |
| 1603 |
ImGuiDir_None = -1, |
| 1604 |
ImGuiDir_Left = 0, |
| 1605 |
ImGuiDir_Right = 1, |
| 1606 |
ImGuiDir_Up = 2, |
| 1607 |
ImGuiDir_Down = 3, |
| 1608 |
ImGuiDir_COUNT |
| 1609 |
}; |
| 1610 |
|
| 1611 |
|
| 1612 |
enum ImGuiSortDirection : ImU8 |
| 1613 |
{ |
| 1614 |
ImGuiSortDirection_None = 0, |
| 1615 |
ImGuiSortDirection_Ascending = 1, |
| 1616 |
ImGuiSortDirection_Descending = 2 |
| 1617 |
}; |
| 1618 |
|
| 1619 |
|
| 1620 |
|
| 1621 |
|
| 1622 |
|
| 1623 |
|
| 1624 |
|
| 1625 |
enum ImGuiKey : int |
| 1626 |
{ |
| 1627 |
|
| 1628 |
ImGuiKey_None = 0, |
| 1629 |
ImGuiKey_NamedKey_BEGIN = 512, |
| 1630 |
|
| 1631 |
ImGuiKey_Tab = 512, |
| 1632 |
ImGuiKey_LeftArrow, |
| 1633 |
ImGuiKey_RightArrow, |
| 1634 |
ImGuiKey_UpArrow, |
| 1635 |
ImGuiKey_DownArrow, |
| 1636 |
ImGuiKey_PageUp, |
| 1637 |
ImGuiKey_PageDown, |
| 1638 |
ImGuiKey_Home, |
| 1639 |
ImGuiKey_End, |
| 1640 |
ImGuiKey_Insert, |
| 1641 |
ImGuiKey_Delete, |
| 1642 |
ImGuiKey_Backspace, |
| 1643 |
ImGuiKey_Space, |
| 1644 |
ImGuiKey_Enter, |
| 1645 |
ImGuiKey_Escape, |
| 1646 |
ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, ImGuiKey_LeftSuper, |
| 1647 |
ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, ImGuiKey_RightSuper, |
| 1648 |
ImGuiKey_Menu, |
| 1649 |
ImGuiKey_0, ImGuiKey_1, ImGuiKey_2, ImGuiKey_3, ImGuiKey_4, ImGuiKey_5, ImGuiKey_6, ImGuiKey_7, ImGuiKey_8, ImGuiKey_9, |
| 1650 |
ImGuiKey_A, ImGuiKey_B, ImGuiKey_C, ImGuiKey_D, ImGuiKey_E, ImGuiKey_F, ImGuiKey_G, ImGuiKey_H, ImGuiKey_I, ImGuiKey_J, |
| 1651 |
ImGuiKey_K, ImGuiKey_L, ImGuiKey_M, ImGuiKey_N, ImGuiKey_O, ImGuiKey_P, ImGuiKey_Q, ImGuiKey_R, ImGuiKey_S, ImGuiKey_T, |
| 1652 |
ImGuiKey_U, ImGuiKey_V, ImGuiKey_W, ImGuiKey_X, ImGuiKey_Y, ImGuiKey_Z, |
| 1653 |
ImGuiKey_F1, ImGuiKey_F2, ImGuiKey_F3, ImGuiKey_F4, ImGuiKey_F5, ImGuiKey_F6, |
| 1654 |
ImGuiKey_F7, ImGuiKey_F8, ImGuiKey_F9, ImGuiKey_F10, ImGuiKey_F11, ImGuiKey_F12, |
| 1655 |
ImGuiKey_F13, ImGuiKey_F14, ImGuiKey_F15, ImGuiKey_F16, ImGuiKey_F17, ImGuiKey_F18, |
| 1656 |
ImGuiKey_F19, ImGuiKey_F20, ImGuiKey_F21, ImGuiKey_F22, ImGuiKey_F23, ImGuiKey_F24, |
| 1657 |
ImGuiKey_Apostrophe, |
| 1658 |
ImGuiKey_Comma, |
| 1659 |
ImGuiKey_Minus, |
| 1660 |
ImGuiKey_Period, |
| 1661 |
ImGuiKey_Slash, |
| 1662 |
ImGuiKey_Semicolon, |
| 1663 |
ImGuiKey_Equal, |
| 1664 |
ImGuiKey_LeftBracket, |
| 1665 |
ImGuiKey_Backslash, |
| 1666 |
ImGuiKey_RightBracket, |
| 1667 |
ImGuiKey_GraveAccent, |
| 1668 |
ImGuiKey_CapsLock, |
| 1669 |
ImGuiKey_ScrollLock, |
| 1670 |
ImGuiKey_NumLock, |
| 1671 |
ImGuiKey_PrintScreen, |
| 1672 |
ImGuiKey_Pause, |
| 1673 |
ImGuiKey_Keypad0, ImGuiKey_Keypad1, ImGuiKey_Keypad2, ImGuiKey_Keypad3, ImGuiKey_Keypad4, |
| 1674 |
ImGuiKey_Keypad5, ImGuiKey_Keypad6, ImGuiKey_Keypad7, ImGuiKey_Keypad8, ImGuiKey_Keypad9, |
| 1675 |
ImGuiKey_KeypadDecimal, |
| 1676 |
ImGuiKey_KeypadDivide, |
| 1677 |
ImGuiKey_KeypadMultiply, |
| 1678 |
ImGuiKey_KeypadSubtract, |
| 1679 |
ImGuiKey_KeypadAdd, |
| 1680 |
ImGuiKey_KeypadEnter, |
| 1681 |
ImGuiKey_KeypadEqual, |
| 1682 |
ImGuiKey_AppBack, |
| 1683 |
ImGuiKey_AppForward, |
| 1684 |
ImGuiKey_Oem102, |
| 1685 |
|
| 1686 |
|
| 1687 |
|
| 1688 |
|
| 1689 |
|
| 1690 |
ImGuiKey_GamepadStart, |
| 1691 |
ImGuiKey_GamepadBack, |
| 1692 |
ImGuiKey_GamepadFaceLeft, |
| 1693 |
ImGuiKey_GamepadFaceRight, |
| 1694 |
ImGuiKey_GamepadFaceUp, |
| 1695 |
ImGuiKey_GamepadFaceDown, |
| 1696 |
ImGuiKey_GamepadDpadLeft, |
| 1697 |
ImGuiKey_GamepadDpadRight, |
| 1698 |
ImGuiKey_GamepadDpadUp, |
| 1699 |
ImGuiKey_GamepadDpadDown, |
| 1700 |
ImGuiKey_GamepadL1, |
| 1701 |
ImGuiKey_GamepadR1, |
| 1702 |
ImGuiKey_GamepadL2, |
| 1703 |
ImGuiKey_GamepadR2, |
| 1704 |
ImGuiKey_GamepadL3, |
| 1705 |
ImGuiKey_GamepadR3, |
| 1706 |
ImGuiKey_GamepadLStickLeft, |
| 1707 |
ImGuiKey_GamepadLStickRight, |
| 1708 |
ImGuiKey_GamepadLStickUp, |
| 1709 |
ImGuiKey_GamepadLStickDown, |
| 1710 |
ImGuiKey_GamepadRStickLeft, |
| 1711 |
ImGuiKey_GamepadRStickRight, |
| 1712 |
ImGuiKey_GamepadRStickUp, |
| 1713 |
ImGuiKey_GamepadRStickDown, |
| 1714 |
|
| 1715 |
|
| 1716 |
|
| 1717 |
ImGuiKey_MouseLeft, ImGuiKey_MouseRight, ImGuiKey_MouseMiddle, ImGuiKey_MouseX1, ImGuiKey_MouseX2, ImGuiKey_MouseWheelX, ImGuiKey_MouseWheelY, |
| 1718 |
|
| 1719 |
|
| 1720 |
ImGuiKey_ReservedForModCtrl, ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, |
| 1721 |
|
| 1722 |
|
| 1723 |
ImGuiKey_NamedKey_END, |
| 1724 |
ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN, |
| 1725 |
|
| 1726 |
|
| 1727 |
|
| 1728 |
|
| 1729 |
|
| 1730 |
|
| 1731 |
|
| 1732 |
|
| 1733 |
|
| 1734 |
|
| 1735 |
|
| 1736 |
ImGuiMod_None = 0, |
| 1737 |
ImGuiMod_Ctrl = 1 << 12, |
| 1738 |
ImGuiMod_Shift = 1 << 13, |
| 1739 |
ImGuiMod_Alt = 1 << 14, |
| 1740 |
ImGuiMod_Super = 1 << 15, |
| 1741 |
ImGuiMod_Mask_ = 0xF000, |
| 1742 |
|
| 1743 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1744 |
ImGuiKey_COUNT = ImGuiKey_NamedKey_END, |
| 1745 |
ImGuiMod_Shortcut = ImGuiMod_Ctrl, |
| 1746 |
|
| 1747 |
|
| 1748 |
#endif |
| 1749 |
}; |
| 1750 |
|
| 1751 |
|
| 1752 |
|
| 1753 |
|
| 1754 |
enum ImGuiInputFlags_ |
| 1755 |
{ |
| 1756 |
ImGuiInputFlags_None = 0, |
| 1757 |
ImGuiInputFlags_Repeat = 1 << 0, |
| 1758 |
|
| 1759 |
|
| 1760 |
|
| 1761 |
|
| 1762 |
ImGuiInputFlags_RouteActive = 1 << 10, |
| 1763 |
ImGuiInputFlags_RouteFocused = 1 << 11, |
| 1764 |
ImGuiInputFlags_RouteGlobal = 1 << 12, |
| 1765 |
ImGuiInputFlags_RouteAlways = 1 << 13, |
| 1766 |
|
| 1767 |
ImGuiInputFlags_RouteOverFocused = 1 << 14, |
| 1768 |
ImGuiInputFlags_RouteOverActive = 1 << 15, |
| 1769 |
ImGuiInputFlags_RouteUnlessBgFocused = 1 << 16, |
| 1770 |
ImGuiInputFlags_RouteFromRootWindow = 1 << 17, |
| 1771 |
|
| 1772 |
|
| 1773 |
ImGuiInputFlags_Tooltip = 1 << 18, |
| 1774 |
}; |
| 1775 |
|
| 1776 |
|
| 1777 |
|
| 1778 |
enum ImGuiConfigFlags_ |
| 1779 |
{ |
| 1780 |
ImGuiConfigFlags_None = 0, |
| 1781 |
ImGuiConfigFlags_NavEnableKeyboard = 1 << 0, |
| 1782 |
ImGuiConfigFlags_NavEnableGamepad = 1 << 1, |
| 1783 |
ImGuiConfigFlags_NoMouse = 1 << 4, |
| 1784 |
ImGuiConfigFlags_NoMouseCursorChange = 1 << 5, |
| 1785 |
ImGuiConfigFlags_NoKeyboard = 1 << 6, |
| 1786 |
|
| 1787 |
|
| 1788 |
ImGuiConfigFlags_DockingEnable = 1 << 7, |
| 1789 |
|
| 1790 |
|
| 1791 |
|
| 1792 |
ImGuiConfigFlags_ViewportsEnable = 1 << 10, |
| 1793 |
|
| 1794 |
|
| 1795 |
ImGuiConfigFlags_IsSRGB = 1 << 20, |
| 1796 |
ImGuiConfigFlags_IsTouchScreen = 1 << 21, |
| 1797 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1798 |
ImGuiConfigFlags_NavEnableSetMousePos = 1 << 2, |
| 1799 |
ImGuiConfigFlags_NavNoCaptureKeyboard = 1 << 3, |
| 1800 |
ImGuiConfigFlags_DpiEnableScaleFonts = 1 << 14, |
| 1801 |
ImGuiConfigFlags_DpiEnableScaleViewports= 1 << 15, |
| 1802 |
#endif |
| 1803 |
}; |
| 1804 |
|
| 1805 |
|
| 1806 |
enum ImGuiBackendFlags_ |
| 1807 |
{ |
| 1808 |
ImGuiBackendFlags_None = 0, |
| 1809 |
ImGuiBackendFlags_HasGamepad = 1 << 0, |
| 1810 |
ImGuiBackendFlags_HasMouseCursors = 1 << 1, |
| 1811 |
ImGuiBackendFlags_HasSetMousePos = 1 << 2, |
| 1812 |
ImGuiBackendFlags_RendererHasVtxOffset = 1 << 3, |
| 1813 |
ImGuiBackendFlags_RendererHasTextures = 1 << 4, |
| 1814 |
|
| 1815 |
|
| 1816 |
ImGuiBackendFlags_RendererHasViewports = 1 << 10, |
| 1817 |
ImGuiBackendFlags_PlatformHasViewports = 1 << 11, |
| 1818 |
ImGuiBackendFlags_HasMouseHoveredViewport=1 << 12, |
| 1819 |
ImGuiBackendFlags_HasParentViewport = 1 << 13, |
| 1820 |
}; |
| 1821 |
|
| 1822 |
|
| 1823 |
enum ImGuiCol_ |
| 1824 |
{ |
| 1825 |
ImGuiCol_Text, |
| 1826 |
ImGuiCol_TextDisabled, |
| 1827 |
ImGuiCol_WindowBg, |
| 1828 |
ImGuiCol_ChildBg, |
| 1829 |
ImGuiCol_PopupBg, |
| 1830 |
ImGuiCol_Border, |
| 1831 |
ImGuiCol_BorderShadow, |
| 1832 |
ImGuiCol_FrameBg, |
| 1833 |
ImGuiCol_FrameBgHovered, |
| 1834 |
ImGuiCol_FrameBgActive, |
| 1835 |
ImGuiCol_TitleBg, |
| 1836 |
ImGuiCol_TitleBgActive, |
| 1837 |
ImGuiCol_TitleBgCollapsed, |
| 1838 |
ImGuiCol_MenuBarBg, |
| 1839 |
ImGuiCol_ScrollbarBg, |
| 1840 |
ImGuiCol_ScrollbarGrab, |
| 1841 |
ImGuiCol_ScrollbarGrabHovered, |
| 1842 |
ImGuiCol_ScrollbarGrabActive, |
| 1843 |
ImGuiCol_CheckMark, |
| 1844 |
ImGuiCol_CheckboxSelectedBg, |
| 1845 |
ImGuiCol_SliderGrab, |
| 1846 |
ImGuiCol_SliderGrabActive, |
| 1847 |
ImGuiCol_Button, |
| 1848 |
ImGuiCol_ButtonHovered, |
| 1849 |
ImGuiCol_ButtonActive, |
| 1850 |
ImGuiCol_Header, |
| 1851 |
ImGuiCol_HeaderHovered, |
| 1852 |
ImGuiCol_HeaderActive, |
| 1853 |
ImGuiCol_Separator, |
| 1854 |
ImGuiCol_SeparatorHovered, |
| 1855 |
ImGuiCol_SeparatorActive, |
| 1856 |
ImGuiCol_ResizeGrip, |
| 1857 |
ImGuiCol_ResizeGripHovered, |
| 1858 |
ImGuiCol_ResizeGripActive, |
| 1859 |
ImGuiCol_InputTextCursor, |
| 1860 |
ImGuiCol_TabHovered, |
| 1861 |
ImGuiCol_Tab, |
| 1862 |
ImGuiCol_TabSelected, |
| 1863 |
ImGuiCol_TabSelectedOverline, |
| 1864 |
ImGuiCol_TabDimmed, |
| 1865 |
ImGuiCol_TabDimmedSelected, |
| 1866 |
ImGuiCol_TabDimmedSelectedOverline, |
| 1867 |
ImGuiCol_DockingPreview, |
| 1868 |
ImGuiCol_DockingEmptyBg, |
| 1869 |
ImGuiCol_PlotLines, |
| 1870 |
ImGuiCol_PlotLinesHovered, |
| 1871 |
ImGuiCol_PlotHistogram, |
| 1872 |
ImGuiCol_PlotHistogramHovered, |
| 1873 |
ImGuiCol_TableHeaderBg, |
| 1874 |
ImGuiCol_TableBorderStrong, |
| 1875 |
ImGuiCol_TableBorderLight, |
| 1876 |
ImGuiCol_TableRowBg, |
| 1877 |
ImGuiCol_TableRowBgAlt, |
| 1878 |
ImGuiCol_TextLink, |
| 1879 |
ImGuiCol_TextSelectedBg, |
| 1880 |
ImGuiCol_TreeLines, |
| 1881 |
ImGuiCol_DragDropTarget, |
| 1882 |
ImGuiCol_DragDropTargetBg, |
| 1883 |
ImGuiCol_UnsavedMarker, |
| 1884 |
ImGuiCol_NavCursor, |
| 1885 |
ImGuiCol_NavWindowingHighlight, |
| 1886 |
ImGuiCol_NavWindowingDimBg, |
| 1887 |
ImGuiCol_ModalWindowDimBg, |
| 1888 |
ImGuiCol_COUNT, |
| 1889 |
|
| 1890 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 1891 |
ImGuiCol_TabActive = ImGuiCol_TabSelected, |
| 1892 |
ImGuiCol_TabUnfocused = ImGuiCol_TabDimmed, |
| 1893 |
ImGuiCol_TabUnfocusedActive = ImGuiCol_TabDimmedSelected, |
| 1894 |
ImGuiCol_NavHighlight = ImGuiCol_NavCursor, |
| 1895 |
#endif |
| 1896 |
}; |
| 1897 |
|
| 1898 |
|
| 1899 |
|
| 1900 |
|
| 1901 |
|
| 1902 |
|
| 1903 |
|
| 1904 |
|
| 1905 |
|
| 1906 |
enum ImGuiStyleVar_ |
| 1907 |
{ |
| 1908 |
|
| 1909 |
ImGuiStyleVar_Alpha, |
| 1910 |
ImGuiStyleVar_DisabledAlpha, |
| 1911 |
ImGuiStyleVar_WindowPadding, |
| 1912 |
ImGuiStyleVar_WindowRounding, |
| 1913 |
ImGuiStyleVar_WindowBorderSize, |
| 1914 |
ImGuiStyleVar_WindowMinSize, |
| 1915 |
ImGuiStyleVar_WindowTitleAlign, |
| 1916 |
ImGuiStyleVar_ChildRounding, |
| 1917 |
ImGuiStyleVar_ChildBorderSize, |
| 1918 |
ImGuiStyleVar_PopupRounding, |
| 1919 |
ImGuiStyleVar_PopupBorderSize, |
| 1920 |
ImGuiStyleVar_FramePadding, |
| 1921 |
ImGuiStyleVar_FrameRounding, |
| 1922 |
ImGuiStyleVar_FrameBorderSize, |
| 1923 |
ImGuiStyleVar_ItemSpacing, |
| 1924 |
ImGuiStyleVar_ItemInnerSpacing, |
| 1925 |
ImGuiStyleVar_IndentSpacing, |
| 1926 |
ImGuiStyleVar_CellPadding, |
| 1927 |
ImGuiStyleVar_ScrollbarSize, |
| 1928 |
ImGuiStyleVar_ScrollbarRounding, |
| 1929 |
ImGuiStyleVar_ScrollbarPadding, |
| 1930 |
ImGuiStyleVar_GrabMinSize, |
| 1931 |
ImGuiStyleVar_GrabRounding, |
| 1932 |
ImGuiStyleVar_ImageRounding, |
| 1933 |
ImGuiStyleVar_ImageBorderSize, |
| 1934 |
ImGuiStyleVar_TabRounding, |
| 1935 |
ImGuiStyleVar_TabBorderSize, |
| 1936 |
ImGuiStyleVar_TabMinWidthBase, |
| 1937 |
ImGuiStyleVar_TabMinWidthShrink, |
| 1938 |
ImGuiStyleVar_TabBarBorderSize, |
| 1939 |
ImGuiStyleVar_TabBarOverlineSize, |
| 1940 |
ImGuiStyleVar_TableAngledHeadersAngle, |
| 1941 |
ImGuiStyleVar_TableAngledHeadersTextAlign, |
| 1942 |
ImGuiStyleVar_TreeLinesSize, |
| 1943 |
ImGuiStyleVar_TreeLinesRounding, |
| 1944 |
ImGuiStyleVar_MenuItemRounding, |
| 1945 |
ImGuiStyleVar_SelectableRounding, |
| 1946 |
ImGuiStyleVar_DragDropTargetRounding, |
| 1947 |
ImGuiStyleVar_ButtonTextAlign, |
| 1948 |
ImGuiStyleVar_SelectableTextAlign, |
| 1949 |
ImGuiStyleVar_SeparatorSize, |
| 1950 |
ImGuiStyleVar_SeparatorTextBorderSize, |
| 1951 |
ImGuiStyleVar_SeparatorTextAlign, |
| 1952 |
ImGuiStyleVar_SeparatorTextPadding, |
| 1953 |
ImGuiStyleVar_DockingSeparatorSize, |
| 1954 |
ImGuiStyleVar_COUNT |
| 1955 |
}; |
| 1956 |
|
| 1957 |
|
| 1958 |
enum ImGuiButtonFlags_ |
| 1959 |
{ |
| 1960 |
ImGuiButtonFlags_None = 0, |
| 1961 |
ImGuiButtonFlags_MouseButtonLeft = 1 << 0, |
| 1962 |
ImGuiButtonFlags_MouseButtonRight = 1 << 1, |
| 1963 |
ImGuiButtonFlags_MouseButtonMiddle = 1 << 2, |
| 1964 |
ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, |
| 1965 |
ImGuiButtonFlags_EnableNav = 1 << 3, |
| 1966 |
ImGuiButtonFlags_AllowOverlap = 1 << 12, |
| 1967 |
}; |
| 1968 |
|
| 1969 |
|
| 1970 |
enum ImGuiColorEditFlags_ |
| 1971 |
{ |
| 1972 |
ImGuiColorEditFlags_None = 0, |
| 1973 |
ImGuiColorEditFlags_NoAlpha = 1 << 1, |
| 1974 |
ImGuiColorEditFlags_NoPicker = 1 << 2, |
| 1975 |
ImGuiColorEditFlags_NoOptions = 1 << 3, |
| 1976 |
ImGuiColorEditFlags_NoSmallPreview = 1 << 4, |
| 1977 |
ImGuiColorEditFlags_NoInputs = 1 << 5, |
| 1978 |
ImGuiColorEditFlags_NoTooltip = 1 << 6, |
| 1979 |
ImGuiColorEditFlags_NoLabel = 1 << 7, |
| 1980 |
ImGuiColorEditFlags_NoSidePreview = 1 << 8, |
| 1981 |
ImGuiColorEditFlags_NoDragDrop = 1 << 9, |
| 1982 |
ImGuiColorEditFlags_NoBorder = 1 << 10, |
| 1983 |
ImGuiColorEditFlags_NoColorMarkers = 1 << 11, |
| 1984 |
|
| 1985 |
|
| 1986 |
|
| 1987 |
|
| 1988 |
|
| 1989 |
ImGuiColorEditFlags_AlphaOpaque = 1 << 12, |
| 1990 |
ImGuiColorEditFlags_AlphaNoBg = 1 << 13, |
| 1991 |
ImGuiColorEditFlags_AlphaPreviewHalf= 1 << 14, |
| 1992 |
|
| 1993 |
|
| 1994 |
ImGuiColorEditFlags_AlphaBar = 1 << 18, |
| 1995 |
ImGuiColorEditFlags_HDR = 1 << 19, |
| 1996 |
ImGuiColorEditFlags_DisplayRGB = 1 << 20, |
| 1997 |
ImGuiColorEditFlags_DisplayHSV = 1 << 21, |
| 1998 |
ImGuiColorEditFlags_DisplayHex = 1 << 22, |
| 1999 |
ImGuiColorEditFlags_Uint8 = 1 << 23, |
| 2000 |
ImGuiColorEditFlags_Float = 1 << 24, |
| 2001 |
ImGuiColorEditFlags_PickerHueBar = 1 << 25, |
| 2002 |
ImGuiColorEditFlags_PickerHueWheel = 1 << 26, |
| 2003 |
ImGuiColorEditFlags_InputRGB = 1 << 27, |
| 2004 |
ImGuiColorEditFlags_InputHSV = 1 << 28, |
| 2005 |
|
| 2006 |
|
| 2007 |
|
| 2008 |
ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, |
| 2009 |
|
| 2010 |
|
| 2011 |
ImGuiColorEditFlags_AlphaMask_ = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaOpaque | ImGuiColorEditFlags_AlphaNoBg | ImGuiColorEditFlags_AlphaPreviewHalf, |
| 2012 |
ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, |
| 2013 |
ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, |
| 2014 |
ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, |
| 2015 |
ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, |
| 2016 |
|
| 2017 |
|
| 2018 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 2019 |
ImGuiColorEditFlags_AlphaPreview = 0, |
| 2020 |
#endif |
| 2021 |
|
| 2022 |
}; |
| 2023 |
|
| 2024 |
|
| 2025 |
|
| 2026 |
|
| 2027 |
enum ImGuiSliderFlags_ |
| 2028 |
{ |
| 2029 |
ImGuiSliderFlags_None = 0, |
| 2030 |
ImGuiSliderFlags_Logarithmic = 1 << 5, |
| 2031 |
ImGuiSliderFlags_NoRoundToFormat = 1 << 6, |
| 2032 |
ImGuiSliderFlags_NoInput = 1 << 7, |
| 2033 |
ImGuiSliderFlags_WrapAround = 1 << 8, |
| 2034 |
ImGuiSliderFlags_ClampOnInput = 1 << 9, |
| 2035 |
ImGuiSliderFlags_ClampZeroRange = 1 << 10, |
| 2036 |
ImGuiSliderFlags_NoSpeedTweaks = 1 << 11, |
| 2037 |
ImGuiSliderFlags_ColorMarkers = 1 << 12, |
| 2038 |
ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange, |
| 2039 |
ImGuiSliderFlags_InvalidMask_ = 0x7000000F, |
| 2040 |
}; |
| 2041 |
|
| 2042 |
|
| 2043 |
|
| 2044 |
enum ImGuiMouseButton_ |
| 2045 |
{ |
| 2046 |
ImGuiMouseButton_Left = 0, |
| 2047 |
ImGuiMouseButton_Right = 1, |
| 2048 |
ImGuiMouseButton_Middle = 2, |
| 2049 |
ImGuiMouseButton_COUNT = 5 |
| 2050 |
}; |
| 2051 |
|
| 2052 |
|
| 2053 |
|
| 2054 |
enum ImGuiMouseCursor_ |
| 2055 |
{ |
| 2056 |
ImGuiMouseCursor_None = -1, |
| 2057 |
ImGuiMouseCursor_Arrow = 0, |
| 2058 |
ImGuiMouseCursor_TextInput, |
| 2059 |
ImGuiMouseCursor_ResizeAll, |
| 2060 |
ImGuiMouseCursor_ResizeNS, |
| 2061 |
ImGuiMouseCursor_ResizeEW, |
| 2062 |
ImGuiMouseCursor_ResizeNESW, |
| 2063 |
ImGuiMouseCursor_ResizeNWSE, |
| 2064 |
ImGuiMouseCursor_Hand, |
| 2065 |
ImGuiMouseCursor_Wait, |
| 2066 |
ImGuiMouseCursor_Progress, |
| 2067 |
ImGuiMouseCursor_NotAllowed, |
| 2068 |
ImGuiMouseCursor_COUNT |
| 2069 |
}; |
| 2070 |
|
| 2071 |
|
| 2072 |
|
| 2073 |
|
| 2074 |
|
| 2075 |
enum ImGuiMouseSource : int |
| 2076 |
{ |
| 2077 |
ImGuiMouseSource_Mouse = 0, |
| 2078 |
ImGuiMouseSource_TouchScreen, |
| 2079 |
ImGuiMouseSource_Pen, |
| 2080 |
ImGuiMouseSource_COUNT |
| 2081 |
}; |
| 2082 |
|
| 2083 |
|
| 2084 |
|
| 2085 |
|
| 2086 |
enum ImGuiCond_ |
| 2087 |
{ |
| 2088 |
ImGuiCond_None = 0, |
| 2089 |
ImGuiCond_Always = 1 << 0, |
| 2090 |
ImGuiCond_Once = 1 << 1, |
| 2091 |
ImGuiCond_FirstUseEver = 1 << 2, |
| 2092 |
ImGuiCond_Appearing = 1 << 3, |
| 2093 |
}; |
| 2094 |
|
| 2095 |
|
| 2096 |
|
| 2097 |
|
| 2098 |
|
| 2099 |
|
| 2100 |
|
| 2101 |
|
| 2102 |
|
| 2103 |
|
| 2104 |
|
| 2105 |
|
| 2106 |
|
| 2107 |
|
| 2108 |
|
| 2109 |
|
| 2110 |
|
| 2111 |
|
| 2112 |
|
| 2113 |
|
| 2114 |
|
| 2115 |
|
| 2116 |
|
| 2117 |
|
| 2118 |
|
| 2119 |
|
| 2120 |
|
| 2121 |
enum ImGuiTableFlags_ |
| 2122 |
{ |
| 2123 |
|
| 2124 |
ImGuiTableFlags_None = 0, |
| 2125 |
ImGuiTableFlags_Resizable = 1 << 0, |
| 2126 |
ImGuiTableFlags_Reorderable = 1 << 1, |
| 2127 |
ImGuiTableFlags_Hideable = 1 << 2, |
| 2128 |
ImGuiTableFlags_Sortable = 1 << 3, |
| 2129 |
ImGuiTableFlags_NoSavedSettings = 1 << 4, |
| 2130 |
ImGuiTableFlags_ContextMenuInBody = 1 << 5, |
| 2131 |
|
| 2132 |
ImGuiTableFlags_RowBg = 1 << 6, |
| 2133 |
ImGuiTableFlags_BordersInnerH = 1 << 7, |
| 2134 |
ImGuiTableFlags_BordersOuterH = 1 << 8, |
| 2135 |
ImGuiTableFlags_BordersInnerV = 1 << 9, |
| 2136 |
ImGuiTableFlags_BordersOuterV = 1 << 10, |
| 2137 |
ImGuiTableFlags_BordersH = ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersOuterH, |
| 2138 |
ImGuiTableFlags_BordersV = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterV, |
| 2139 |
ImGuiTableFlags_BordersInner = ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersInnerH, |
| 2140 |
ImGuiTableFlags_BordersOuter = ImGuiTableFlags_BordersOuterV | ImGuiTableFlags_BordersOuterH, |
| 2141 |
ImGuiTableFlags_Borders = ImGuiTableFlags_BordersInner | ImGuiTableFlags_BordersOuter, |
| 2142 |
ImGuiTableFlags_NoBordersInBody = 1 << 11, |
| 2143 |
ImGuiTableFlags_NoBordersInBodyUntilResize = 1 << 12, |
| 2144 |
|
| 2145 |
ImGuiTableFlags_SizingFixedFit = 1 << 13, |
| 2146 |
ImGuiTableFlags_SizingFixedSame = 2 << 13, |
| 2147 |
ImGuiTableFlags_SizingStretchProp = 3 << 13, |
| 2148 |
ImGuiTableFlags_SizingStretchSame = 4 << 13, |
| 2149 |
|
| 2150 |
ImGuiTableFlags_NoHostExtendX = 1 << 16, |
| 2151 |
ImGuiTableFlags_NoHostExtendY = 1 << 17, |
| 2152 |
ImGuiTableFlags_NoKeepColumnsVisible = 1 << 18, |
| 2153 |
ImGuiTableFlags_PreciseWidths = 1 << 19, |
| 2154 |
|
| 2155 |
ImGuiTableFlags_NoClip = 1 << 20, |
| 2156 |
|
| 2157 |
ImGuiTableFlags_PadOuterX = 1 << 21, |
| 2158 |
ImGuiTableFlags_NoPadOuterX = 1 << 22, |
| 2159 |
ImGuiTableFlags_NoPadInnerX = 1 << 23, |
| 2160 |
|
| 2161 |
ImGuiTableFlags_ScrollX = 1 << 24, |
| 2162 |
ImGuiTableFlags_ScrollY = 1 << 25, |
| 2163 |
|
| 2164 |
ImGuiTableFlags_SortMulti = 1 << 26, |
| 2165 |
ImGuiTableFlags_SortTristate = 1 << 27, |
| 2166 |
|
| 2167 |
ImGuiTableFlags_HighlightHoveredColumn = 1 << 28, |
| 2168 |
|
| 2169 |
|
| 2170 |
ImGuiTableFlags_SizingMask_ = ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_SizingFixedSame | ImGuiTableFlags_SizingStretchProp | ImGuiTableFlags_SizingStretchSame, |
| 2171 |
}; |
| 2172 |
|
| 2173 |
|
| 2174 |
enum ImGuiTableColumnFlags_ |
| 2175 |
{ |
| 2176 |
|
| 2177 |
ImGuiTableColumnFlags_None = 0, |
| 2178 |
ImGuiTableColumnFlags_Disabled = 1 << 0, |
| 2179 |
ImGuiTableColumnFlags_DefaultHide = 1 << 1, |
| 2180 |
ImGuiTableColumnFlags_DefaultSort = 1 << 2, |
| 2181 |
ImGuiTableColumnFlags_WidthStretch = 1 << 3, |
| 2182 |
ImGuiTableColumnFlags_WidthFixed = 1 << 4, |
| 2183 |
ImGuiTableColumnFlags_NoResize = 1 << 5, |
| 2184 |
ImGuiTableColumnFlags_NoReorder = 1 << 6, |
| 2185 |
ImGuiTableColumnFlags_NoHide = 1 << 7, |
| 2186 |
ImGuiTableColumnFlags_NoClip = 1 << 8, |
| 2187 |
ImGuiTableColumnFlags_NoSort = 1 << 9, |
| 2188 |
ImGuiTableColumnFlags_NoSortAscending = 1 << 10, |
| 2189 |
ImGuiTableColumnFlags_NoSortDescending = 1 << 11, |
| 2190 |
ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, |
| 2191 |
ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, |
| 2192 |
ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, |
| 2193 |
ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, |
| 2194 |
ImGuiTableColumnFlags_IndentEnable = 1 << 16, |
| 2195 |
ImGuiTableColumnFlags_IndentDisable = 1 << 17, |
| 2196 |
ImGuiTableColumnFlags_AngledHeader = 1 << 18, |
| 2197 |
|
| 2198 |
|
| 2199 |
ImGuiTableColumnFlags_IsEnabled = 1 << 24, |
| 2200 |
ImGuiTableColumnFlags_IsVisible = 1 << 25, |
| 2201 |
ImGuiTableColumnFlags_IsSorted = 1 << 26, |
| 2202 |
ImGuiTableColumnFlags_IsHovered = 1 << 27, |
| 2203 |
|
| 2204 |
|
| 2205 |
ImGuiTableColumnFlags_WidthMask_ = ImGuiTableColumnFlags_WidthStretch | ImGuiTableColumnFlags_WidthFixed, |
| 2206 |
ImGuiTableColumnFlags_IndentMask_ = ImGuiTableColumnFlags_IndentEnable | ImGuiTableColumnFlags_IndentDisable, |
| 2207 |
ImGuiTableColumnFlags_StatusMask_ = ImGuiTableColumnFlags_IsEnabled | ImGuiTableColumnFlags_IsVisible | ImGuiTableColumnFlags_IsSorted | ImGuiTableColumnFlags_IsHovered, |
| 2208 |
ImGuiTableColumnFlags_NoDirectResize_ = 1 << 30, |
| 2209 |
}; |
| 2210 |
|
| 2211 |
|
| 2212 |
enum ImGuiTableRowFlags_ |
| 2213 |
{ |
| 2214 |
ImGuiTableRowFlags_None = 0, |
| 2215 |
ImGuiTableRowFlags_Headers = 1 << 0, |
| 2216 |
}; |
| 2217 |
|
| 2218 |
|
| 2219 |
|
| 2220 |
|
| 2221 |
|
| 2222 |
|
| 2223 |
|
| 2224 |
|
| 2225 |
|
| 2226 |
|
| 2227 |
enum ImGuiTableBgTarget_ |
| 2228 |
{ |
| 2229 |
ImGuiTableBgTarget_None = 0, |
| 2230 |
ImGuiTableBgTarget_RowBg0 = 1, |
| 2231 |
ImGuiTableBgTarget_RowBg1 = 2, |
| 2232 |
ImGuiTableBgTarget_CellBg = 3, |
| 2233 |
}; |
| 2234 |
|
| 2235 |
|
| 2236 |
|
| 2237 |
|
| 2238 |
|
| 2239 |
struct ImGuiTableSortSpecs |
| 2240 |
{ |
| 2241 |
const ImGuiTableColumnSortSpecs* Specs; |
| 2242 |
int SpecsCount; |
| 2243 |
bool SpecsDirty; |
| 2244 |
|
| 2245 |
ImGuiTableSortSpecs() { memset((void*)this, 0, sizeof(*this)); } |
| 2246 |
}; |
| 2247 |
|
| 2248 |
|
| 2249 |
struct ImGuiTableColumnSortSpecs |
| 2250 |
{ |
| 2251 |
ImGuiID ColumnUserID; |
| 2252 |
ImS16 ColumnIndex; |
| 2253 |
ImS16 SortOrder; |
| 2254 |
ImGuiSortDirection SortDirection; |
| 2255 |
|
| 2256 |
ImGuiTableColumnSortSpecs() { memset((void*)this, 0, sizeof(*this)); } |
| 2257 |
}; |
| 2258 |
|
| 2259 |
|
| 2260 |
|
| 2261 |
|
| 2262 |
|
| 2263 |
|
| 2264 |
|
| 2265 |
|
| 2266 |
|
| 2267 |
#ifndef IMGUI_DISABLE_DEBUG_TOOLS |
| 2268 |
#define IMGUI_DEBUG_LOG(...) ImGui::DebugLog(__VA_ARGS__) |
| 2269 |
#else |
| 2270 |
#define IMGUI_DEBUG_LOG(...) ((void)0) |
| 2271 |
#endif |
| 2272 |
|
| 2273 |
|
| 2274 |
|
| 2275 |
|
| 2276 |
|
| 2277 |
|
| 2278 |
|
| 2279 |
struct ImNewWrapper {}; |
| 2280 |
inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; } |
| 2281 |
inline void operator delete(void*, ImNewWrapper, void*) {} |
| 2282 |
#define IM_ALLOC(_SIZE) ImGui::MemAlloc(_SIZE) |
| 2283 |
#define IM_FREE(_PTR) ImGui::MemFree(_PTR) |
| 2284 |
#define IM_PLACEMENT_NEW(_PTR) new(ImNewWrapper(), _PTR) |
| 2285 |
#define IM_NEW(_TYPE) new(ImNewWrapper(), ImGui::MemAlloc(sizeof(_TYPE))) _TYPE |
| 2286 |
template<typename T> void IM_DELETE(T* p) { if (p) { p->~T(); ImGui::MemFree(p); } } |
| 2287 |
|
| 2288 |
|
| 2289 |
|
| 2290 |
|
| 2291 |
|
| 2292 |
|
| 2293 |
|
| 2294 |
|
| 2295 |
|
| 2296 |
|
| 2297 |
|
| 2298 |
|
| 2299 |
IM_MSVC_RUNTIME_CHECKS_OFF |
| 2300 |
template<typename T> |
| 2301 |
struct ImVector |
| 2302 |
{ |
| 2303 |
int Size; |
| 2304 |
int Capacity; |
| 2305 |
T* Data; |
| 2306 |
|
| 2307 |
|
| 2308 |
typedef T value_type; |
| 2309 |
typedef value_type* iterator; |
| 2310 |
typedef const value_type* const_iterator; |
| 2311 |
|
| 2312 |
|
| 2313 |
inline ImVector() { Size = Capacity = 0; Data = NULL; } |
| 2314 |
inline ImVector(const ImVector<T>& src) { Size = Capacity = 0; Data = NULL; operator=(src); } |
| 2315 |
inline ImVector<T>& operator=(const ImVector<T>& src) { clear(); resize(src.Size); if (Data && src.Data) memcpy(Data, src.Data, (size_t)Size * sizeof(T)); return *this; } |
| 2316 |
inline ~ImVector() { if (Data) IM_FREE(Data); } |
| 2317 |
|
| 2318 |
inline void clear() { if (Data) { Size = Capacity = 0; IM_FREE(Data); Data = NULL; } } |
| 2319 |
inline void clear_delete() { for (int n = 0; n < Size; n++) IM_DELETE(Data[n]); clear(); } |
| 2320 |
inline void clear_destruct() { for (int n = 0; n < Size; n++) Data[n].~T(); clear(); } |
| 2321 |
|
| 2322 |
inline bool empty() const { return Size == 0; } |
| 2323 |
inline int size() const { return Size; } |
| 2324 |
inline int size_in_bytes() const { return Size * (int)sizeof(T); } |
| 2325 |
inline int max_size() const { return 0x7FFFFFFF / (int)sizeof(T); } |
| 2326 |
inline int capacity() const { return Capacity; } |
| 2327 |
inline T& operator[](int i) { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } |
| 2328 |
inline const T& operator[](int i) const { IM_ASSERT(i >= 0 && i < Size); return Data[i]; } |
| 2329 |
|
| 2330 |
inline T* begin() { return Data; } |
| 2331 |
inline const T* begin() const { return Data; } |
| 2332 |
inline T* end() { return Data + Size; } |
| 2333 |
inline const T* end() const { return Data + Size; } |
| 2334 |
inline T& front() { IM_ASSERT(Size > 0); return Data[0]; } |
| 2335 |
inline const T& front() const { IM_ASSERT(Size > 0); return Data[0]; } |
| 2336 |
inline T& back() { IM_ASSERT(Size > 0); return Data[Size - 1]; } |
| 2337 |
inline const T& back() const { IM_ASSERT(Size > 0); return Data[Size - 1]; } |
| 2338 |
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; } |
| 2339 |
|
| 2340 |
inline int _grow_capacity(int sz) const { int new_capacity = Capacity ? (Capacity + Capacity / 2) : 8; return new_capacity > sz ? new_capacity : sz; } |
| 2341 |
inline void resize(int new_size) { if (new_size > Capacity) reserve(_grow_capacity(new_size)); Size = new_size; } |
| 2342 |
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; } |
| 2343 |
inline void shrink(int new_size) { IM_ASSERT(new_size <= Size); Size = new_size; } |
| 2344 |
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; } |
| 2345 |
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; } |
| 2346 |
|
| 2347 |
|
| 2348 |
inline void push_back(const T& v) { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; } |
| 2349 |
inline void pop_back() { IM_ASSERT(Size > 0); Size--; } |
| 2350 |
inline void push_front(const T& v) { if (Size == 0) push_back(v); else insert(Data, v); } |
| 2351 |
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; } |
| 2352 |
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; } |
| 2353 |
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; } |
| 2354 |
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; } |
| 2355 |
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; } |
| 2356 |
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; } |
| 2357 |
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; } |
| 2358 |
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; } |
| 2359 |
inline bool find_erase(const T& v) { const T* it = find(v); if (it < Data + Size) { erase(it); return true; } return false; } |
| 2360 |
inline bool find_erase_unsorted(const T& v) { const T* it = find(v); if (it < Data + Size) { erase_unsorted(it); return true; } return false; } |
| 2361 |
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; } |
| 2362 |
}; |
| 2363 |
IM_MSVC_RUNTIME_CHECKS_RESTORE |
| 2364 |
|
| 2365 |
|
| 2366 |
|
| 2367 |
|
| 2368 |
|
| 2369 |
|
| 2370 |
|
| 2371 |
|
| 2372 |
|
| 2373 |
struct ImGuiStyle |
| 2374 |
{ |
| 2375 |
|
| 2376 |
|
| 2377 |
float FontSizeBase; |
| 2378 |
float FontScaleMain; |
| 2379 |
float FontScaleDpi; |
| 2380 |
|
| 2381 |
float Alpha; |
| 2382 |
float DisabledAlpha; |
| 2383 |
ImVec2 WindowPadding; |
| 2384 |
float WindowRounding; |
| 2385 |
float WindowBorderSize; |
| 2386 |
float WindowBorderHoverPadding; |
| 2387 |
ImVec2 WindowMinSize; |
| 2388 |
ImVec2 WindowTitleAlign; |
| 2389 |
ImGuiDir WindowMenuButtonPosition; |
| 2390 |
float ChildRounding; |
| 2391 |
float ChildBorderSize; |
| 2392 |
float PopupRounding; |
| 2393 |
float PopupBorderSize; |
| 2394 |
ImVec2 FramePadding; |
| 2395 |
float FrameRounding; |
| 2396 |
float FrameBorderSize; |
| 2397 |
ImVec2 ItemSpacing; |
| 2398 |
ImVec2 ItemInnerSpacing; |
| 2399 |
ImVec2 CellPadding; |
| 2400 |
ImVec2 TouchExtraPadding; |
| 2401 |
float IndentSpacing; |
| 2402 |
float ColumnsMinSpacing; |
| 2403 |
float ScrollbarSize; |
| 2404 |
float ScrollbarRounding; |
| 2405 |
float ScrollbarPadding; |
| 2406 |
float GrabMinSize; |
| 2407 |
float GrabRounding; |
| 2408 |
float LogSliderDeadzone; |
| 2409 |
float ImageRounding; |
| 2410 |
float ImageBorderSize; |
| 2411 |
float TabRounding; |
| 2412 |
float TabBorderSize; |
| 2413 |
float TabMinWidthBase; |
| 2414 |
float TabMinWidthShrink; |
| 2415 |
float TabCloseButtonMinWidthSelected; |
| 2416 |
float TabCloseButtonMinWidthUnselected; |
| 2417 |
float TabBarBorderSize; |
| 2418 |
float TabBarOverlineSize; |
| 2419 |
float TableAngledHeadersAngle; |
| 2420 |
ImVec2 TableAngledHeadersTextAlign; |
| 2421 |
ImGuiTreeNodeFlags TreeLinesFlags; |
| 2422 |
float TreeLinesSize; |
| 2423 |
float TreeLinesRounding; |
| 2424 |
float MenuItemRounding; |
| 2425 |
float SelectableRounding; |
| 2426 |
float DragDropTargetRounding; |
| 2427 |
float DragDropTargetBorderSize; |
| 2428 |
float DragDropTargetPadding; |
| 2429 |
float ColorMarkerSize; |
| 2430 |
ImGuiDir ColorButtonPosition; |
| 2431 |
ImVec2 ButtonTextAlign; |
| 2432 |
ImVec2 SelectableTextAlign; |
| 2433 |
float InputTextCursorSize; |
| 2434 |
float SeparatorSize; |
| 2435 |
float SeparatorTextBorderSize; |
| 2436 |
ImVec2 SeparatorTextAlign; |
| 2437 |
ImVec2 SeparatorTextPadding; |
| 2438 |
ImVec2 DisplayWindowPadding; |
| 2439 |
ImVec2 DisplaySafeAreaPadding; |
| 2440 |
bool DockingNodeHasCloseButton; |
| 2441 |
float DockingSeparatorSize; |
| 2442 |
float MouseCursorScale; |
| 2443 |
bool AntiAliasedLines; |
| 2444 |
bool AntiAliasedLinesUseTex; |
| 2445 |
bool AntiAliasedFill; |
| 2446 |
float CurveTessellationTol; |
| 2447 |
float CircleTessellationMaxError; |
| 2448 |
|
| 2449 |
|
| 2450 |
ImVec4 Colors[ImGuiCol_COUNT]; |
| 2451 |
|
| 2452 |
|
| 2453 |
|
| 2454 |
float HoverStationaryDelay; |
| 2455 |
float HoverDelayShort; |
| 2456 |
float HoverDelayNormal; |
| 2457 |
ImGuiHoveredFlags HoverFlagsForTooltipMouse; |
| 2458 |
ImGuiHoveredFlags HoverFlagsForTooltipNav; |
| 2459 |
|
| 2460 |
|
| 2461 |
float _MainScale; |
| 2462 |
float _NextFrameFontSizeBase; |
| 2463 |
|
| 2464 |
|
| 2465 |
IMGUI_API ImGuiStyle(); |
| 2466 |
IMGUI_API void ScaleAllSizes(float scale_factor); |
| 2467 |
|
| 2468 |
|
| 2469 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 2470 |
|
| 2471 |
#endif |
| 2472 |
}; |
| 2473 |
|
| 2474 |
|
| 2475 |
|
| 2476 |
|
| 2477 |
|
| 2478 |
|
| 2479 |
|
| 2480 |
|
| 2481 |
|
| 2482 |
|
| 2483 |
|
| 2484 |
|
| 2485 |
|
| 2486 |
|
| 2487 |
|
| 2488 |
struct ImGuiKeyData |
| 2489 |
{ |
| 2490 |
bool Down; |
| 2491 |
float DownDuration; |
| 2492 |
float DownDurationPrev; |
| 2493 |
float AnalogValue; |
| 2494 |
}; |
| 2495 |
|
| 2496 |
struct ImGuiIO |
| 2497 |
{ |
| 2498 |
|
| 2499 |
|
| 2500 |
|
| 2501 |
|
| 2502 |
ImGuiConfigFlags ConfigFlags; |
| 2503 |
ImGuiBackendFlags BackendFlags; |
| 2504 |
ImVec2 DisplaySize; |
| 2505 |
ImVec2 DisplayFramebufferScale; |
| 2506 |
float DeltaTime; |
| 2507 |
float IniSavingRate; |
| 2508 |
const char* IniFilename; |
| 2509 |
const char* LogFilename; |
| 2510 |
void* UserData; |
| 2511 |
|
| 2512 |
|
| 2513 |
ImFontAtlas*Fonts; |
| 2514 |
ImFont* FontDefault; |
| 2515 |
bool FontAllowUserScaling; |
| 2516 |
|
| 2517 |
|
| 2518 |
bool ConfigNavSwapGamepadButtons; |
| 2519 |
bool ConfigNavMoveSetMousePos; |
| 2520 |
bool ConfigNavCaptureKeyboard; |
| 2521 |
bool ConfigNavEscapeClearFocusItem; |
| 2522 |
bool ConfigNavEscapeClearFocusWindow; |
| 2523 |
bool ConfigNavCursorVisibleAuto; |
| 2524 |
bool ConfigNavCursorVisibleAlways; |
| 2525 |
|
| 2526 |
|
| 2527 |
bool ConfigDockingNoSplit; |
| 2528 |
bool ConfigDockingNoDockingOver; |
| 2529 |
bool ConfigDockingWithShift; |
| 2530 |
bool ConfigDockingAlwaysTabBar; |
| 2531 |
bool ConfigDockingTransparentPayload; |
| 2532 |
|
| 2533 |
|
| 2534 |
|
| 2535 |
bool ConfigViewportsNoAutoMerge; |
| 2536 |
bool ConfigViewportsNoTaskBarIcon; |
| 2537 |
bool ConfigViewportsNoDecoration; |
| 2538 |
bool ConfigViewportsNoDefaultParent; |
| 2539 |
bool ConfigViewportsPlatformFocusSetsImGuiFocus; |
| 2540 |
|
| 2541 |
|
| 2542 |
|
| 2543 |
bool ConfigDpiScaleFonts; |
| 2544 |
bool ConfigDpiScaleViewports; |
| 2545 |
|
| 2546 |
|
| 2547 |
|
| 2548 |
bool MouseDrawCursor; |
| 2549 |
bool ConfigMacOSXBehaviors; |
| 2550 |
bool ConfigInputTrickleEventQueue; |
| 2551 |
bool ConfigInputTextCursorBlink; |
| 2552 |
bool ConfigInputTextEnterKeepActive; |
| 2553 |
bool ConfigDragClickToInputText; |
| 2554 |
bool ConfigWindowsResizeFromEdges; |
| 2555 |
bool ConfigWindowsMoveFromTitleBarOnly; |
| 2556 |
bool ConfigWindowsCopyContentsWithCtrlC; |
| 2557 |
bool ConfigScrollbarScrollByPage; |
| 2558 |
float ConfigMemoryCompactTimer; |
| 2559 |
|
| 2560 |
|
| 2561 |
|
| 2562 |
float MouseDoubleClickTime; |
| 2563 |
float MouseDoubleClickMaxDist; |
| 2564 |
float MouseDragThreshold; |
| 2565 |
float KeyRepeatDelay; |
| 2566 |
float KeyRepeatRate; |
| 2567 |
|
| 2568 |
|
| 2569 |
|
| 2570 |
|
| 2571 |
|
| 2572 |
|
| 2573 |
|
| 2574 |
|
| 2575 |
|
| 2576 |
|
| 2577 |
|
| 2578 |
|
| 2579 |
|
| 2580 |
|
| 2581 |
|
| 2582 |
|
| 2583 |
|
| 2584 |
|
| 2585 |
|
| 2586 |
bool ConfigErrorRecovery; |
| 2587 |
bool ConfigErrorRecoveryEnableAssert; |
| 2588 |
bool ConfigErrorRecoveryEnableDebugLog; |
| 2589 |
bool ConfigErrorRecoveryEnableTooltip; |
| 2590 |
|
| 2591 |
|
| 2592 |
|
| 2593 |
|
| 2594 |
|
| 2595 |
bool ConfigDebugIsDebuggerPresent; |
| 2596 |
|
| 2597 |
|
| 2598 |
|
| 2599 |
|
| 2600 |
|
| 2601 |
bool ConfigDebugHighlightIdConflicts; |
| 2602 |
bool ConfigDebugHighlightIdConflictsShowItemPicker; |
| 2603 |
|
| 2604 |
|
| 2605 |
|
| 2606 |
|
| 2607 |
|
| 2608 |
bool ConfigDebugBeginReturnValueOnce; |
| 2609 |
bool ConfigDebugBeginReturnValueLoop; |
| 2610 |
|
| 2611 |
|
| 2612 |
|
| 2613 |
|
| 2614 |
bool ConfigDebugIgnoreFocusLoss; |
| 2615 |
|
| 2616 |
|
| 2617 |
bool ConfigDebugIniSettings; |
| 2618 |
|
| 2619 |
|
| 2620 |
|
| 2621 |
|
| 2622 |
|
| 2623 |
|
| 2624 |
|
| 2625 |
|
| 2626 |
const char* BackendPlatformName; |
| 2627 |
const char* BackendRendererName; |
| 2628 |
void* BackendPlatformUserData; |
| 2629 |
void* BackendRendererUserData; |
| 2630 |
void* BackendLanguageUserData; |
| 2631 |
|
| 2632 |
|
| 2633 |
|
| 2634 |
|
| 2635 |
|
| 2636 |
|
| 2637 |
IMGUI_API void AddKeyEvent(ImGuiKey key, bool down); |
| 2638 |
IMGUI_API void AddKeyAnalogEvent(ImGuiKey key, bool down, float v); |
| 2639 |
IMGUI_API void AddMousePosEvent(float x, float y); |
| 2640 |
IMGUI_API void AddMouseButtonEvent(int button, bool down); |
| 2641 |
IMGUI_API void AddMouseWheelEvent(float wheel_x, float wheel_y); |
| 2642 |
IMGUI_API void AddMouseSourceEvent(ImGuiMouseSource source); |
| 2643 |
IMGUI_API void AddMouseViewportEvent(ImGuiID id); |
| 2644 |
IMGUI_API void AddFocusEvent(bool focused); |
| 2645 |
IMGUI_API void AddInputCharacter(unsigned int c); |
| 2646 |
IMGUI_API void AddInputCharacterUTF16(ImWchar16 c); |
| 2647 |
IMGUI_API void AddInputCharactersUTF8(const char* str); |
| 2648 |
|
| 2649 |
IMGUI_API void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index = -1); |
| 2650 |
IMGUI_API void SetAppAcceptingEvents(bool accepting_events); |
| 2651 |
IMGUI_API void ClearEventsQueue(); |
| 2652 |
IMGUI_API void ClearInputKeys(); |
| 2653 |
IMGUI_API void ClearInputMouse(); |
| 2654 |
|
| 2655 |
|
| 2656 |
|
| 2657 |
|
| 2658 |
|
| 2659 |
|
| 2660 |
|
| 2661 |
bool WantCaptureMouse; |
| 2662 |
bool WantCaptureKeyboard; |
| 2663 |
bool WantTextInput; |
| 2664 |
bool WantSetMousePos; |
| 2665 |
bool WantSaveIniSettings; |
| 2666 |
bool NavActive; |
| 2667 |
bool NavVisible; |
| 2668 |
float Framerate; |
| 2669 |
int MetricsRenderVertices; |
| 2670 |
int MetricsRenderIndices; |
| 2671 |
int MetricsRenderWindows; |
| 2672 |
int MetricsActiveWindows; |
| 2673 |
ImVec2 MouseDelta; |
| 2674 |
|
| 2675 |
|
| 2676 |
|
| 2677 |
|
| 2678 |
|
| 2679 |
ImGuiContext* Ctx; |
| 2680 |
|
| 2681 |
|
| 2682 |
|
| 2683 |
|
| 2684 |
ImVec2 MousePos; |
| 2685 |
bool MouseDown[5]; |
| 2686 |
float MouseWheel; |
| 2687 |
float MouseWheelH; |
| 2688 |
ImGuiMouseSource MouseSource; |
| 2689 |
ImGuiID MouseHoveredViewport; |
| 2690 |
bool KeyCtrl; |
| 2691 |
bool KeyShift; |
| 2692 |
bool KeyAlt; |
| 2693 |
bool KeySuper; |
| 2694 |
|
| 2695 |
|
| 2696 |
ImGuiKeyChord KeyMods; |
| 2697 |
ImGuiKeyData KeysData[ImGuiKey_NamedKey_COUNT]; |
| 2698 |
bool WantCaptureMouseUnlessPopupClose; |
| 2699 |
ImVec2 MousePosPrev; |
| 2700 |
ImVec2 MouseClickedPos[5]; |
| 2701 |
double MouseClickedTime[5]; |
| 2702 |
bool MouseClicked[5]; |
| 2703 |
bool MouseDoubleClicked[5]; |
| 2704 |
ImU16 MouseClickedCount[5]; |
| 2705 |
ImU16 MouseClickedLastCount[5]; |
| 2706 |
bool MouseReleased[5]; |
| 2707 |
double MouseReleasedTime[5]; |
| 2708 |
bool MouseDownOwned[5]; |
| 2709 |
bool MouseDownOwnedUnlessPopupClose[5]; |
| 2710 |
bool MouseWheelRequestAxisSwap; |
| 2711 |
bool MouseCtrlLeftAsRightClick; |
| 2712 |
float MouseDownDuration[5]; |
| 2713 |
float MouseDownDurationPrev[5]; |
| 2714 |
ImVec2 MouseDragMaxDistanceAbs[5]; |
| 2715 |
float MouseDragMaxDistanceSqr[5]; |
| 2716 |
float PenPressure; |
| 2717 |
bool AppFocusLost; |
| 2718 |
bool AppAcceptingEvents; |
| 2719 |
ImWchar16 InputQueueSurrogate; |
| 2720 |
ImVector<ImWchar> InputQueueCharacters; |
| 2721 |
|
| 2722 |
|
| 2723 |
|
| 2724 |
|
| 2725 |
|
| 2726 |
|
| 2727 |
|
| 2728 |
|
| 2729 |
|
| 2730 |
|
| 2731 |
|
| 2732 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 2733 |
float FontGlobalScale; |
| 2734 |
|
| 2735 |
|
| 2736 |
|
| 2737 |
const char* (*GetClipboardTextFn)(void* user_data); |
| 2738 |
void (*SetClipboardTextFn)(void* user_data, const char* text); |
| 2739 |
void* ClipboardUserData; |
| 2740 |
|
| 2741 |
|
| 2742 |
#endif |
| 2743 |
|
| 2744 |
IMGUI_API ImGuiIO(); |
| 2745 |
}; |
| 2746 |
|
| 2747 |
|
| 2748 |
|
| 2749 |
|
| 2750 |
|
| 2751 |
|
| 2752 |
|
| 2753 |
|
| 2754 |
|
| 2755 |
|
| 2756 |
|
| 2757 |
|
| 2758 |
|
| 2759 |
|
| 2760 |
struct ImGuiInputTextCallbackData |
| 2761 |
{ |
| 2762 |
ImGuiContext* Ctx; |
| 2763 |
ImGuiInputTextFlags EventFlag; |
| 2764 |
ImGuiInputTextFlags Flags; |
| 2765 |
void* UserData; |
| 2766 |
ImGuiID ID; |
| 2767 |
|
| 2768 |
|
| 2769 |
|
| 2770 |
|
| 2771 |
|
| 2772 |
|
| 2773 |
ImGuiKey EventKey; |
| 2774 |
ImWchar EventChar; |
| 2775 |
bool EventActivated; |
| 2776 |
bool BufDirty; |
| 2777 |
char* Buf; |
| 2778 |
int BufTextLen; |
| 2779 |
int BufSize; |
| 2780 |
int CursorPos; |
| 2781 |
int SelectionStart; |
| 2782 |
int SelectionEnd; |
| 2783 |
|
| 2784 |
|
| 2785 |
|
| 2786 |
IMGUI_API ImGuiInputTextCallbackData(); |
| 2787 |
IMGUI_API void DeleteChars(int pos, int bytes_count); |
| 2788 |
IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL); |
| 2789 |
void SelectAll() { SelectionStart = 0; CursorPos = SelectionEnd = BufTextLen; } |
| 2790 |
void SetSelection(int s, int e) { IM_ASSERT(s >= 0 && s <= BufTextLen); IM_ASSERT(e >= 0 && e <= BufTextLen); SelectionStart = s; CursorPos = SelectionEnd = e; } |
| 2791 |
void ClearSelection() { SelectionStart = SelectionEnd = BufTextLen; } |
| 2792 |
bool HasSelection() const { return SelectionStart != SelectionEnd; } |
| 2793 |
}; |
| 2794 |
|
| 2795 |
|
| 2796 |
|
| 2797 |
struct ImGuiSizeCallbackData |
| 2798 |
{ |
| 2799 |
void* UserData; |
| 2800 |
ImVec2 Pos; |
| 2801 |
ImVec2 CurrentSize; |
| 2802 |
ImVec2 DesiredSize; |
| 2803 |
}; |
| 2804 |
|
| 2805 |
|
| 2806 |
|
| 2807 |
|
| 2808 |
|
| 2809 |
|
| 2810 |
|
| 2811 |
|
| 2812 |
struct ImGuiWindowClass |
| 2813 |
{ |
| 2814 |
ImGuiID ClassId; |
| 2815 |
ImGuiID ParentViewportId; |
| 2816 |
ImGuiID FocusRouteParentWindowId; |
| 2817 |
ImGuiViewportFlags ViewportFlagsOverrideSet; |
| 2818 |
ImGuiViewportFlags ViewportFlagsOverrideClear; |
| 2819 |
ImGuiTabItemFlags TabItemFlagsOverrideSet; |
| 2820 |
ImGuiDockNodeFlags DockNodeFlagsOverrideSet; |
| 2821 |
bool DockingAlwaysTabBar; |
| 2822 |
bool DockingAllowUnclassed; |
| 2823 |
void* PlatformIconData; |
| 2824 |
|
| 2825 |
ImGuiWindowClass() { memset((void*)this, 0, sizeof(*this)); ParentViewportId = (ImGuiID)-1; DockingAllowUnclassed = true; } |
| 2826 |
}; |
| 2827 |
|
| 2828 |
|
| 2829 |
struct ImGuiPayload |
| 2830 |
{ |
| 2831 |
|
| 2832 |
void* Data; |
| 2833 |
int DataSize; |
| 2834 |
|
| 2835 |
|
| 2836 |
ImGuiID SourceId; |
| 2837 |
ImGuiID SourceParentId; |
| 2838 |
int DataFrameCount; |
| 2839 |
char DataType[32 + 1]; |
| 2840 |
bool Preview; |
| 2841 |
bool Delivery; |
| 2842 |
|
| 2843 |
ImGuiPayload() { Clear(); } |
| 2844 |
void Clear() { SourceId = SourceParentId = 0; Data = NULL; DataSize = 0; memset(DataType, 0, sizeof(DataType)); DataFrameCount = -1; Preview = Delivery = false; } |
| 2845 |
bool IsDataType(const char* type) const { return DataFrameCount != -1 && strcmp(type, DataType) == 0; } |
| 2846 |
bool IsPreview() const { return Preview; } |
| 2847 |
bool IsDelivery() const { return Delivery; } |
| 2848 |
}; |
| 2849 |
|
| 2850 |
|
| 2851 |
|
| 2852 |
|
| 2853 |
|
| 2854 |
|
| 2855 |
#define IM_UNICODE_CODEPOINT_INVALID 0xFFFD |
| 2856 |
#ifdef IMGUI_USE_WCHAR32 |
| 2857 |
#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF |
| 2858 |
#else |
| 2859 |
#define IM_UNICODE_CODEPOINT_MAX 0xFFFF |
| 2860 |
#endif |
| 2861 |
|
| 2862 |
|
| 2863 |
|
| 2864 |
struct ImGuiOnceUponAFrame |
| 2865 |
{ |
| 2866 |
ImGuiOnceUponAFrame() { RefFrame = -1; } |
| 2867 |
mutable int RefFrame; |
| 2868 |
operator bool() const { int current_frame = ImGui::GetFrameCount(); if (RefFrame == current_frame) return false; RefFrame = current_frame; return true; } |
| 2869 |
}; |
| 2870 |
|
| 2871 |
|
| 2872 |
struct ImGuiTextFilter |
| 2873 |
{ |
| 2874 |
IMGUI_API ImGuiTextFilter(const char* default_filter = ""); |
| 2875 |
IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); |
| 2876 |
IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const; |
| 2877 |
IMGUI_API void Build(); |
| 2878 |
void Clear() { InputBuf[0] = 0; Build(); } |
| 2879 |
bool IsActive() const { return !Filters.empty(); } |
| 2880 |
|
| 2881 |
|
| 2882 |
struct ImGuiTextRange |
| 2883 |
{ |
| 2884 |
const char* b; |
| 2885 |
const char* e; |
| 2886 |
|
| 2887 |
ImGuiTextRange() { b = e = NULL; } |
| 2888 |
ImGuiTextRange(const char* _b, const char* _e) { b = _b; e = _e; } |
| 2889 |
bool empty() const { return b == e; } |
| 2890 |
IMGUI_API void split(char separator, ImVector<ImGuiTextRange>* out) const; |
| 2891 |
}; |
| 2892 |
char InputBuf[256]; |
| 2893 |
ImVector<ImGuiTextRange>Filters; |
| 2894 |
int CountGrep; |
| 2895 |
}; |
| 2896 |
|
| 2897 |
|
| 2898 |
|
| 2899 |
struct ImGuiTextBuffer |
| 2900 |
{ |
| 2901 |
ImVector<char> Buf; |
| 2902 |
IMGUI_API static char EmptyString[1]; |
| 2903 |
|
| 2904 |
ImGuiTextBuffer() { } |
| 2905 |
inline char operator[](int i) const { IM_ASSERT(Buf.Data != NULL); return Buf.Data[i]; } |
| 2906 |
const char* begin() const { return Buf.Data ? &Buf.front() : EmptyString; } |
| 2907 |
const char* end() const { return Buf.Data ? &Buf.back() : EmptyString; } |
| 2908 |
int size() const { return Buf.Size ? Buf.Size - 1 : 0; } |
| 2909 |
bool empty() const { return Buf.Size <= 1; } |
| 2910 |
void clear() { Buf.clear(); } |
| 2911 |
void resize(int size) { if (Buf.Size > size) Buf.Data[size] = 0; Buf.resize(size ? size + 1 : 0, 0); } |
| 2912 |
void reserve(int capacity) { Buf.reserve(capacity); } |
| 2913 |
const char* c_str() const { return Buf.Data ? Buf.Data : EmptyString; } |
| 2914 |
IMGUI_API void append(const char* str, const char* str_end = NULL); |
| 2915 |
IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2); |
| 2916 |
IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2); |
| 2917 |
}; |
| 2918 |
|
| 2919 |
|
| 2920 |
struct ImGuiStoragePair |
| 2921 |
{ |
| 2922 |
ImGuiID key; |
| 2923 |
union { int val_i; float val_f; void* val_p; }; |
| 2924 |
ImGuiStoragePair(ImGuiID _key, int _val) { key = _key; val_i = _val; } |
| 2925 |
ImGuiStoragePair(ImGuiID _key, float _val) { key = _key; val_f = _val; } |
| 2926 |
ImGuiStoragePair(ImGuiID _key, void* _val) { key = _key; val_p = _val; } |
| 2927 |
}; |
| 2928 |
|
| 2929 |
|
| 2930 |
|
| 2931 |
|
| 2932 |
|
| 2933 |
|
| 2934 |
|
| 2935 |
|
| 2936 |
|
| 2937 |
struct ImGuiStorage |
| 2938 |
{ |
| 2939 |
|
| 2940 |
ImVector<ImGuiStoragePair> Data; |
| 2941 |
|
| 2942 |
|
| 2943 |
|
| 2944 |
|
| 2945 |
void Clear() { Data.clear(); } |
| 2946 |
IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const; |
| 2947 |
IMGUI_API void SetInt(ImGuiID key, int val); |
| 2948 |
IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const; |
| 2949 |
IMGUI_API void SetBool(ImGuiID key, bool val); |
| 2950 |
IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const; |
| 2951 |
IMGUI_API void SetFloat(ImGuiID key, float val); |
| 2952 |
IMGUI_API void* GetVoidPtr(ImGuiID key) const; |
| 2953 |
IMGUI_API void SetVoidPtr(ImGuiID key, void* val); |
| 2954 |
|
| 2955 |
|
| 2956 |
|
| 2957 |
|
| 2958 |
|
| 2959 |
IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0); |
| 2960 |
IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false); |
| 2961 |
IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f); |
| 2962 |
IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL); |
| 2963 |
|
| 2964 |
|
| 2965 |
IMGUI_API void BuildSortByKey(); |
| 2966 |
|
| 2967 |
IMGUI_API void SetAllInt(int val); |
| 2968 |
|
| 2969 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 2970 |
|
| 2971 |
#endif |
| 2972 |
}; |
| 2973 |
|
| 2974 |
|
| 2975 |
enum ImGuiListClipperFlags_ |
| 2976 |
{ |
| 2977 |
ImGuiListClipperFlags_None = 0, |
| 2978 |
ImGuiListClipperFlags_NoSetTableRowCounters = 1 << 0, |
| 2979 |
}; |
| 2980 |
|
| 2981 |
|
| 2982 |
|
| 2983 |
|
| 2984 |
|
| 2985 |
|
| 2986 |
|
| 2987 |
|
| 2988 |
|
| 2989 |
|
| 2990 |
|
| 2991 |
|
| 2992 |
|
| 2993 |
|
| 2994 |
|
| 2995 |
|
| 2996 |
|
| 2997 |
|
| 2998 |
|
| 2999 |
|
| 3000 |
|
| 3001 |
struct ImGuiListClipper |
| 3002 |
{ |
| 3003 |
int DisplayStart; |
| 3004 |
int DisplayEnd; |
| 3005 |
int UserIndex; |
| 3006 |
int ItemsCount; |
| 3007 |
float ItemsHeight; |
| 3008 |
ImGuiListClipperFlags Flags; |
| 3009 |
double StartPosY; |
| 3010 |
double StartSeekOffsetY; |
| 3011 |
ImGuiContext* Ctx; |
| 3012 |
void* TempData; |
| 3013 |
|
| 3014 |
|
| 3015 |
|
| 3016 |
IMGUI_API ImGuiListClipper(); |
| 3017 |
IMGUI_API ~ImGuiListClipper(); |
| 3018 |
IMGUI_API void Begin(int items_count, float items_height = -1.0f); |
| 3019 |
IMGUI_API void End(); |
| 3020 |
IMGUI_API bool Step(); |
| 3021 |
|
| 3022 |
|
| 3023 |
|
| 3024 |
inline void IncludeItemByIndex(int item_index) { IncludeItemsByIndex(item_index, item_index + 1); } |
| 3025 |
IMGUI_API void IncludeItemsByIndex(int item_begin, int item_end); |
| 3026 |
|
| 3027 |
|
| 3028 |
|
| 3029 |
|
| 3030 |
IMGUI_API void SeekCursorForItem(int item_index); |
| 3031 |
|
| 3032 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3033 |
|
| 3034 |
|
| 3035 |
|
| 3036 |
#endif |
| 3037 |
}; |
| 3038 |
|
| 3039 |
|
| 3040 |
|
| 3041 |
|
| 3042 |
|
| 3043 |
#ifdef IMGUI_DEFINE_MATH_OPERATORS |
| 3044 |
#define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED |
| 3045 |
IM_MSVC_RUNTIME_CHECKS_OFF |
| 3046 |
|
| 3047 |
inline ImVec2 operator*(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x * rhs, lhs.y * rhs); } |
| 3048 |
inline ImVec2 operator*(const float lhs, const ImVec2& rhs) { return ImVec2(lhs * rhs.x, lhs * rhs.y); } |
| 3049 |
inline ImVec2 operator/(const ImVec2& lhs, const float rhs) { return ImVec2(lhs.x / rhs, lhs.y / rhs); } |
| 3050 |
inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x + rhs.x, lhs.y + rhs.y); } |
| 3051 |
inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x - rhs.x, lhs.y - rhs.y); } |
| 3052 |
inline ImVec2 operator*(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x * rhs.x, lhs.y * rhs.y); } |
| 3053 |
inline ImVec2 operator/(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x / rhs.x, lhs.y / rhs.y); } |
| 3054 |
inline ImVec2 operator+(const ImVec2& lhs) { return lhs; } |
| 3055 |
inline ImVec2 operator-(const ImVec2& lhs) { return ImVec2(-lhs.x, -lhs.y); } |
| 3056 |
inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } |
| 3057 |
inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; } |
| 3058 |
inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } |
| 3059 |
inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } |
| 3060 |
inline ImVec2& operator*=(ImVec2& lhs, const ImVec2& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; return lhs; } |
| 3061 |
inline ImVec2& operator/=(ImVec2& lhs, const ImVec2& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; return lhs; } |
| 3062 |
inline bool operator==(const ImVec2& lhs, const ImVec2& rhs) { return lhs.x == rhs.x && lhs.y == rhs.y; } |
| 3063 |
inline bool operator!=(const ImVec2& lhs, const ImVec2& rhs) { return lhs.x != rhs.x || lhs.y != rhs.y; } |
| 3064 |
|
| 3065 |
inline ImVec4 operator*(const ImVec4& lhs, const float rhs) { return ImVec4(lhs.x * rhs, lhs.y * rhs, lhs.z * rhs, lhs.w * rhs); } |
| 3066 |
inline ImVec4 operator*(const float lhs, const ImVec4& rhs) { return ImVec4(lhs * rhs.x, lhs * rhs.y, lhs * rhs.z, lhs * rhs.w); } |
| 3067 |
inline ImVec4 operator/(const ImVec4& lhs, const float rhs) { return ImVec4(lhs.x / rhs, lhs.y / rhs, lhs.z / rhs, lhs.w / rhs); } |
| 3068 |
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); } |
| 3069 |
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); } |
| 3070 |
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); } |
| 3071 |
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); } |
| 3072 |
inline ImVec4 operator+(const ImVec4& lhs) { return lhs; } |
| 3073 |
inline ImVec4 operator-(const ImVec4& lhs) { return ImVec4(-lhs.x, -lhs.y, -lhs.z, -lhs.w); } |
| 3074 |
inline ImVec4& operator*=(ImVec4& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; lhs.z *= rhs; lhs.w *= rhs; return lhs; } |
| 3075 |
inline ImVec4& operator/=(ImVec4& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; lhs.z /= rhs; lhs.w /= rhs; return lhs; } |
| 3076 |
inline ImVec4& operator+=(ImVec4& lhs, const ImVec4& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; lhs.z += rhs.z; lhs.w += rhs.w; return lhs; } |
| 3077 |
inline ImVec4& operator-=(ImVec4& lhs, const ImVec4& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; lhs.z -= rhs.z; lhs.w -= rhs.w; return lhs; } |
| 3078 |
inline ImVec4& operator*=(ImVec4& lhs, const ImVec4& rhs) { lhs.x *= rhs.x; lhs.y *= rhs.y; lhs.z *= rhs.z; lhs.w *= rhs.w; return lhs; } |
| 3079 |
inline ImVec4& operator/=(ImVec4& lhs, const ImVec4& rhs) { lhs.x /= rhs.x; lhs.y /= rhs.y; lhs.z /= rhs.z; lhs.w /= rhs.w; return lhs; } |
| 3080 |
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; } |
| 3081 |
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; } |
| 3082 |
IM_MSVC_RUNTIME_CHECKS_RESTORE |
| 3083 |
#endif |
| 3084 |
|
| 3085 |
|
| 3086 |
|
| 3087 |
|
| 3088 |
#ifndef IM_COL32_R_SHIFT |
| 3089 |
#ifdef IMGUI_USE_BGRA_PACKED_COLOR |
| 3090 |
#define IM_COL32_R_SHIFT 16 |
| 3091 |
#define IM_COL32_G_SHIFT 8 |
| 3092 |
#define IM_COL32_B_SHIFT 0 |
| 3093 |
#define IM_COL32_A_SHIFT 24 |
| 3094 |
#define IM_COL32_A_MASK 0xFF000000 |
| 3095 |
#else |
| 3096 |
#define IM_COL32_R_SHIFT 0 |
| 3097 |
#define IM_COL32_G_SHIFT 8 |
| 3098 |
#define IM_COL32_B_SHIFT 16 |
| 3099 |
#define IM_COL32_A_SHIFT 24 |
| 3100 |
#define IM_COL32_A_MASK 0xFF000000 |
| 3101 |
#endif |
| 3102 |
#endif |
| 3103 |
#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)) |
| 3104 |
#define IM_COL32_WHITE IM_COL32(255,255,255,255) |
| 3105 |
#define IM_COL32_BLACK IM_COL32(0,0,0,255) |
| 3106 |
#define IM_COL32_BLACK_TRANS IM_COL32(0,0,0,0) |
| 3107 |
|
| 3108 |
|
| 3109 |
|
| 3110 |
|
| 3111 |
|
| 3112 |
struct ImColor |
| 3113 |
{ |
| 3114 |
ImVec4 Value; |
| 3115 |
|
| 3116 |
constexpr ImColor() { } |
| 3117 |
constexpr ImColor(float r, float g, float b, float a = 1.0f) : Value(r, g, b, a) { } |
| 3118 |
constexpr ImColor(const ImVec4& col) : Value(col) {} |
| 3119 |
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)) {} |
| 3120 |
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)) {} |
| 3121 |
inline operator ImU32() const { return ImGui::ColorConvertFloat4ToU32(Value); } |
| 3122 |
inline operator ImVec4() const { return Value; } |
| 3123 |
|
| 3124 |
|
| 3125 |
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; } |
| 3126 |
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); } |
| 3127 |
}; |
| 3128 |
|
| 3129 |
|
| 3130 |
|
| 3131 |
|
| 3132 |
|
| 3133 |
|
| 3134 |
|
| 3135 |
|
| 3136 |
|
| 3137 |
|
| 3138 |
|
| 3139 |
|
| 3140 |
|
| 3141 |
|
| 3142 |
|
| 3143 |
|
| 3144 |
|
| 3145 |
|
| 3146 |
|
| 3147 |
|
| 3148 |
|
| 3149 |
|
| 3150 |
|
| 3151 |
|
| 3152 |
|
| 3153 |
|
| 3154 |
|
| 3155 |
|
| 3156 |
|
| 3157 |
|
| 3158 |
|
| 3159 |
|
| 3160 |
|
| 3161 |
|
| 3162 |
|
| 3163 |
|
| 3164 |
|
| 3165 |
|
| 3166 |
|
| 3167 |
|
| 3168 |
|
| 3169 |
|
| 3170 |
enum ImGuiMultiSelectFlags_ |
| 3171 |
{ |
| 3172 |
ImGuiMultiSelectFlags_None = 0, |
| 3173 |
ImGuiMultiSelectFlags_SingleSelect = 1 << 0, |
| 3174 |
ImGuiMultiSelectFlags_NoSelectAll = 1 << 1, |
| 3175 |
ImGuiMultiSelectFlags_NoRangeSelect = 1 << 2, |
| 3176 |
ImGuiMultiSelectFlags_NoAutoSelect = 1 << 3, |
| 3177 |
ImGuiMultiSelectFlags_NoAutoClear = 1 << 4, |
| 3178 |
ImGuiMultiSelectFlags_NoAutoClearOnReselect = 1 << 5, |
| 3179 |
ImGuiMultiSelectFlags_BoxSelect1d = 1 << 6, |
| 3180 |
ImGuiMultiSelectFlags_BoxSelect2d = 1 << 7, |
| 3181 |
ImGuiMultiSelectFlags_BoxSelectNoScroll = 1 << 8, |
| 3182 |
ImGuiMultiSelectFlags_ClearOnEscape = 1 << 9, |
| 3183 |
ImGuiMultiSelectFlags_ClearOnClickVoid = 1 << 10, |
| 3184 |
ImGuiMultiSelectFlags_ScopeWindow = 1 << 11, |
| 3185 |
ImGuiMultiSelectFlags_ScopeRect = 1 << 12, |
| 3186 |
ImGuiMultiSelectFlags_SelectOnAuto = 1 << 13, |
| 3187 |
ImGuiMultiSelectFlags_SelectOnClickAlways = 1 << 14, |
| 3188 |
ImGuiMultiSelectFlags_SelectOnClickRelease = 1 << 15, |
| 3189 |
|
| 3190 |
ImGuiMultiSelectFlags_NavWrapX = 1 << 16, |
| 3191 |
ImGuiMultiSelectFlags_NoSelectOnRightClick = 1 << 17, |
| 3192 |
ImGuiMultiSelectFlags_SelectOnMask_ = ImGuiMultiSelectFlags_SelectOnAuto | ImGuiMultiSelectFlags_SelectOnClickAlways | ImGuiMultiSelectFlags_SelectOnClickRelease, |
| 3193 |
ImGuiMultiSelectFlags_CheckboxMode_ = 1 << 20, |
| 3194 |
|
| 3195 |
|
| 3196 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3197 |
ImGuiMultiSelectFlags_SelectOnClick = ImGuiMultiSelectFlags_SelectOnAuto, |
| 3198 |
#endif |
| 3199 |
}; |
| 3200 |
|
| 3201 |
|
| 3202 |
|
| 3203 |
|
| 3204 |
|
| 3205 |
|
| 3206 |
struct ImGuiMultiSelectIO |
| 3207 |
{ |
| 3208 |
|
| 3209 |
ImVector<ImGuiSelectionRequest> Requests; |
| 3210 |
ImGuiSelectionUserData RangeSrcItem; |
| 3211 |
ImGuiSelectionUserData NavIdItem; |
| 3212 |
bool NavIdSelected; |
| 3213 |
bool RangeSrcReset; |
| 3214 |
int ItemsCount; |
| 3215 |
}; |
| 3216 |
|
| 3217 |
|
| 3218 |
enum ImGuiSelectionRequestType |
| 3219 |
{ |
| 3220 |
ImGuiSelectionRequestType_None = 0, |
| 3221 |
ImGuiSelectionRequestType_SetAll, |
| 3222 |
ImGuiSelectionRequestType_SetRange, |
| 3223 |
}; |
| 3224 |
|
| 3225 |
|
| 3226 |
struct ImGuiSelectionRequest |
| 3227 |
{ |
| 3228 |
|
| 3229 |
ImGuiSelectionRequestType Type; |
| 3230 |
bool Selected; |
| 3231 |
ImS8 RangeDirection; |
| 3232 |
ImGuiSelectionUserData RangeFirstItem; |
| 3233 |
ImGuiSelectionUserData RangeLastItem; |
| 3234 |
}; |
| 3235 |
|
| 3236 |
|
| 3237 |
|
| 3238 |
|
| 3239 |
|
| 3240 |
|
| 3241 |
|
| 3242 |
|
| 3243 |
|
| 3244 |
|
| 3245 |
|
| 3246 |
|
| 3247 |
|
| 3248 |
|
| 3249 |
|
| 3250 |
|
| 3251 |
|
| 3252 |
struct ImGuiSelectionBasicStorage |
| 3253 |
{ |
| 3254 |
|
| 3255 |
int Size; |
| 3256 |
bool PreserveOrder; |
| 3257 |
void* UserData; |
| 3258 |
ImGuiID (*AdapterIndexToStorageId)(ImGuiSelectionBasicStorage* self, int idx); |
| 3259 |
int _SelectionOrder; |
| 3260 |
ImGuiStorage _Storage; |
| 3261 |
|
| 3262 |
|
| 3263 |
IMGUI_API ImGuiSelectionBasicStorage(); |
| 3264 |
IMGUI_API void ApplyRequests(ImGuiMultiSelectIO* ms_io); |
| 3265 |
IMGUI_API bool Contains(ImGuiID id) const; |
| 3266 |
IMGUI_API void Clear(); |
| 3267 |
IMGUI_API void Swap(ImGuiSelectionBasicStorage& r); |
| 3268 |
IMGUI_API void SetItemSelected(ImGuiID id, bool selected); |
| 3269 |
IMGUI_API bool GetNextSelectedItem(void** opaque_it, ImGuiID* out_id); |
| 3270 |
inline ImGuiID GetStorageIdFromIndex(int idx) { return AdapterIndexToStorageId(this, idx); } |
| 3271 |
}; |
| 3272 |
|
| 3273 |
|
| 3274 |
|
| 3275 |
struct ImGuiSelectionExternalStorage |
| 3276 |
{ |
| 3277 |
|
| 3278 |
void* UserData; |
| 3279 |
void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected); |
| 3280 |
|
| 3281 |
|
| 3282 |
IMGUI_API ImGuiSelectionExternalStorage(); |
| 3283 |
IMGUI_API void ApplyRequests(ImGuiMultiSelectIO* ms_io); |
| 3284 |
}; |
| 3285 |
|
| 3286 |
|
| 3287 |
|
| 3288 |
|
| 3289 |
|
| 3290 |
|
| 3291 |
|
| 3292 |
#ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX |
| 3293 |
#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32) |
| 3294 |
#endif |
| 3295 |
|
| 3296 |
|
| 3297 |
|
| 3298 |
|
| 3299 |
#ifndef ImDrawIdx |
| 3300 |
typedef unsigned short ImDrawIdx; |
| 3301 |
#endif |
| 3302 |
|
| 3303 |
|
| 3304 |
|
| 3305 |
|
| 3306 |
|
| 3307 |
|
| 3308 |
|
| 3309 |
|
| 3310 |
#ifndef ImDrawCallback |
| 3311 |
typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); |
| 3312 |
#endif |
| 3313 |
|
| 3314 |
|
| 3315 |
|
| 3316 |
|
| 3317 |
|
| 3318 |
|
| 3319 |
struct ImDrawCmd |
| 3320 |
{ |
| 3321 |
ImVec4 ClipRect; |
| 3322 |
ImTextureRef TexRef; |
| 3323 |
unsigned int VtxOffset; |
| 3324 |
unsigned int IdxOffset; |
| 3325 |
unsigned int ElemCount; |
| 3326 |
ImDrawCallback UserCallback; |
| 3327 |
void* UserCallbackData; |
| 3328 |
int UserCallbackDataSize; |
| 3329 |
int UserCallbackDataOffset; |
| 3330 |
|
| 3331 |
ImDrawCmd() { memset((void*)this, 0, sizeof(*this)); } |
| 3332 |
|
| 3333 |
|
| 3334 |
|
| 3335 |
inline ImTextureID GetTexID() const; |
| 3336 |
}; |
| 3337 |
|
| 3338 |
|
| 3339 |
#ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT |
| 3340 |
struct ImDrawVert |
| 3341 |
{ |
| 3342 |
ImVec2 pos; |
| 3343 |
ImVec2 uv; |
| 3344 |
ImU32 col; |
| 3345 |
}; |
| 3346 |
#else |
| 3347 |
|
| 3348 |
|
| 3349 |
|
| 3350 |
|
| 3351 |
IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT; |
| 3352 |
#endif |
| 3353 |
|
| 3354 |
|
| 3355 |
struct ImDrawCmdHeader |
| 3356 |
{ |
| 3357 |
ImVec4 ClipRect; |
| 3358 |
ImTextureRef TexRef; |
| 3359 |
unsigned int VtxOffset; |
| 3360 |
}; |
| 3361 |
|
| 3362 |
|
| 3363 |
struct ImDrawChannel |
| 3364 |
{ |
| 3365 |
ImVector<ImDrawCmd> _CmdBuffer; |
| 3366 |
ImVector<ImDrawIdx> _IdxBuffer; |
| 3367 |
}; |
| 3368 |
|
| 3369 |
|
| 3370 |
|
| 3371 |
struct ImDrawListSplitter |
| 3372 |
{ |
| 3373 |
int _Current; |
| 3374 |
int _Count; |
| 3375 |
ImVector<ImDrawChannel> _Channels; |
| 3376 |
|
| 3377 |
inline ImDrawListSplitter() { memset((void*)this, 0, sizeof(*this)); } |
| 3378 |
inline ~ImDrawListSplitter() { ClearFreeMemory(); } |
| 3379 |
inline void Clear() { _Current = 0; _Count = 1; } |
| 3380 |
IMGUI_API void ClearFreeMemory(); |
| 3381 |
IMGUI_API void Split(ImDrawList* draw_list, int count); |
| 3382 |
IMGUI_API void Merge(ImDrawList* draw_list); |
| 3383 |
IMGUI_API void SetCurrentChannel(ImDrawList* draw_list, int channel_idx); |
| 3384 |
}; |
| 3385 |
|
| 3386 |
|
| 3387 |
enum ImDrawFlags_ |
| 3388 |
{ |
| 3389 |
ImDrawFlags_None = 0, |
| 3390 |
|
| 3391 |
|
| 3392 |
|
| 3393 |
ImDrawFlags_RoundCornersTopLeft = 1 << 4, |
| 3394 |
ImDrawFlags_RoundCornersTopRight = 1 << 5, |
| 3395 |
ImDrawFlags_RoundCornersBottomLeft = 1 << 6, |
| 3396 |
ImDrawFlags_RoundCornersBottomRight = 1 << 7, |
| 3397 |
ImDrawFlags_RoundCornersNone = 1 << 8, |
| 3398 |
ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, |
| 3399 |
ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll, |
| 3400 |
ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight, |
| 3401 |
ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight, |
| 3402 |
ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft, |
| 3403 |
ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight, |
| 3404 |
ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone, |
| 3405 |
|
| 3406 |
|
| 3407 |
ImDrawFlags_Closed = 1 << 9, |
| 3408 |
|
| 3409 |
|
| 3410 |
ImDrawFlags_InvalidMask_ = ~0x7FFFFFF0, |
| 3411 |
}; |
| 3412 |
|
| 3413 |
|
| 3414 |
|
| 3415 |
enum ImDrawListFlags_ |
| 3416 |
{ |
| 3417 |
ImDrawListFlags_None = 0, |
| 3418 |
ImDrawListFlags_AntiAliasedLines = 1 << 0, |
| 3419 |
ImDrawListFlags_AntiAliasedLinesUseTex = 1 << 1, |
| 3420 |
ImDrawListFlags_AntiAliasedFill = 1 << 2, |
| 3421 |
ImDrawListFlags_AllowVtxOffset = 1 << 3, |
| 3422 |
ImDrawListFlags_TextNoPixelSnap = 1 << 4, |
| 3423 |
}; |
| 3424 |
|
| 3425 |
|
| 3426 |
|
| 3427 |
|
| 3428 |
|
| 3429 |
|
| 3430 |
|
| 3431 |
|
| 3432 |
|
| 3433 |
|
| 3434 |
struct ImDrawList |
| 3435 |
{ |
| 3436 |
|
| 3437 |
ImVector<ImDrawCmd> CmdBuffer; |
| 3438 |
ImVector<ImDrawIdx> IdxBuffer; |
| 3439 |
ImVector<ImDrawVert> VtxBuffer; |
| 3440 |
ImDrawListFlags Flags; |
| 3441 |
|
| 3442 |
|
| 3443 |
unsigned int _VtxCurrentIdx; |
| 3444 |
ImDrawListSharedData* _Data; |
| 3445 |
ImDrawVert* _VtxWritePtr; |
| 3446 |
ImDrawIdx* _IdxWritePtr; |
| 3447 |
ImVector<ImVec2> _Path; |
| 3448 |
ImDrawCmdHeader _CmdHeader; |
| 3449 |
ImDrawListSplitter _Splitter; |
| 3450 |
ImVector<ImVec4> _ClipRectStack; |
| 3451 |
ImVector<ImTextureRef> _TextureStack; |
| 3452 |
ImVector<ImU8> _CallbacksDataBuf; |
| 3453 |
float _FringeScale; |
| 3454 |
const char* _OwnerName; |
| 3455 |
|
| 3456 |
|
| 3457 |
|
| 3458 |
IMGUI_API ImDrawList(ImDrawListSharedData* shared_data); |
| 3459 |
IMGUI_API ~ImDrawList(); |
| 3460 |
|
| 3461 |
IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect = false); |
| 3462 |
IMGUI_API void PushClipRectFullScreen(); |
| 3463 |
IMGUI_API void PopClipRect(); |
| 3464 |
IMGUI_API void PushTexture(ImTextureRef tex_ref); |
| 3465 |
IMGUI_API void PopTexture(); |
| 3466 |
inline ImVec2 GetClipRectMin() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.x, cr.y); } |
| 3467 |
inline ImVec2 GetClipRectMax() const { const ImVec4& cr = _ClipRectStack.back(); return ImVec2(cr.z, cr.w); } |
| 3468 |
|
| 3469 |
|
| 3470 |
|
| 3471 |
|
| 3472 |
|
| 3473 |
|
| 3474 |
|
| 3475 |
|
| 3476 |
IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f); |
| 3477 |
IMGUI_API void AddLineH(float min_x, float max_x, float y, ImU32 col, float thickness = 1.0f); |
| 3478 |
IMGUI_API void AddLineV(float x, float min_y, float max_y, ImU32 col, float thickness = 1.0f); |
| 3479 |
IMGUI_API void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, float thickness = 1.0f, ImDrawFlags flags = 0); |
| 3480 |
IMGUI_API void AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding = 0.0f, ImDrawFlags flags = 0); |
| 3481 |
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); |
| 3482 |
IMGUI_API void AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness = 1.0f); |
| 3483 |
IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col); |
| 3484 |
IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f); |
| 3485 |
IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col); |
| 3486 |
IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f); |
| 3487 |
IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0); |
| 3488 |
IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f); |
| 3489 |
IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments); |
| 3490 |
IMGUI_API void AddEllipse(const ImVec2& center, const ImVec2& radius, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f); |
| 3491 |
IMGUI_API void AddEllipseFilled(const ImVec2& center, const ImVec2& radius, ImU32 col, float rot = 0.0f, int num_segments = 0); |
| 3492 |
IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL); |
| 3493 |
IMGUI_API void AddText(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); |
| 3494 |
IMGUI_API void AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0); |
| 3495 |
IMGUI_API void AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments = 0); |
| 3496 |
|
| 3497 |
|
| 3498 |
|
| 3499 |
|
| 3500 |
IMGUI_API void AddPolyline(const ImVec2* points, int num_points, ImU32 col, float thickness, ImDrawFlags flags = 0); |
| 3501 |
IMGUI_API void AddConvexPolyFilled(const ImVec2* points, int num_points, ImU32 col); |
| 3502 |
IMGUI_API void AddConcavePolyFilled(const ImVec2* points, int num_points, ImU32 col); |
| 3503 |
|
| 3504 |
|
| 3505 |
|
| 3506 |
|
| 3507 |
|
| 3508 |
IMGUI_API void AddImage(ImTextureRef tex_ref, 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); |
| 3509 |
IMGUI_API void AddImageQuad(ImTextureRef tex_ref, 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); |
| 3510 |
IMGUI_API void AddImageRounded(ImTextureRef tex_ref, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags = 0); |
| 3511 |
|
| 3512 |
|
| 3513 |
|
| 3514 |
|
| 3515 |
inline void PathClear() { _Path.Size = 0; } |
| 3516 |
inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } |
| 3517 |
inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); } |
| 3518 |
inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } |
| 3519 |
inline void PathFillConcave(ImU32 col) { AddConcavePolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } |
| 3520 |
inline void PathStroke(ImU32 col, float thickness = 1.0f, ImDrawFlags flags = 0) { AddPolyline(_Path.Data, _Path.Size, col, thickness, flags); _Path.Size = 0; } |
| 3521 |
IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0); |
| 3522 |
IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); |
| 3523 |
IMGUI_API void PathEllipticalArcTo(const ImVec2& center, const ImVec2& radius, float rot, float a_min, float a_max, int num_segments = 0); |
| 3524 |
IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); |
| 3525 |
IMGUI_API void PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments = 0); |
| 3526 |
IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, ImDrawFlags flags = 0); |
| 3527 |
|
| 3528 |
|
| 3529 |
|
| 3530 |
|
| 3531 |
|
| 3532 |
|
| 3533 |
|
| 3534 |
|
| 3535 |
|
| 3536 |
|
| 3537 |
|
| 3538 |
IMGUI_API void AddCallback(ImDrawCallback callback, void* userdata = NULL, size_t userdata_size = 0); |
| 3539 |
|
| 3540 |
|
| 3541 |
IMGUI_API void AddDrawCmd(); |
| 3542 |
IMGUI_API ImDrawList* CloneOutput() const; |
| 3543 |
|
| 3544 |
|
| 3545 |
|
| 3546 |
|
| 3547 |
|
| 3548 |
|
| 3549 |
|
| 3550 |
inline void ChannelsSplit(int count) { _Splitter.Split(this, count); } |
| 3551 |
inline void ChannelsMerge() { _Splitter.Merge(this); } |
| 3552 |
inline void ChannelsSetCurrent(int n) { _Splitter.SetCurrentChannel(this, n); } |
| 3553 |
|
| 3554 |
|
| 3555 |
|
| 3556 |
|
| 3557 |
IMGUI_API void PrimReserve(int idx_count, int vtx_count); |
| 3558 |
IMGUI_API void PrimUnreserve(int idx_count, int vtx_count); |
| 3559 |
IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); |
| 3560 |
IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_b, ImU32 col); |
| 3561 |
IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, const ImVec2& uv_a, const ImVec2& uv_b, const ImVec2& uv_c, const ImVec2& uv_d, ImU32 col); |
| 3562 |
inline void PrimWriteVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { _VtxWritePtr->pos = pos; _VtxWritePtr->uv = uv; _VtxWritePtr->col = col; _VtxWritePtr++; _VtxCurrentIdx++; } |
| 3563 |
inline void PrimWriteIdx(ImDrawIdx idx) { *_IdxWritePtr = idx; _IdxWritePtr++; } |
| 3564 |
inline void PrimVtx(const ImVec2& pos, const ImVec2& uv, ImU32 col) { PrimWriteIdx((ImDrawIdx)_VtxCurrentIdx); PrimWriteVtx(pos, uv, col); } |
| 3565 |
|
| 3566 |
|
| 3567 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3568 |
inline void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness) { AddRect(p_min, p_max, col, rounding, thickness, flags); } |
| 3569 |
inline void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness) { AddPolyline(points, num_points, col, thickness, flags); } |
| 3570 |
inline void PathStroke(ImU32 col, ImDrawFlags flags, float thickness) { PathStroke(col, thickness, flags); } |
| 3571 |
inline void PushTextureID(ImTextureRef tex_ref) { PushTexture(tex_ref); } |
| 3572 |
inline void PopTextureID() { PopTexture(); } |
| 3573 |
#else |
| 3574 |
void AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding , ImDrawFlags flags , float thickness ) = delete; |
| 3575 |
void AddPolyline(const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness) = delete; |
| 3576 |
inline void PathStroke(ImU32 col, ImDrawFlags flags , float thickness ) = delete; |
| 3577 |
#endif |
| 3578 |
|
| 3579 |
|
| 3580 |
|
| 3581 |
|
| 3582 |
|
| 3583 |
|
| 3584 |
|
| 3585 |
IMGUI_API void _SetDrawListSharedData(ImDrawListSharedData* data); |
| 3586 |
IMGUI_API void _ResetForNewFrame(); |
| 3587 |
IMGUI_API void _ClearFreeMemory(); |
| 3588 |
IMGUI_API void _PopUnusedDrawCmd(); |
| 3589 |
IMGUI_API void _TryMergeDrawCmds(); |
| 3590 |
IMGUI_API void _OnChangedClipRect(); |
| 3591 |
IMGUI_API void _OnChangedTexture(); |
| 3592 |
IMGUI_API void _OnChangedVtxOffset(); |
| 3593 |
IMGUI_API void _SetTexture(ImTextureRef tex_ref); |
| 3594 |
IMGUI_API int _CalcCircleAutoSegmentCount(float radius) const; |
| 3595 |
IMGUI_API void _PathArcToFastEx(const ImVec2& center, float radius, int a_min_sample, int a_max_sample, int a_step); |
| 3596 |
IMGUI_API void _PathArcToN(const ImVec2& center, float radius, float a_min, float a_max, int num_segments); |
| 3597 |
}; |
| 3598 |
|
| 3599 |
|
| 3600 |
|
| 3601 |
|
| 3602 |
struct ImDrawData |
| 3603 |
{ |
| 3604 |
bool Valid; |
| 3605 |
int CmdListsCount; |
| 3606 |
int TotalIdxCount; |
| 3607 |
int TotalVtxCount; |
| 3608 |
ImVector<ImDrawList*> CmdLists; |
| 3609 |
ImVec2 DisplayPos; |
| 3610 |
ImVec2 DisplaySize; |
| 3611 |
ImVec2 FramebufferScale; |
| 3612 |
ImGuiViewport* OwnerViewport; |
| 3613 |
ImVector<ImTextureData*>* Textures; |
| 3614 |
|
| 3615 |
|
| 3616 |
ImDrawData() { Clear(); } |
| 3617 |
IMGUI_API void Clear(); |
| 3618 |
IMGUI_API void AddDrawList(ImDrawList* draw_list); |
| 3619 |
IMGUI_API void DeIndexAllBuffers(); |
| 3620 |
IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); |
| 3621 |
}; |
| 3622 |
|
| 3623 |
|
| 3624 |
|
| 3625 |
|
| 3626 |
|
| 3627 |
|
| 3628 |
|
| 3629 |
|
| 3630 |
|
| 3631 |
#undef Status |
| 3632 |
|
| 3633 |
|
| 3634 |
|
| 3635 |
enum ImTextureFormat |
| 3636 |
{ |
| 3637 |
ImTextureFormat_RGBA32, |
| 3638 |
ImTextureFormat_Alpha8, |
| 3639 |
}; |
| 3640 |
|
| 3641 |
|
| 3642 |
enum ImTextureStatus |
| 3643 |
{ |
| 3644 |
ImTextureStatus_OK, |
| 3645 |
ImTextureStatus_Destroyed, |
| 3646 |
ImTextureStatus_WantCreate, |
| 3647 |
ImTextureStatus_WantUpdates, |
| 3648 |
ImTextureStatus_WantDestroy, |
| 3649 |
}; |
| 3650 |
|
| 3651 |
|
| 3652 |
|
| 3653 |
|
| 3654 |
struct ImTextureRect |
| 3655 |
{ |
| 3656 |
unsigned short x, y; |
| 3657 |
unsigned short w, h; |
| 3658 |
}; |
| 3659 |
|
| 3660 |
|
| 3661 |
|
| 3662 |
|
| 3663 |
|
| 3664 |
|
| 3665 |
|
| 3666 |
|
| 3667 |
struct ImTextureData |
| 3668 |
{ |
| 3669 |
|
| 3670 |
int UniqueID; |
| 3671 |
ImTextureStatus Status; |
| 3672 |
void* BackendUserData; |
| 3673 |
ImTextureID TexID; |
| 3674 |
ImTextureFormat Format; |
| 3675 |
int Width; |
| 3676 |
int Height; |
| 3677 |
int BytesPerPixel; |
| 3678 |
unsigned char* Pixels; |
| 3679 |
ImTextureRect UsedRect; |
| 3680 |
ImTextureRect UpdateRect; |
| 3681 |
ImVector<ImTextureRect> Updates; |
| 3682 |
int UnusedFrames; |
| 3683 |
unsigned short RefCount; |
| 3684 |
bool UseColors; |
| 3685 |
bool WantDestroyNextFrame; |
| 3686 |
|
| 3687 |
|
| 3688 |
|
| 3689 |
ImTextureData() { memset((void*)this, 0, sizeof(*this)); Status = ImTextureStatus_Destroyed; TexID = ImTextureID_Invalid; } |
| 3690 |
~ImTextureData() { DestroyPixels(); } |
| 3691 |
IMGUI_API void Create(ImTextureFormat format, int w, int h); |
| 3692 |
IMGUI_API void DestroyPixels(); |
| 3693 |
void* GetPixels() { IM_ASSERT(Pixels != NULL); return Pixels; } |
| 3694 |
void* GetPixelsAt(int x, int y) { IM_ASSERT(Pixels != NULL); return Pixels + (x + y * Width) * BytesPerPixel; } |
| 3695 |
int GetSizeInBytes() const { return Width * Height * BytesPerPixel; } |
| 3696 |
int GetPitch() const { return Width * BytesPerPixel; } |
| 3697 |
ImTextureRef GetTexRef() { ImTextureRef tex_ref; tex_ref._TexData = this; tex_ref._TexID = ImTextureID_Invalid; return tex_ref; } |
| 3698 |
ImTextureID GetTexID() const { return TexID; } |
| 3699 |
|
| 3700 |
|
| 3701 |
|
| 3702 |
|
| 3703 |
void SetTexID(ImTextureID tex_id) { TexID = tex_id; } |
| 3704 |
void SetStatus(ImTextureStatus status) { Status = status; if (status == ImTextureStatus_Destroyed && !WantDestroyNextFrame && Pixels != nullptr) Status = ImTextureStatus_WantCreate; } |
| 3705 |
}; |
| 3706 |
|
| 3707 |
|
| 3708 |
|
| 3709 |
|
| 3710 |
|
| 3711 |
|
| 3712 |
struct ImFontConfig |
| 3713 |
{ |
| 3714 |
|
| 3715 |
char Name[40]; |
| 3716 |
void* FontData; |
| 3717 |
int FontDataSize; |
| 3718 |
bool FontDataOwnedByAtlas; |
| 3719 |
|
| 3720 |
|
| 3721 |
bool MergeMode; |
| 3722 |
bool PixelSnapH; |
| 3723 |
ImS8 OversampleH; |
| 3724 |
ImS8 OversampleV; |
| 3725 |
ImWchar EllipsisChar; |
| 3726 |
float SizePixels; |
| 3727 |
const ImWchar* GlyphRanges; |
| 3728 |
const ImWchar* GlyphExcludeRanges; |
| 3729 |
|
| 3730 |
ImVec2 GlyphOffset; |
| 3731 |
float GlyphMinAdvanceX; |
| 3732 |
float GlyphMaxAdvanceX; |
| 3733 |
float GlyphExtraAdvanceX; |
| 3734 |
ImU32 FontNo; |
| 3735 |
unsigned int FontLoaderFlags; |
| 3736 |
|
| 3737 |
float RasterizerMultiply; |
| 3738 |
float RasterizerDensity; |
| 3739 |
float ExtraSizeScale; |
| 3740 |
|
| 3741 |
|
| 3742 |
ImFontFlags Flags; |
| 3743 |
ImFont* DstFont; |
| 3744 |
const ImFontLoader* FontLoader; |
| 3745 |
void* FontLoaderData; |
| 3746 |
|
| 3747 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3748 |
bool PixelSnapV; |
| 3749 |
#endif |
| 3750 |
IMGUI_API ImFontConfig(); |
| 3751 |
}; |
| 3752 |
|
| 3753 |
|
| 3754 |
|
| 3755 |
struct ImFontGlyph |
| 3756 |
{ |
| 3757 |
unsigned int Colored : 1; |
| 3758 |
unsigned int Visible : 1; |
| 3759 |
unsigned int SourceIdx : 4; |
| 3760 |
unsigned int Codepoint : 26; |
| 3761 |
float AdvanceX; |
| 3762 |
float X0, Y0, X1, Y1; |
| 3763 |
float U0, V0, U1, V1; |
| 3764 |
int PackId; |
| 3765 |
|
| 3766 |
ImFontGlyph() { memset((void*)this, 0, sizeof(*this)); PackId = -1; } |
| 3767 |
}; |
| 3768 |
|
| 3769 |
|
| 3770 |
|
| 3771 |
struct ImFontGlyphRangesBuilder |
| 3772 |
{ |
| 3773 |
ImVector<ImU32> UsedChars; |
| 3774 |
|
| 3775 |
ImFontGlyphRangesBuilder() { Clear(); } |
| 3776 |
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); } |
| 3777 |
inline bool GetBit(size_t n) const { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); return (UsedChars[off] & mask) != 0; } |
| 3778 |
inline void SetBit(size_t n) { int off = (int)(n >> 5); ImU32 mask = 1u << (n & 31); UsedChars[off] |= mask; } |
| 3779 |
inline void AddChar(ImWchar c) { SetBit(c); } |
| 3780 |
IMGUI_API void AddText(const char* text, const char* text_end = NULL); |
| 3781 |
IMGUI_API void AddRanges(const ImWchar* ranges); |
| 3782 |
IMGUI_API void BuildRanges(ImVector<ImWchar>* out_ranges); |
| 3783 |
}; |
| 3784 |
|
| 3785 |
|
| 3786 |
|
| 3787 |
typedef int ImFontAtlasRectId; |
| 3788 |
#define ImFontAtlasRectId_Invalid -1 |
| 3789 |
|
| 3790 |
|
| 3791 |
|
| 3792 |
|
| 3793 |
struct ImFontAtlasRect |
| 3794 |
{ |
| 3795 |
unsigned short x, y; |
| 3796 |
unsigned short w, h; |
| 3797 |
ImVec2 uv0, uv1; |
| 3798 |
|
| 3799 |
ImFontAtlasRect() { memset((void*)this, 0, sizeof(*this)); } |
| 3800 |
}; |
| 3801 |
|
| 3802 |
|
| 3803 |
enum ImFontAtlasFlags_ |
| 3804 |
{ |
| 3805 |
ImFontAtlasFlags_None = 0, |
| 3806 |
ImFontAtlasFlags_NoPowerOfTwoHeight = 1 << 0, |
| 3807 |
ImFontAtlasFlags_NoMouseCursors = 1 << 1, |
| 3808 |
ImFontAtlasFlags_NoBakedLines = 1 << 2, |
| 3809 |
}; |
| 3810 |
|
| 3811 |
|
| 3812 |
|
| 3813 |
|
| 3814 |
|
| 3815 |
|
| 3816 |
|
| 3817 |
|
| 3818 |
|
| 3819 |
|
| 3820 |
|
| 3821 |
|
| 3822 |
|
| 3823 |
|
| 3824 |
|
| 3825 |
|
| 3826 |
|
| 3827 |
|
| 3828 |
|
| 3829 |
|
| 3830 |
struct ImFontAtlas |
| 3831 |
{ |
| 3832 |
IMGUI_API ImFontAtlas(); |
| 3833 |
IMGUI_API ~ImFontAtlas(); |
| 3834 |
IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg); |
| 3835 |
IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL); |
| 3836 |
IMGUI_API ImFont* AddFontDefaultVector(const ImFontConfig* font_cfg = NULL); |
| 3837 |
IMGUI_API ImFont* AddFontDefaultBitmap(const ImFontConfig* font_cfg = NULL); |
| 3838 |
IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); |
| 3839 |
IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); |
| 3840 |
IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int compressed_font_data_size, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); |
| 3841 |
IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_base85, float size_pixels = 0.0f, const ImFontConfig* font_cfg = NULL, const ImWchar* glyph_ranges = NULL); |
| 3842 |
IMGUI_API void RemoveFont(ImFont* font); |
| 3843 |
IMGUI_API void CompactCache(); |
| 3844 |
IMGUI_API void SetFontLoader(const ImFontLoader* font_loader); |
| 3845 |
|
| 3846 |
|
| 3847 |
|
| 3848 |
|
| 3849 |
|
| 3850 |
IMGUI_API void Clear(); |
| 3851 |
IMGUI_API void ClearFonts(); |
| 3852 |
IMGUI_API void ClearInputData(); |
| 3853 |
IMGUI_API void ClearTexData(); |
| 3854 |
|
| 3855 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3856 |
|
| 3857 |
|
| 3858 |
|
| 3859 |
|
| 3860 |
|
| 3861 |
|
| 3862 |
|
| 3863 |
|
| 3864 |
IMGUI_API bool Build(); |
| 3865 |
IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); |
| 3866 |
IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel = NULL); |
| 3867 |
void SetTexID(ImTextureID id) { IM_ASSERT(TexRef._TexID == ImTextureID_Invalid); TexRef._TexData->TexID = id; } |
| 3868 |
void SetTexID(ImTextureRef id) { IM_ASSERT(TexRef._TexID == ImTextureID_Invalid && id._TexData == NULL); TexRef._TexData->TexID = id._TexID; } |
| 3869 |
bool IsBuilt() const { return Fonts.Size > 0 && TexIsBuilt; } |
| 3870 |
#endif |
| 3871 |
|
| 3872 |
|
| 3873 |
|
| 3874 |
|
| 3875 |
|
| 3876 |
|
| 3877 |
IMGUI_API const ImWchar* GetGlyphRangesDefault(); |
| 3878 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3879 |
|
| 3880 |
|
| 3881 |
|
| 3882 |
|
| 3883 |
IMGUI_API const ImWchar* GetGlyphRangesGreek(); |
| 3884 |
IMGUI_API const ImWchar* GetGlyphRangesKorean(); |
| 3885 |
IMGUI_API const ImWchar* GetGlyphRangesJapanese(); |
| 3886 |
IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); |
| 3887 |
IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon(); |
| 3888 |
IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); |
| 3889 |
IMGUI_API const ImWchar* GetGlyphRangesThai(); |
| 3890 |
IMGUI_API const ImWchar* GetGlyphRangesVietnamese(); |
| 3891 |
#endif |
| 3892 |
|
| 3893 |
|
| 3894 |
|
| 3895 |
|
| 3896 |
|
| 3897 |
|
| 3898 |
|
| 3899 |
|
| 3900 |
|
| 3901 |
|
| 3902 |
|
| 3903 |
|
| 3904 |
|
| 3905 |
|
| 3906 |
|
| 3907 |
|
| 3908 |
|
| 3909 |
|
| 3910 |
|
| 3911 |
|
| 3912 |
|
| 3913 |
|
| 3914 |
IMGUI_API ImFontAtlasRectId AddCustomRect(int width, int height, ImFontAtlasRect* out_r = NULL); |
| 3915 |
IMGUI_API void RemoveCustomRect(ImFontAtlasRectId id); |
| 3916 |
IMGUI_API bool GetCustomRect(ImFontAtlasRectId id, ImFontAtlasRect* out_r) const; |
| 3917 |
|
| 3918 |
|
| 3919 |
|
| 3920 |
|
| 3921 |
|
| 3922 |
|
| 3923 |
ImFontAtlasFlags Flags; |
| 3924 |
ImTextureFormat TexDesiredFormat; |
| 3925 |
int TexGlyphPadding; |
| 3926 |
int TexMinWidth; |
| 3927 |
int TexMinHeight; |
| 3928 |
int TexMaxWidth; |
| 3929 |
int TexMaxHeight; |
| 3930 |
void* UserData; |
| 3931 |
|
| 3932 |
|
| 3933 |
|
| 3934 |
|
| 3935 |
#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3936 |
ImTextureRef TexRef; |
| 3937 |
#else |
| 3938 |
union { ImTextureRef TexRef; ImTextureRef TexID; }; |
| 3939 |
#endif |
| 3940 |
ImTextureData* TexData; |
| 3941 |
|
| 3942 |
|
| 3943 |
ImVector<ImTextureData*> TexList; |
| 3944 |
bool Locked; |
| 3945 |
bool RendererHasTextures; |
| 3946 |
bool TexIsBuilt; |
| 3947 |
bool TexPixelsUseColors; |
| 3948 |
ImVec2 TexUvScale; |
| 3949 |
ImVec2 TexUvWhitePixel; |
| 3950 |
ImVector<ImFont*> Fonts; |
| 3951 |
ImVector<ImFontConfig> Sources; |
| 3952 |
ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]; |
| 3953 |
int TexNextUniqueID; |
| 3954 |
int FontNextUniqueID; |
| 3955 |
ImVector<ImDrawListSharedData*> DrawListSharedDatas; |
| 3956 |
ImFontAtlasBuilder* Builder; |
| 3957 |
const ImFontLoader* FontLoader; |
| 3958 |
const char* FontLoaderName; |
| 3959 |
void* FontLoaderData; |
| 3960 |
unsigned int FontLoaderFlags; |
| 3961 |
int RefCount; |
| 3962 |
ImGuiContext* OwnerContext; |
| 3963 |
|
| 3964 |
|
| 3965 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 3966 |
|
| 3967 |
ImFontAtlasRect TempRect; |
| 3968 |
inline ImFontAtlasRectId AddCustomRectRegular(int w, int h) { return AddCustomRect(w, h); } |
| 3969 |
inline const ImFontAtlasRect* GetCustomRectByIndex(ImFontAtlasRectId id) { return GetCustomRect(id, &TempRect) ? &TempRect : NULL; } |
| 3970 |
inline void CalcCustomRectUV(const ImFontAtlasRect* r, ImVec2* out_uv_min, ImVec2* out_uv_max) const { *out_uv_min = r->uv0; *out_uv_max = r->uv1; } |
| 3971 |
IMGUI_API ImFontAtlasRectId AddCustomRectFontGlyph(ImFont* font, ImWchar codepoint, int w, int h, float advance_x, const ImVec2& offset = ImVec2(0, 0)); |
| 3972 |
IMGUI_API ImFontAtlasRectId AddCustomRectFontGlyphForSize(ImFont* font, float font_size, ImWchar codepoint, int w, int h, float advance_x, const ImVec2& offset = ImVec2(0, 0)); |
| 3973 |
#endif |
| 3974 |
|
| 3975 |
|
| 3976 |
|
| 3977 |
|
| 3978 |
|
| 3979 |
}; |
| 3980 |
|
| 3981 |
|
| 3982 |
|
| 3983 |
struct ImFontBaked |
| 3984 |
{ |
| 3985 |
|
| 3986 |
ImVector<float> IndexAdvanceX; |
| 3987 |
float FallbackAdvanceX; |
| 3988 |
float Size; |
| 3989 |
float RasterizerDensity; |
| 3990 |
|
| 3991 |
|
| 3992 |
ImVector<ImU16> IndexLookup; |
| 3993 |
ImVector<ImFontGlyph> Glyphs; |
| 3994 |
int FallbackGlyphIndex; |
| 3995 |
|
| 3996 |
|
| 3997 |
float Ascent, Descent; |
| 3998 |
unsigned int MetricsTotalSurface:26; |
| 3999 |
unsigned int WantDestroy:1; |
| 4000 |
unsigned int LoadNoFallback:1; |
| 4001 |
unsigned int LoadNoRenderOnLayout:1; |
| 4002 |
int LastUsedFrame; |
| 4003 |
ImGuiID BakedId; |
| 4004 |
ImFont* OwnerFont; |
| 4005 |
void* FontLoaderDatas; |
| 4006 |
|
| 4007 |
|
| 4008 |
IMGUI_API ImFontBaked(); |
| 4009 |
IMGUI_API void ClearOutputData(); |
| 4010 |
IMGUI_API ImFontGlyph* FindGlyph(ImWchar c); |
| 4011 |
IMGUI_API ImFontGlyph* FindGlyphNoFallback(ImWchar c); |
| 4012 |
IMGUI_API float GetCharAdvance(ImWchar c); |
| 4013 |
IMGUI_API bool IsGlyphLoaded(ImWchar c); |
| 4014 |
}; |
| 4015 |
|
| 4016 |
|
| 4017 |
|
| 4018 |
enum ImFontFlags_ |
| 4019 |
{ |
| 4020 |
ImFontFlags_None = 0, |
| 4021 |
ImFontFlags_NoLoadError = 1 << 1, |
| 4022 |
ImFontFlags_NoLoadGlyphs = 1 << 2, |
| 4023 |
ImFontFlags_LockBakedSizes = 1 << 3, |
| 4024 |
ImFontFlags_ImplicitRefSize = 1 << 4, |
| 4025 |
}; |
| 4026 |
|
| 4027 |
|
| 4028 |
|
| 4029 |
|
| 4030 |
|
| 4031 |
|
| 4032 |
struct ImFont |
| 4033 |
{ |
| 4034 |
|
| 4035 |
ImFontBaked* LastBaked; |
| 4036 |
ImFontAtlas* OwnerAtlas; |
| 4037 |
ImFontFlags Flags; |
| 4038 |
float CurrentRasterizerDensity; |
| 4039 |
|
| 4040 |
|
| 4041 |
|
| 4042 |
ImGuiID FontId; |
| 4043 |
float LegacySize; |
| 4044 |
ImVector<ImFontConfig*> Sources; |
| 4045 |
ImWchar EllipsisChar; |
| 4046 |
ImWchar FallbackChar; |
| 4047 |
ImU8 Used8kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/8192/8]; |
| 4048 |
bool EllipsisAutoBake; |
| 4049 |
ImGuiStorage RemapPairs; |
| 4050 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 4051 |
float Scale; |
| 4052 |
#endif |
| 4053 |
|
| 4054 |
|
| 4055 |
IMGUI_API ImFont(); |
| 4056 |
IMGUI_API ~ImFont(); |
| 4057 |
IMGUI_API bool IsGlyphInFont(ImWchar c); |
| 4058 |
bool IsLoaded() const { return OwnerAtlas != NULL; } |
| 4059 |
const char* GetDebugName() const { return Sources.Size ? Sources[0]->Name : "<unknown>"; } |
| 4060 |
|
| 4061 |
|
| 4062 |
|
| 4063 |
|
| 4064 |
IMGUI_API ImFontBaked* GetFontBaked(float font_size, float density = -1.0f); |
| 4065 |
IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const char* text_begin, const char* text_end = NULL, const char** out_remaining = NULL); |
| 4066 |
IMGUI_API const char* CalcWordWrapPosition(float size, const char* text, const char* text_end, float wrap_width); |
| 4067 |
IMGUI_API void RenderChar(ImDrawList* draw_list, float size, const ImVec2& pos, ImU32 col, ImWchar c, const ImVec4* cpu_fine_clip = NULL); |
| 4068 |
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, ImDrawTextFlags flags = 0); |
| 4069 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 4070 |
inline const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_end, float wrap_width) { return CalcWordWrapPosition(LegacySize * scale, text, text_end, wrap_width); } |
| 4071 |
#endif |
| 4072 |
|
| 4073 |
|
| 4074 |
IMGUI_API void ClearOutputData(); |
| 4075 |
IMGUI_API void AddRemapChar(ImWchar from_codepoint, ImWchar to_codepoint); |
| 4076 |
IMGUI_API bool IsGlyphRangeUnused(unsigned int c_begin, unsigned int c_last); |
| 4077 |
}; |
| 4078 |
|
| 4079 |
|
| 4080 |
inline ImTextureID ImTextureRef::GetTexID() const |
| 4081 |
{ |
| 4082 |
IM_ASSERT(!(_TexData != NULL && _TexID != ImTextureID_Invalid)); |
| 4083 |
return _TexData ? _TexData->TexID : _TexID; |
| 4084 |
} |
| 4085 |
|
| 4086 |
|
| 4087 |
inline ImTextureID ImDrawCmd::GetTexID() const |
| 4088 |
{ |
| 4089 |
|
| 4090 |
|
| 4091 |
|
| 4092 |
|
| 4093 |
ImTextureID tex_id = TexRef._TexData ? TexRef._TexData->TexID : TexRef._TexID; |
| 4094 |
if (TexRef._TexData != NULL) |
| 4095 |
IM_ASSERT(tex_id != ImTextureID_Invalid && "ImDrawCmd is referring to ImTextureData that wasn't uploaded to graphics system. Backend must call ImTextureData::SetTexID() after handling ImTextureStatus_WantCreate request!"); |
| 4096 |
return tex_id; |
| 4097 |
} |
| 4098 |
|
| 4099 |
|
| 4100 |
|
| 4101 |
|
| 4102 |
|
| 4103 |
|
| 4104 |
enum ImGuiViewportFlags_ |
| 4105 |
{ |
| 4106 |
ImGuiViewportFlags_None = 0, |
| 4107 |
ImGuiViewportFlags_IsPlatformWindow = 1 << 0, |
| 4108 |
ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, |
| 4109 |
ImGuiViewportFlags_OwnedByApp = 1 << 2, |
| 4110 |
ImGuiViewportFlags_NoDecoration = 1 << 3, |
| 4111 |
ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, |
| 4112 |
ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, |
| 4113 |
ImGuiViewportFlags_NoFocusOnClick = 1 << 6, |
| 4114 |
ImGuiViewportFlags_NoInputs = 1 << 7, |
| 4115 |
ImGuiViewportFlags_NoRendererClear = 1 << 8, |
| 4116 |
ImGuiViewportFlags_NoAutoMerge = 1 << 9, |
| 4117 |
ImGuiViewportFlags_TopMost = 1 << 10, |
| 4118 |
ImGuiViewportFlags_CanHostOtherWindows = 1 << 11, |
| 4119 |
|
| 4120 |
|
| 4121 |
ImGuiViewportFlags_IsMinimized = 1 << 12, |
| 4122 |
ImGuiViewportFlags_IsFocused = 1 << 13, |
| 4123 |
}; |
| 4124 |
|
| 4125 |
|
| 4126 |
|
| 4127 |
|
| 4128 |
|
| 4129 |
|
| 4130 |
|
| 4131 |
|
| 4132 |
struct ImGuiViewport |
| 4133 |
{ |
| 4134 |
ImGuiID ID; |
| 4135 |
ImGuiViewportFlags Flags; |
| 4136 |
ImVec2 Pos; |
| 4137 |
ImVec2 Size; |
| 4138 |
ImVec2 FramebufferScale; |
| 4139 |
ImVec2 WorkPos; |
| 4140 |
ImVec2 WorkSize; |
| 4141 |
float DpiScale; |
| 4142 |
ImGuiID ParentViewportId; |
| 4143 |
ImGuiViewport* ParentViewport; |
| 4144 |
ImDrawData* DrawData; |
| 4145 |
|
| 4146 |
|
| 4147 |
|
| 4148 |
|
| 4149 |
|
| 4150 |
|
| 4151 |
void* RendererUserData; |
| 4152 |
void* PlatformUserData; |
| 4153 |
void* PlatformIconData; |
| 4154 |
void* PlatformHandle; |
| 4155 |
void* PlatformHandleRaw; |
| 4156 |
bool PlatformWindowCreated; |
| 4157 |
bool PlatformRequestMove; |
| 4158 |
bool PlatformRequestResize; |
| 4159 |
bool PlatformRequestClose; |
| 4160 |
|
| 4161 |
ImGuiViewport() { memset((void*)this, 0, sizeof(*this)); } |
| 4162 |
~ImGuiViewport() { IM_ASSERT(PlatformUserData == NULL && RendererUserData == NULL); } |
| 4163 |
|
| 4164 |
|
| 4165 |
ImVec2 GetCenter() const { return ImVec2(Pos.x + Size.x * 0.5f, Pos.y + Size.y * 0.5f); } |
| 4166 |
ImVec2 GetWorkCenter() const { return ImVec2(WorkPos.x + WorkSize.x * 0.5f, WorkPos.y + WorkSize.y * 0.5f); } |
| 4167 |
IMGUI_API const char* GetDebugName() const; |
| 4168 |
}; |
| 4169 |
|
| 4170 |
|
| 4171 |
|
| 4172 |
|
| 4173 |
|
| 4174 |
|
| 4175 |
|
| 4176 |
|
| 4177 |
|
| 4178 |
|
| 4179 |
|
| 4180 |
|
| 4181 |
|
| 4182 |
|
| 4183 |
|
| 4184 |
|
| 4185 |
|
| 4186 |
|
| 4187 |
|
| 4188 |
|
| 4189 |
|
| 4190 |
|
| 4191 |
|
| 4192 |
|
| 4193 |
|
| 4194 |
|
| 4195 |
|
| 4196 |
|
| 4197 |
|
| 4198 |
|
| 4199 |
|
| 4200 |
|
| 4201 |
|
| 4202 |
|
| 4203 |
|
| 4204 |
|
| 4205 |
|
| 4206 |
|
| 4207 |
|
| 4208 |
|
| 4209 |
|
| 4210 |
|
| 4211 |
|
| 4212 |
|
| 4213 |
|
| 4214 |
|
| 4215 |
|
| 4216 |
|
| 4217 |
|
| 4218 |
|
| 4219 |
|
| 4220 |
|
| 4221 |
struct ImGuiPlatformIO |
| 4222 |
{ |
| 4223 |
IMGUI_API ImGuiPlatformIO(); |
| 4224 |
|
| 4225 |
|
| 4226 |
|
| 4227 |
|
| 4228 |
|
| 4229 |
|
| 4230 |
|
| 4231 |
const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx); |
| 4232 |
void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text); |
| 4233 |
void* Platform_ClipboardUserData; |
| 4234 |
|
| 4235 |
|
| 4236 |
|
| 4237 |
bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path); |
| 4238 |
void* Platform_OpenInShellUserData; |
| 4239 |
|
| 4240 |
|
| 4241 |
|
| 4242 |
void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data); |
| 4243 |
void* Platform_ImeUserData; |
| 4244 |
|
| 4245 |
|
| 4246 |
|
| 4247 |
|
| 4248 |
ImWchar Platform_LocaleDecimalPoint; |
| 4249 |
|
| 4250 |
|
| 4251 |
|
| 4252 |
|
| 4253 |
|
| 4254 |
|
| 4255 |
int Renderer_TextureMaxWidth; |
| 4256 |
int Renderer_TextureMaxHeight; |
| 4257 |
|
| 4258 |
|
| 4259 |
void* Renderer_RenderState; |
| 4260 |
|
| 4261 |
|
| 4262 |
ImDrawCallback DrawCallback_ResetRenderState; |
| 4263 |
ImDrawCallback DrawCallback_SetSamplerLinear; |
| 4264 |
ImDrawCallback DrawCallback_SetSamplerNearest; |
| 4265 |
|
| 4266 |
|
| 4267 |
|
| 4268 |
|
| 4269 |
|
| 4270 |
|
| 4271 |
|
| 4272 |
|
| 4273 |
|
| 4274 |
|
| 4275 |
|
| 4276 |
|
| 4277 |
|
| 4278 |
|
| 4279 |
|
| 4280 |
|
| 4281 |
|
| 4282 |
|
| 4283 |
|
| 4284 |
void (*Platform_CreateWindow)(ImGuiViewport* vp); |
| 4285 |
void (*Platform_DestroyWindow)(ImGuiViewport* vp); |
| 4286 |
void (*Platform_ShowWindow)(ImGuiViewport* vp); |
| 4287 |
void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); |
| 4288 |
ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); |
| 4289 |
void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); |
| 4290 |
ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); |
| 4291 |
ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp); |
| 4292 |
void (*Platform_SetWindowFocus)(ImGuiViewport* vp); |
| 4293 |
bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); |
| 4294 |
bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); |
| 4295 |
void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); |
| 4296 |
void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); |
| 4297 |
void (*Platform_UpdateWindow)(ImGuiViewport* vp); |
| 4298 |
void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); |
| 4299 |
void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); |
| 4300 |
float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); |
| 4301 |
void (*Platform_OnChangedViewport)(ImGuiViewport* vp); |
| 4302 |
ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp); |
| 4303 |
int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); |
| 4304 |
|
| 4305 |
|
| 4306 |
void (*Renderer_CreateWindow)(ImGuiViewport* vp); |
| 4307 |
void (*Renderer_DestroyWindow)(ImGuiViewport* vp); |
| 4308 |
void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); |
| 4309 |
void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); |
| 4310 |
void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); |
| 4311 |
|
| 4312 |
|
| 4313 |
|
| 4314 |
|
| 4315 |
ImVector<ImGuiPlatformMonitor> Monitors; |
| 4316 |
|
| 4317 |
|
| 4318 |
|
| 4319 |
|
| 4320 |
|
| 4321 |
|
| 4322 |
|
| 4323 |
ImVector<ImTextureData*> Textures; |
| 4324 |
|
| 4325 |
|
| 4326 |
|
| 4327 |
ImVector<ImGuiViewport*> Viewports; |
| 4328 |
|
| 4329 |
|
| 4330 |
|
| 4331 |
|
| 4332 |
|
| 4333 |
IMGUI_API void ClearPlatformHandlers(); |
| 4334 |
IMGUI_API void ClearRendererHandlers(); |
| 4335 |
}; |
| 4336 |
|
| 4337 |
|
| 4338 |
|
| 4339 |
struct ImGuiPlatformMonitor |
| 4340 |
{ |
| 4341 |
ImVec2 MainPos, MainSize; |
| 4342 |
ImVec2 WorkPos, WorkSize; |
| 4343 |
float DpiScale; |
| 4344 |
void* PlatformHandle; |
| 4345 |
ImGuiPlatformMonitor() { MainPos = MainSize = WorkPos = WorkSize = ImVec2(0, 0); DpiScale = 1.0f; PlatformHandle = NULL; } |
| 4346 |
}; |
| 4347 |
|
| 4348 |
|
| 4349 |
struct ImGuiPlatformImeData |
| 4350 |
{ |
| 4351 |
bool WantVisible; |
| 4352 |
bool WantTextInput; |
| 4353 |
ImVec2 InputPos; |
| 4354 |
float InputLineHeight; |
| 4355 |
ImGuiID ViewportId; |
| 4356 |
|
| 4357 |
ImGuiPlatformImeData() { memset((void*)this, 0, sizeof(*this)); } |
| 4358 |
}; |
| 4359 |
|
| 4360 |
|
| 4361 |
|
| 4362 |
|
| 4363 |
|
| 4364 |
|
| 4365 |
|
| 4366 |
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS |
| 4367 |
namespace ImGui |
| 4368 |
{ |
| 4369 |
|
| 4370 |
inline void PushFont(ImFont* font) { PushFont(font, font ? font->LegacySize : 0.0f); } |
| 4371 |
IMGUI_API void SetWindowFontScale(float scale); |
| 4372 |
|
| 4373 |
IMGUI_API void Image(ImTextureRef tex_ref, const ImVec2& image_size, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImVec4& border_col); |
| 4374 |
|
| 4375 |
inline void PushButtonRepeat(bool repeat) { PushItemFlag(ImGuiItemFlags_ButtonRepeat, repeat); } |
| 4376 |
inline void PopButtonRepeat() { PopItemFlag(); } |
| 4377 |
inline void PushTabStop(bool tab_stop) { PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); } |
| 4378 |
inline void PopTabStop() { PopItemFlag(); } |
| 4379 |
|
| 4380 |
IMGUI_API ImVec2 GetContentRegionMax(); |
| 4381 |
IMGUI_API ImVec2 GetWindowContentRegionMin(); |
| 4382 |
IMGUI_API ImVec2 GetWindowContentRegionMax(); |
| 4383 |
|
| 4384 |
|
| 4385 |
|
| 4386 |
|
| 4387 |
|
| 4388 |
|
| 4389 |
|
| 4390 |
|
| 4391 |
|
| 4392 |
|
| 4393 |
|
| 4394 |
|
| 4395 |
|
| 4396 |
|
| 4397 |
|
| 4398 |
|
| 4399 |
|
| 4400 |
|
| 4401 |
|
| 4402 |
|
| 4403 |
|
| 4404 |
|
| 4405 |
|
| 4406 |
|
| 4407 |
|
| 4408 |
|
| 4409 |
|
| 4410 |
|
| 4411 |
|
| 4412 |
|
| 4413 |
|
| 4414 |
|
| 4415 |
|
| 4416 |
|
| 4417 |
|
| 4418 |
|
| 4419 |
|
| 4420 |
|
| 4421 |
|
| 4422 |
|
| 4423 |
|
| 4424 |
|
| 4425 |
|
| 4426 |
|
| 4427 |
|
| 4428 |
|
| 4429 |
|
| 4430 |
|
| 4431 |
|
| 4432 |
|
| 4433 |
|
| 4434 |
|
| 4435 |
|
| 4436 |
|
| 4437 |
|
| 4438 |
|
| 4439 |
|
| 4440 |
|
| 4441 |
|
| 4442 |
|
| 4443 |
|
| 4444 |
|
| 4445 |
|
| 4446 |
|
| 4447 |
|
| 4448 |
|
| 4449 |
|
| 4450 |
|
| 4451 |
|
| 4452 |
|
| 4453 |
|
| 4454 |
|
| 4455 |
|
| 4456 |
|
| 4457 |
|
| 4458 |
} |
| 4459 |
|
| 4460 |
#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-8) |
| 4461 |
|
| 4462 |
|
| 4463 |
|
| 4464 |
|
| 4465 |
|
| 4466 |
|
| 4467 |
typedef ImFontAtlasRect ImFontAtlasCustomRect; |
| 4468 |
|
| 4469 |
|
| 4470 |
|
| 4471 |
|
| 4472 |
|
| 4473 |
|
| 4474 |
|
| 4475 |
|
| 4476 |
|
| 4477 |
|
| 4478 |
|
| 4479 |
|
| 4480 |
|
| 4481 |
|
| 4482 |
|
| 4483 |
|
| 4484 |
|
| 4485 |
|
| 4486 |
|
| 4487 |
|
| 4488 |
|
| 4489 |
|
| 4490 |
|
| 4491 |
|
| 4492 |
|
| 4493 |
|
| 4494 |
|
| 4495 |
|
| 4496 |
|
| 4497 |
|
| 4498 |
|
| 4499 |
|
| 4500 |
|
| 4501 |
|
| 4502 |
|
| 4503 |
|
| 4504 |
|
| 4505 |
|
| 4506 |
#endif |
| 4507 |
|
| 4508 |
#define IM_ARRAYSIZE IM_COUNTOF |
| 4509 |
|
| 4510 |
|
| 4511 |
#ifdef IMGUI_DISABLE_METRICS_WINDOW |
| 4512 |
#error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. |
| 4513 |
#endif |
| 4514 |
|
| 4515 |
|
| 4516 |
|
| 4517 |
#if defined(__clang__) |
| 4518 |
#pragma clang diagnostic pop |
| 4519 |
#elif defined(__GNUC__) |
| 4520 |
#pragma GCC diagnostic pop |
| 4521 |
#endif |
| 4522 |
|
| 4523 |
#ifdef _MSC_VER |
| 4524 |
#pragma warning (pop) |
| 4525 |
#endif |
| 4526 |
|
| 4527 |
|
| 4528 |
|
| 4529 |
#ifdef IMGUI_INCLUDE_IMGUI_USER_H |
| 4530 |
#ifdef IMGUI_USER_H_FILENAME |
| 4531 |
#include IMGUI_USER_H_FILENAME |
| 4532 |
#else |
| 4533 |
#include "imgui_user.h" |
| 4534 |
#endif |
| 4535 |
#endif |
| 4536 |
|
| 4537 |
#endif |