You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#ifndef ImTextureID // ImTextureID [configurable type: override in imconfig.h]
174
+
typedefvoid* ImTextureID; // User data for rendering back-end to identify a texture. This is whatever to you want it to be! read the FAQ about ImTextureID for details.
175
+
#endif
176
+
#ifndef ImWchar // ImWchar [configurable type: override in imconfig.h]
177
+
#defineImWchar ImWchar16 // Storage for a single decoded character/code point, default to 16-bit. Set to ImWchar32 to support larger Unicode planes. Note that we generally support UTF-8 encoded string, this is storage for a decoded character.
178
+
#endif
179
+
typedefunsignedint ImGuiID; // A unique ID used by widgets, typically hashed from a stack of string.
180
+
typedefunsignedshort ImWchar16; // A single decoded U16 character/code point for keyboard input/display. We encode them as multi bytes UTF-8 when used in strings.
181
+
typedefunsignedint ImWchar32; // A single decoded U32 character/code point for keyboard input/display. To enable, use '#define ImWchar ImWchar32' in imconfig.h.
IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)
@@ -633,7 +637,7 @@ namespace ImGui
633
637
IMGUI_API voidLogText(constchar* fmt, ...) IM_FMTARGS(1); // pass text data straight to log (without being displayed)
634
638
635
639
// Drag and Drop
636
-
// [BETA API] API may evolve!
640
+
//- [BETA API] API may evolve!
637
641
IMGUI_API boolBeginDragDropSource(ImGuiDragDropFlags flags = 0); // call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource()
638
642
IMGUI_API boolSetDragDropPayload(constchar* type, constvoid* data, size_t sz, ImGuiCond cond = 0); // type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui.
639
643
IMGUI_API voidEndDragDropSource(); // only call EndDragDropSource() if BeginDragDropSource() returns true!
@@ -726,7 +730,8 @@ namespace ImGui
726
730
IMGUI_API voidSetMouseCursor(ImGuiMouseCursor cursor_type); // set desired cursor type
727
731
IMGUI_API voidCaptureMouseFromApp(bool want_capture_mouse_value = true); // attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse_value;" after the next NewFrame() call.
728
732
729
-
// Clipboard Utilities (also see the LogToClipboard() function to capture or output text data to the clipboard)
733
+
// Clipboard Utilities
734
+
// - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard.
730
735
IMGUI_API constchar* GetClipboardText();
731
736
IMGUI_API voidSetClipboardText(constchar* text);
732
737
@@ -738,6 +743,9 @@ namespace ImGui
738
743
IMGUI_API voidSaveIniSettingsToDisk(constchar* ini_filename); // this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext).
739
744
IMGUI_API constchar* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings.
740
745
746
+
// Debug Utilities
747
+
IMGUI_API boolDebugCheckVersionAndDataLayout(constchar* 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); // This is called by IMGUI_CHECKVERSION() macro.
748
+
741
749
// Memory Allocators
742
750
// - All those functions are not reliant on the current context.
743
751
// - If you reload the contents of imgui.cpp at runtime, you may need to call SetCurrentContext() + SetAllocatorFunctions() again because we use global storage for those.
@@ -1825,7 +1833,7 @@ struct ImColor
1825
1833
// Hold a series of drawing commands. The user provides a renderer for ImDrawData which essentially contains an array of ImDrawList.
//(to allow large meshes with 16-bit indices: set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset in the renderer back-end)
1863
-
//(to use 32-bit indices: override with '#define ImDrawIdx unsigned int' in imconfig.h)
1869
+
// Vertex index, default to 16-bit
1870
+
//To allow large meshes with 16-bit indices: set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset in the renderer back-end (recommended).
1871
+
//To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in imconfig.h.
0 commit comments