mirror of
https://github.com/cimgui/cimgui.git
synced 2025-11-30 21:51:40 +00:00
pull imgui 1.92.5wip for issue #9069
This commit is contained in:
84
cimgui.h
84
cimgui.h
@@ -1,5 +1,5 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.92.4" 19240 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.92.5 WIP" 19247 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//with imgui_freetype.h api
|
||||
//docking branch
|
||||
@@ -495,6 +495,7 @@ typedef enum {
|
||||
ImGuiDragDropFlags_AcceptBeforeDelivery = 1 << 10,
|
||||
ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 1 << 11,
|
||||
ImGuiDragDropFlags_AcceptNoPreviewTooltip = 1 << 12,
|
||||
ImGuiDragDropFlags_AcceptDrawAsHovered = 1 << 13,
|
||||
ImGuiDragDropFlags_AcceptPeekOnly = ImGuiDragDropFlags_AcceptBeforeDelivery | ImGuiDragDropFlags_AcceptNoDrawDefaultRect,
|
||||
}ImGuiDragDropFlags_;
|
||||
typedef enum {
|
||||
@@ -786,6 +787,7 @@ typedef enum {
|
||||
ImGuiCol_TextSelectedBg,
|
||||
ImGuiCol_TreeLines,
|
||||
ImGuiCol_DragDropTarget,
|
||||
ImGuiCol_DragDropTargetBg,
|
||||
ImGuiCol_UnsavedMarker,
|
||||
ImGuiCol_NavCursor,
|
||||
ImGuiCol_NavWindowingHighlight,
|
||||
@@ -1062,6 +1064,9 @@ struct ImGuiStyle
|
||||
ImGuiTreeNodeFlags TreeLinesFlags;
|
||||
float TreeLinesSize;
|
||||
float TreeLinesRounding;
|
||||
float DragDropTargetRounding;
|
||||
float DragDropTargetBorderSize;
|
||||
float DragDropTargetPadding;
|
||||
ImGuiDir ColorButtonPosition;
|
||||
ImVec2_c ButtonTextAlign;
|
||||
ImVec2_c SelectableTextAlign;
|
||||
@@ -1118,6 +1123,7 @@ struct ImGuiIO
|
||||
bool ConfigNavCursorVisibleAuto;
|
||||
bool ConfigNavCursorVisibleAlways;
|
||||
bool ConfigDockingNoSplit;
|
||||
bool ConfigDockingNoDockingOver;
|
||||
bool ConfigDockingWithShift;
|
||||
bool ConfigDockingAlwaysTabBar;
|
||||
bool ConfigDockingTransparentPayload;
|
||||
@@ -1331,6 +1337,7 @@ typedef enum {
|
||||
ImGuiMultiSelectFlags_SelectOnClick = 1 << 13,
|
||||
ImGuiMultiSelectFlags_SelectOnClickRelease = 1 << 14,
|
||||
ImGuiMultiSelectFlags_NavWrapX = 1 << 16,
|
||||
ImGuiMultiSelectFlags_NoSelectOnRightClick = 1 << 17,
|
||||
}ImGuiMultiSelectFlags_;
|
||||
typedef struct ImVector_ImGuiSelectionRequest {int Size;int Capacity;ImGuiSelectionRequest* Data;} ImVector_ImGuiSelectionRequest;
|
||||
|
||||
@@ -1639,7 +1646,7 @@ struct ImFontBaked
|
||||
unsigned int LoadNoRenderOnLayout:1;
|
||||
int LastUsedFrame;
|
||||
ImGuiID BakedId;
|
||||
ImFont* ContainerFont;
|
||||
ImFont* OwnerFont;
|
||||
void* FontLoaderDatas;
|
||||
};
|
||||
typedef enum {
|
||||
@@ -1653,7 +1660,7 @@ typedef struct ImVector_ImFontConfigPtr {int Size;int Capacity;ImFontConfig** Da
|
||||
struct ImFont
|
||||
{
|
||||
ImFontBaked* LastBaked;
|
||||
ImFontAtlas* ContainerAtlas;
|
||||
ImFontAtlas* OwnerAtlas;
|
||||
ImFontFlags Flags;
|
||||
float CurrentRasterizerDensity;
|
||||
ImGuiID FontId;
|
||||
@@ -1836,6 +1843,7 @@ typedef int ImGuiSeparatorFlags;
|
||||
typedef int ImGuiTextFlags;
|
||||
typedef int ImGuiTooltipFlags;
|
||||
typedef int ImGuiTypingSelectFlags;
|
||||
typedef int ImGuiWindowBgClickFlags;
|
||||
typedef int ImGuiWindowRefreshFlags;
|
||||
typedef ImS16 ImGuiTableColumnIdx;
|
||||
typedef ImU16 ImGuiTableDrawChannelIdx;
|
||||
@@ -2086,6 +2094,7 @@ struct ImGuiGroupData
|
||||
ImVec2_c BackupCurrLineSize;
|
||||
float BackupCurrLineTextBaseOffset;
|
||||
ImGuiID BackupActiveIdIsAlive;
|
||||
bool BackupActiveIdHasBeenEditedThisFrame;
|
||||
bool BackupDeactivatedIdIsAlive;
|
||||
bool BackupHoveredIdIsAlive;
|
||||
bool BackupIsSameLine;
|
||||
@@ -2140,6 +2149,10 @@ typedef enum {
|
||||
ImGuiWindowRefreshFlags_RefreshOnHover = 1 << 1,
|
||||
ImGuiWindowRefreshFlags_RefreshOnFocus = 1 << 2,
|
||||
}ImGuiWindowRefreshFlags_;
|
||||
typedef enum {
|
||||
ImGuiWindowBgClickFlags_None = 0,
|
||||
ImGuiWindowBgClickFlags_Move = 1 << 0,
|
||||
}ImGuiWindowBgClickFlags_;
|
||||
typedef enum {
|
||||
ImGuiNextWindowDataFlags_None = 0,
|
||||
ImGuiNextWindowDataFlags_HasPos = 1 << 0,
|
||||
@@ -2689,6 +2702,7 @@ typedef enum {
|
||||
ImGuiWindowDockStyleCol_TabDimmed,
|
||||
ImGuiWindowDockStyleCol_TabDimmedSelected,
|
||||
ImGuiWindowDockStyleCol_TabDimmedSelectedOverline,
|
||||
ImGuiWindowDockStyleCol_UnsavedMarker,
|
||||
ImGuiWindowDockStyleCol_COUNT
|
||||
}ImGuiWindowDockStyleCol;
|
||||
struct ImGuiWindowDockStyle
|
||||
@@ -2842,21 +2856,26 @@ struct ImGuiStackLevelInfo
|
||||
ImS8 DataType;
|
||||
int DescOffset;
|
||||
};
|
||||
typedef struct ImGuiIDStackTool ImGuiIDStackTool;
|
||||
typedef struct ImGuiDebugItemPathQuery ImGuiDebugItemPathQuery;
|
||||
typedef struct ImVector_ImGuiStackLevelInfo {int Size;int Capacity;ImGuiStackLevelInfo* Data;} ImVector_ImGuiStackLevelInfo;
|
||||
|
||||
struct ImGuiDebugItemPathQuery
|
||||
{
|
||||
ImGuiID MainID;
|
||||
bool Active;
|
||||
bool Complete;
|
||||
ImS8 Step;
|
||||
ImVector_ImGuiStackLevelInfo Results;
|
||||
ImGuiTextBuffer ResultsDescBuf;
|
||||
ImGuiTextBuffer ResultPathBuf;
|
||||
};
|
||||
typedef struct ImGuiIDStackTool ImGuiIDStackTool;
|
||||
struct ImGuiIDStackTool
|
||||
{
|
||||
int LastActiveFrame;
|
||||
int StackLevel;
|
||||
ImGuiID QueryMainId;
|
||||
ImVector_ImGuiStackLevelInfo Results;
|
||||
bool QueryHookActive;
|
||||
bool OptHexEncodeNonAsciiChars;
|
||||
bool OptCopyToClipboardOnCtrlC;
|
||||
int LastActiveFrame;
|
||||
float CopyToClipboardLastTime;
|
||||
ImGuiTextBuffer ResultPathsBuf;
|
||||
ImGuiTextBuffer ResultTempBuf;
|
||||
};
|
||||
typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook);
|
||||
typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType;
|
||||
@@ -2929,6 +2948,15 @@ typedef struct ImVector_ImGuiContextHook {int Size;int Capacity;ImGuiContextHook
|
||||
struct ImGuiContext
|
||||
{
|
||||
bool Initialized;
|
||||
bool WithinFrameScope;
|
||||
bool WithinFrameScopeWithImplicitWindow;
|
||||
bool TestEngineHookItems;
|
||||
int FrameCount;
|
||||
int FrameCountEnded;
|
||||
int FrameCountPlatformEnded;
|
||||
int FrameCountRendered;
|
||||
double Time;
|
||||
char ContextName[16];
|
||||
ImGuiIO IO;
|
||||
ImGuiPlatformIO PlatformIO;
|
||||
ImGuiStyle Style;
|
||||
@@ -2943,18 +2971,8 @@ struct ImGuiContext
|
||||
float FontRasterizerDensity;
|
||||
float CurrentDpiScale;
|
||||
ImDrawListSharedData DrawListSharedData;
|
||||
double Time;
|
||||
int FrameCount;
|
||||
int FrameCountEnded;
|
||||
int FrameCountPlatformEnded;
|
||||
int FrameCountRendered;
|
||||
ImGuiID WithinEndChildID;
|
||||
bool WithinFrameScope;
|
||||
bool WithinFrameScopeWithImplicitWindow;
|
||||
bool GcCompactAll;
|
||||
bool TestEngineHookItems;
|
||||
void* TestEngine;
|
||||
char ContextName[16];
|
||||
ImVector_ImGuiInputEvent InputEventsQueue;
|
||||
ImVector_ImGuiInputEvent InputEventsTrail;
|
||||
ImGuiMouseSource InputEventsNextMouseSource;
|
||||
@@ -2999,11 +3017,11 @@ struct ImGuiContext
|
||||
bool ActiveIdHasBeenEditedBefore;
|
||||
bool ActiveIdHasBeenEditedThisFrame;
|
||||
bool ActiveIdFromShortcut;
|
||||
ImS8 ActiveIdMouseButton;
|
||||
ImGuiID ActiveIdDisabledId;
|
||||
int ActiveIdMouseButton : 8;
|
||||
ImVec2_c ActiveIdClickOffset;
|
||||
ImGuiWindow* ActiveIdWindow;
|
||||
ImGuiInputSource ActiveIdSource;
|
||||
ImGuiWindow* ActiveIdWindow;
|
||||
ImGuiID ActiveIdPreviousFrame;
|
||||
ImGuiDeactivatedItemData DeactivatedItemData;
|
||||
ImGuiDataTypeStorage ActiveIdValueOnActivation;
|
||||
@@ -3025,6 +3043,7 @@ struct ImGuiContext
|
||||
ImGuiLastItemData LastItemData;
|
||||
ImGuiNextWindowData NextWindowData;
|
||||
bool DebugShowGroupRects;
|
||||
bool GcCompactAll;
|
||||
ImGuiCol DebugFlashStyleColorIdx;
|
||||
ImVector_ImGuiColorMod ColorStack;
|
||||
ImVector_ImGuiStyleMod StyleVarStack;
|
||||
@@ -3118,7 +3137,8 @@ struct ImGuiContext
|
||||
ImRect_c DragDropTargetClipRect;
|
||||
ImGuiID DragDropTargetId;
|
||||
ImGuiID DragDropTargetFullViewport;
|
||||
ImGuiDragDropFlags DragDropAcceptFlags;
|
||||
ImGuiDragDropFlags DragDropAcceptFlagsCurr;
|
||||
ImGuiDragDropFlags DragDropAcceptFlagsPrev;
|
||||
float DragDropAcceptIdCurrRectSurface;
|
||||
ImGuiID DragDropAcceptIdCurr;
|
||||
ImGuiID DragDropAcceptIdPrev;
|
||||
@@ -3202,6 +3222,7 @@ struct ImGuiContext
|
||||
ImGuiID HookIdNext;
|
||||
const char* LocalizationTable[ImGuiLocKey_COUNT];
|
||||
bool LogEnabled;
|
||||
bool LogLineFirstItem;
|
||||
ImGuiLogFlags LogFlags;
|
||||
ImGuiWindow* LogWindow;
|
||||
ImFileHandle LogFile;
|
||||
@@ -3209,7 +3230,6 @@ struct ImGuiContext
|
||||
const char* LogNextPrefix;
|
||||
const char* LogNextSuffix;
|
||||
float LogLinePosY;
|
||||
bool LogLineFirstItem;
|
||||
int LogDepthRef;
|
||||
int LogDepthToExpand;
|
||||
int LogDepthToExpandDefault;
|
||||
@@ -3237,6 +3257,7 @@ struct ImGuiContext
|
||||
float DebugFlashStyleColorTime;
|
||||
ImVec4_c DebugFlashStyleColorBackup;
|
||||
ImGuiMetricsConfig DebugMetricsConfig;
|
||||
ImGuiDebugItemPathQuery DebugItemPathQuery;
|
||||
ImGuiIDStackTool DebugIDStackTool;
|
||||
ImGuiDebugAllocInfo DebugAllocInfo;
|
||||
ImGuiDockNode* DebugHoveredDockNode;
|
||||
@@ -3356,13 +3377,14 @@ struct ImGuiWindow
|
||||
short BeginOrderWithinParent;
|
||||
short BeginOrderWithinContext;
|
||||
short FocusOrder;
|
||||
ImGuiDir AutoPosLastDirection;
|
||||
ImS8 AutoFitFramesX, AutoFitFramesY;
|
||||
bool AutoFitOnlyGrows;
|
||||
ImGuiDir AutoPosLastDirection;
|
||||
ImS8 HiddenFramesCanSkipItems;
|
||||
ImS8 HiddenFramesCannotSkipItems;
|
||||
ImS8 HiddenFramesForRenderOnly;
|
||||
ImS8 DisableInputsFrames;
|
||||
ImGuiWindowBgClickFlags BgClickFlags : 8;
|
||||
ImGuiCond SetWindowPosAllowFlags : 8;
|
||||
ImGuiCond SetWindowSizeAllowFlags : 8;
|
||||
ImGuiCond SetWindowCollapsedAllowFlags : 8;
|
||||
@@ -3684,6 +3706,7 @@ typedef struct ImVector_ImGuiTableHeaderData {int Size;int Capacity;ImGuiTableHe
|
||||
|
||||
struct ImGuiTableTempData
|
||||
{
|
||||
ImGuiID WindowID;
|
||||
int TableIndex;
|
||||
float LastTimeActive;
|
||||
float AngledHeadersExtraWidth;
|
||||
@@ -4398,7 +4421,7 @@ CIMGUI_API void igMemFree(void* ptr);
|
||||
CIMGUI_API void igUpdatePlatformWindows(void);
|
||||
CIMGUI_API void igRenderPlatformWindowsDefault(void* platform_render_arg,void* renderer_render_arg);
|
||||
CIMGUI_API void igDestroyPlatformWindows(void);
|
||||
CIMGUI_API ImGuiViewport* igFindViewportByID(ImGuiID id);
|
||||
CIMGUI_API ImGuiViewport* igFindViewportByID(ImGuiID viewport_id);
|
||||
CIMGUI_API ImGuiViewport* igFindViewportByPlatformHandle(void* platform_handle);
|
||||
CIMGUI_API ImGuiTableSortSpecs* ImGuiTableSortSpecs_ImGuiTableSortSpecs(void);
|
||||
CIMGUI_API void ImGuiTableSortSpecs_destroy(ImGuiTableSortSpecs* self);
|
||||
@@ -4727,7 +4750,8 @@ CIMGUI_API int igImTextStrFromUtf8(ImWchar* out_buf,int out_buf_size,const char*
|
||||
CIMGUI_API int igImTextCountCharsFromUtf8(const char* in_text,const char* in_text_end);
|
||||
CIMGUI_API int igImTextCountUtf8BytesFromChar(const char* in_text,const char* in_text_end);
|
||||
CIMGUI_API int igImTextCountUtf8BytesFromStr(const ImWchar* in_text,const ImWchar* in_text_end);
|
||||
CIMGUI_API const char* igImTextFindPreviousUtf8Codepoint(const char* in_text_start,const char* in_text_curr);
|
||||
CIMGUI_API const char* igImTextFindPreviousUtf8Codepoint(const char* in_text_start,const char* in_p);
|
||||
CIMGUI_API const char* igImTextFindValidUtf8CodepointEnd(const char* in_text_start,const char* in_text_end,const char* in_p);
|
||||
CIMGUI_API int igImTextCountLines(const char* in_text,const char* in_text_end);
|
||||
CIMGUI_API ImVec2_c igImFontCalcTextSizeEx(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2_c* out_offset,ImDrawTextFlags flags);
|
||||
CIMGUI_API const char* igImFontCalcWordWrapPositionEx(ImFont* font,float size,const char* text,const char* text_end,float wrap_width,ImDrawTextFlags flags);
|
||||
@@ -4960,6 +4984,8 @@ CIMGUI_API ImGuiDebugAllocInfo* ImGuiDebugAllocInfo_ImGuiDebugAllocInfo(void);
|
||||
CIMGUI_API void ImGuiDebugAllocInfo_destroy(ImGuiDebugAllocInfo* self);
|
||||
CIMGUI_API ImGuiStackLevelInfo* ImGuiStackLevelInfo_ImGuiStackLevelInfo(void);
|
||||
CIMGUI_API void ImGuiStackLevelInfo_destroy(ImGuiStackLevelInfo* self);
|
||||
CIMGUI_API ImGuiDebugItemPathQuery* ImGuiDebugItemPathQuery_ImGuiDebugItemPathQuery(void);
|
||||
CIMGUI_API void ImGuiDebugItemPathQuery_destroy(ImGuiDebugItemPathQuery* self);
|
||||
CIMGUI_API ImGuiIDStackTool* ImGuiIDStackTool_ImGuiIDStackTool(void);
|
||||
CIMGUI_API void ImGuiIDStackTool_destroy(ImGuiIDStackTool* self);
|
||||
CIMGUI_API ImGuiContextHook* ImGuiContextHook_ImGuiContextHook(void);
|
||||
@@ -5003,6 +5029,7 @@ CIMGUI_API void igUpdateWindowParentAndRootLinks(ImGuiWindow* window,ImGuiWindow
|
||||
CIMGUI_API void igUpdateWindowSkipRefresh(ImGuiWindow* window);
|
||||
CIMGUI_API ImVec2_c igCalcWindowNextAutoFitSize(ImGuiWindow* window);
|
||||
CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy);
|
||||
CIMGUI_API bool igIsWindowInBeginStack(ImGuiWindow* window);
|
||||
CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window,ImGuiWindow* potential_parent);
|
||||
CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above,ImGuiWindow* potential_below);
|
||||
CIMGUI_API bool igIsWindowNavFocusable(ImGuiWindow* window);
|
||||
@@ -5475,6 +5502,7 @@ CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igImFontAtlasBuildDestroy(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igImFontAtlasBuildMain(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igImFontAtlasBuildSetupFontLoader(ImFontAtlas* atlas,const ImFontLoader* font_loader);
|
||||
CIMGUI_API void igImFontAtlasBuildNotifySetFont(ImFontAtlas* atlas,ImFont* old_font,ImFont* new_font);
|
||||
CIMGUI_API void igImFontAtlasBuildUpdatePointers(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igImFontAtlasBuildRenderBitmapFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char);
|
||||
CIMGUI_API void igImFontAtlasBuildClear(ImFontAtlas* atlas);
|
||||
|
||||
Reference in New Issue
Block a user