mirror of
https://github.com/cimgui/cimgui.git
synced 2025-11-30 21:51:40 +00:00
Merge branch 'docking_inter' for 1.92.5
This commit is contained in:
78
cimgui.h
78
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" 19250 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//with imgui_freetype.h api
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
@@ -468,6 +468,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 {
|
||||
@@ -751,6 +752,7 @@ typedef enum {
|
||||
ImGuiCol_TextSelectedBg,
|
||||
ImGuiCol_TreeLines,
|
||||
ImGuiCol_DragDropTarget,
|
||||
ImGuiCol_DragDropTargetBg,
|
||||
ImGuiCol_UnsavedMarker,
|
||||
ImGuiCol_NavCursor,
|
||||
ImGuiCol_NavWindowingHighlight,
|
||||
@@ -1026,6 +1028,9 @@ struct ImGuiStyle
|
||||
ImGuiTreeNodeFlags TreeLinesFlags;
|
||||
float TreeLinesSize;
|
||||
float TreeLinesRounding;
|
||||
float DragDropTargetRounding;
|
||||
float DragDropTargetBorderSize;
|
||||
float DragDropTargetPadding;
|
||||
ImGuiDir ColorButtonPosition;
|
||||
ImVec2_c ButtonTextAlign;
|
||||
ImVec2_c SelectableTextAlign;
|
||||
@@ -1268,6 +1273,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;
|
||||
|
||||
@@ -1576,7 +1582,7 @@ struct ImFontBaked
|
||||
unsigned int LoadNoRenderOnLayout:1;
|
||||
int LastUsedFrame;
|
||||
ImGuiID BakedId;
|
||||
ImFont* ContainerFont;
|
||||
ImFont* OwnerFont;
|
||||
void* FontLoaderDatas;
|
||||
};
|
||||
typedef enum {
|
||||
@@ -1590,7 +1596,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;
|
||||
@@ -1708,6 +1714,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;
|
||||
@@ -1958,6 +1965,7 @@ struct ImGuiGroupData
|
||||
ImVec2_c BackupCurrLineSize;
|
||||
float BackupCurrLineTextBaseOffset;
|
||||
ImGuiID BackupActiveIdIsAlive;
|
||||
bool BackupActiveIdHasBeenEditedThisFrame;
|
||||
bool BackupDeactivatedIdIsAlive;
|
||||
bool BackupHoveredIdIsAlive;
|
||||
bool BackupIsSameLine;
|
||||
@@ -2012,6 +2020,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,
|
||||
@@ -2573,21 +2585,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;
|
||||
@@ -2662,6 +2679,14 @@ typedef struct ImVector_ImGuiContextHook {int Size;int Capacity;ImGuiContextHook
|
||||
struct ImGuiContext
|
||||
{
|
||||
bool Initialized;
|
||||
bool WithinFrameScope;
|
||||
bool WithinFrameScopeWithImplicitWindow;
|
||||
bool TestEngineHookItems;
|
||||
int FrameCount;
|
||||
int FrameCountEnded;
|
||||
int FrameCountRendered;
|
||||
double Time;
|
||||
char ContextName[16];
|
||||
ImGuiIO IO;
|
||||
ImGuiPlatformIO PlatformIO;
|
||||
ImGuiStyle Style;
|
||||
@@ -2674,17 +2699,8 @@ struct ImGuiContext
|
||||
float FontRasterizerDensity;
|
||||
float CurrentDpiScale;
|
||||
ImDrawListSharedData DrawListSharedData;
|
||||
double Time;
|
||||
int FrameCount;
|
||||
int FrameCountEnded;
|
||||
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;
|
||||
@@ -2729,11 +2745,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;
|
||||
@@ -2755,6 +2771,7 @@ struct ImGuiContext
|
||||
ImGuiLastItemData LastItemData;
|
||||
ImGuiNextWindowData NextWindowData;
|
||||
bool DebugShowGroupRects;
|
||||
bool GcCompactAll;
|
||||
ImGuiCol DebugFlashStyleColorIdx;
|
||||
ImVector_ImGuiColorMod ColorStack;
|
||||
ImVector_ImGuiStyleMod StyleVarStack;
|
||||
@@ -2839,7 +2856,8 @@ struct ImGuiContext
|
||||
ImRect_c DragDropTargetClipRect;
|
||||
ImGuiID DragDropTargetId;
|
||||
ImGuiID DragDropTargetFullViewport;
|
||||
ImGuiDragDropFlags DragDropAcceptFlags;
|
||||
ImGuiDragDropFlags DragDropAcceptFlagsCurr;
|
||||
ImGuiDragDropFlags DragDropAcceptFlagsPrev;
|
||||
float DragDropAcceptIdCurrRectSurface;
|
||||
ImGuiID DragDropAcceptIdCurr;
|
||||
ImGuiID DragDropAcceptIdPrev;
|
||||
@@ -2921,6 +2939,7 @@ struct ImGuiContext
|
||||
ImGuiID HookIdNext;
|
||||
const char* LocalizationTable[ImGuiLocKey_COUNT];
|
||||
bool LogEnabled;
|
||||
bool LogLineFirstItem;
|
||||
ImGuiLogFlags LogFlags;
|
||||
ImGuiWindow* LogWindow;
|
||||
ImFileHandle LogFile;
|
||||
@@ -2928,7 +2947,6 @@ struct ImGuiContext
|
||||
const char* LogNextPrefix;
|
||||
const char* LogNextSuffix;
|
||||
float LogLinePosY;
|
||||
bool LogLineFirstItem;
|
||||
int LogDepthRef;
|
||||
int LogDepthToExpand;
|
||||
int LogDepthToExpandDefault;
|
||||
@@ -2956,6 +2974,7 @@ struct ImGuiContext
|
||||
float DebugFlashStyleColorTime;
|
||||
ImVec4_c DebugFlashStyleColorBackup;
|
||||
ImGuiMetricsConfig DebugMetricsConfig;
|
||||
ImGuiDebugItemPathQuery DebugItemPathQuery;
|
||||
ImGuiIDStackTool DebugIDStackTool;
|
||||
ImGuiDebugAllocInfo DebugAllocInfo;
|
||||
float FramerateSecPerFrame[60];
|
||||
@@ -3066,13 +3085,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;
|
||||
@@ -3380,6 +3400,7 @@ typedef struct ImVector_ImGuiTableHeaderData {int Size;int Capacity;ImGuiTableHe
|
||||
|
||||
struct ImGuiTableTempData
|
||||
{
|
||||
ImGuiID WindowID;
|
||||
int TableIndex;
|
||||
float LastTimeActive;
|
||||
float AngledHeadersExtraWidth;
|
||||
@@ -4397,7 +4418,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);
|
||||
@@ -4613,6 +4635,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);
|
||||
@@ -4656,6 +4680,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);
|
||||
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);
|
||||
@@ -5076,6 +5101,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