mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
pull imgui 1.91.3 docking and generate
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.91.2" 19120 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.91.3" 19130 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//docking branch
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
@@ -91,6 +91,7 @@ typedef struct ImGuiDockContext ImGuiDockContext;
|
||||
typedef struct ImGuiDockRequest ImGuiDockRequest;
|
||||
typedef struct ImGuiDockNode ImGuiDockNode;
|
||||
typedef struct ImGuiDockNodeSettings ImGuiDockNodeSettings;
|
||||
typedef struct ImGuiErrorRecoveryState ImGuiErrorRecoveryState;
|
||||
typedef struct ImGuiGroupData ImGuiGroupData;
|
||||
typedef struct ImGuiInputTextState ImGuiInputTextState;
|
||||
typedef struct ImGuiInputTextDeactivateData ImGuiInputTextDeactivateData;
|
||||
@@ -107,7 +108,6 @@ typedef struct ImGuiOldColumnData ImGuiOldColumnData;
|
||||
typedef struct ImGuiOldColumns ImGuiOldColumns;
|
||||
typedef struct ImGuiPopupData ImGuiPopupData;
|
||||
typedef struct ImGuiSettingsHandler ImGuiSettingsHandler;
|
||||
typedef struct ImGuiStackSizes ImGuiStackSizes;
|
||||
typedef struct ImGuiStyleMod ImGuiStyleMod;
|
||||
typedef struct ImGuiTabBar ImGuiTabBar;
|
||||
typedef struct ImGuiTabItem ImGuiTabItem;
|
||||
@@ -821,11 +821,13 @@ typedef enum {
|
||||
}ImGuiColorEditFlags_;
|
||||
typedef enum {
|
||||
ImGuiSliderFlags_None = 0,
|
||||
ImGuiSliderFlags_AlwaysClamp = 1 << 4,
|
||||
ImGuiSliderFlags_Logarithmic = 1 << 5,
|
||||
ImGuiSliderFlags_NoRoundToFormat = 1 << 6,
|
||||
ImGuiSliderFlags_NoInput = 1 << 7,
|
||||
ImGuiSliderFlags_WrapAround = 1 << 8,
|
||||
ImGuiSliderFlags_ClampOnInput = 1 << 9,
|
||||
ImGuiSliderFlags_ClampZeroRange = 1 << 10,
|
||||
ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange,
|
||||
ImGuiSliderFlags_InvalidMask_ = 0x7000000F,
|
||||
}ImGuiSliderFlags_;
|
||||
typedef enum {
|
||||
@@ -1050,12 +1052,17 @@ struct ImGuiIO
|
||||
bool ConfigDragClickToInputText;
|
||||
bool ConfigWindowsResizeFromEdges;
|
||||
bool ConfigWindowsMoveFromTitleBarOnly;
|
||||
bool ConfigScrollbarScrollByPage;
|
||||
float ConfigMemoryCompactTimer;
|
||||
float MouseDoubleClickTime;
|
||||
float MouseDoubleClickMaxDist;
|
||||
float MouseDragThreshold;
|
||||
float KeyRepeatDelay;
|
||||
float KeyRepeatRate;
|
||||
bool ConfigErrorRecovery;
|
||||
bool ConfigErrorRecoveryEnableAssert;
|
||||
bool ConfigErrorRecoveryEnableDebugLog;
|
||||
bool ConfigErrorRecoveryEnableTooltip;
|
||||
bool ConfigDebugIsDebuggerPresent;
|
||||
bool ConfigDebugHighlightIdConflicts;
|
||||
bool ConfigDebugBeginReturnValueOnce;
|
||||
@@ -1593,6 +1600,7 @@ struct ImGuiDockContext;
|
||||
struct ImGuiDockRequest;
|
||||
struct ImGuiDockNode;
|
||||
struct ImGuiDockNodeSettings;
|
||||
struct ImGuiErrorRecoveryState;
|
||||
struct ImGuiGroupData;
|
||||
struct ImGuiInputTextState;
|
||||
struct ImGuiInputTextDeactivateData;
|
||||
@@ -1609,7 +1617,6 @@ struct ImGuiOldColumnData;
|
||||
struct ImGuiOldColumns;
|
||||
struct ImGuiPopupData;
|
||||
struct ImGuiSettingsHandler;
|
||||
struct ImGuiStackSizes;
|
||||
struct ImGuiStyleMod;
|
||||
struct ImGuiTabBar;
|
||||
struct ImGuiTabItem;
|
||||
@@ -1644,7 +1651,6 @@ typedef int ImGuiTextFlags;
|
||||
typedef int ImGuiTooltipFlags;
|
||||
typedef int ImGuiTypingSelectFlags;
|
||||
typedef int ImGuiWindowRefreshFlags;
|
||||
typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...);
|
||||
extern ImGuiContext* GImGui;
|
||||
typedef FILE* ImFileHandle;
|
||||
typedef struct ImVec1 ImVec1;
|
||||
@@ -1999,9 +2005,11 @@ struct ImGuiTreeNodeStackData
|
||||
ImGuiItemFlags InFlags;
|
||||
ImRect NavRect;
|
||||
};
|
||||
struct ImGuiStackSizes
|
||||
struct ImGuiErrorRecoveryState
|
||||
{
|
||||
short SizeOfWindowStack;
|
||||
short SizeOfIDStack;
|
||||
short SizeOfTreeStack;
|
||||
short SizeOfColorStack;
|
||||
short SizeOfStyleVarStack;
|
||||
short SizeOfFontStack;
|
||||
@@ -2016,7 +2024,7 @@ struct ImGuiWindowStackData
|
||||
{
|
||||
ImGuiWindow* Window;
|
||||
ImGuiLastItemData ParentLastItemDataBackup;
|
||||
ImGuiStackSizes StackSizesOnBegin;
|
||||
ImGuiErrorRecoveryState StackSizesInBegin;
|
||||
bool DisabledOverrideReenable;
|
||||
};
|
||||
typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem;
|
||||
@@ -2543,19 +2551,21 @@ struct ImGuiLocEntry
|
||||
ImGuiLocKey Key;
|
||||
const char* Text;
|
||||
};
|
||||
typedef void (*ImGuiErrorCallback)(ImGuiContext* ctx, void* user_data, const char* msg);
|
||||
typedef enum {
|
||||
ImGuiDebugLogFlags_None = 0,
|
||||
ImGuiDebugLogFlags_EventActiveId = 1 << 0,
|
||||
ImGuiDebugLogFlags_EventFocus = 1 << 1,
|
||||
ImGuiDebugLogFlags_EventPopup = 1 << 2,
|
||||
ImGuiDebugLogFlags_EventNav = 1 << 3,
|
||||
ImGuiDebugLogFlags_EventClipper = 1 << 4,
|
||||
ImGuiDebugLogFlags_EventSelection = 1 << 5,
|
||||
ImGuiDebugLogFlags_EventIO = 1 << 6,
|
||||
ImGuiDebugLogFlags_EventInputRouting = 1 << 7,
|
||||
ImGuiDebugLogFlags_EventDocking = 1 << 8,
|
||||
ImGuiDebugLogFlags_EventViewport = 1 << 9,
|
||||
ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventInputRouting | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport,
|
||||
ImGuiDebugLogFlags_EventError = 1 << 0,
|
||||
ImGuiDebugLogFlags_EventActiveId = 1 << 1,
|
||||
ImGuiDebugLogFlags_EventFocus = 1 << 2,
|
||||
ImGuiDebugLogFlags_EventPopup = 1 << 3,
|
||||
ImGuiDebugLogFlags_EventNav = 1 << 4,
|
||||
ImGuiDebugLogFlags_EventClipper = 1 << 5,
|
||||
ImGuiDebugLogFlags_EventSelection = 1 << 6,
|
||||
ImGuiDebugLogFlags_EventIO = 1 << 7,
|
||||
ImGuiDebugLogFlags_EventInputRouting = 1 << 8,
|
||||
ImGuiDebugLogFlags_EventDocking = 1 << 9,
|
||||
ImGuiDebugLogFlags_EventViewport = 1 << 10,
|
||||
ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventError | ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventInputRouting | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport,
|
||||
ImGuiDebugLogFlags_OutputToTTY = 1 << 20,
|
||||
ImGuiDebugLogFlags_OutputToTestEngine = 1 << 21,
|
||||
}ImGuiDebugLogFlags_;
|
||||
@@ -2926,6 +2936,7 @@ struct ImGuiContext
|
||||
short DisabledStackSize;
|
||||
short LockMarkEdited;
|
||||
short TooltipOverrideCount;
|
||||
ImGuiWindow* TooltipPreviousWindow;
|
||||
ImVector_char ClipboardHandlerData;
|
||||
ImVector_ImGuiID MenusIdSubmittedThisFrame;
|
||||
ImGuiTypingSelectState TypingSelectState;
|
||||
@@ -2954,9 +2965,18 @@ struct ImGuiContext
|
||||
int LogDepthRef;
|
||||
int LogDepthToExpand;
|
||||
int LogDepthToExpandDefault;
|
||||
ImGuiErrorCallback ErrorCallback;
|
||||
void* ErrorCallbackUserData;
|
||||
ImVec2 ErrorTooltipLockedPos;
|
||||
bool ErrorFirst;
|
||||
int ErrorCountCurrentFrame;
|
||||
ImGuiErrorRecoveryState StackSizesInNewFrame;
|
||||
ImGuiErrorRecoveryState*StackSizesInBeginForCurrentWindow;
|
||||
int DebugDrawIdConflictsCount;
|
||||
ImGuiDebugLogFlags DebugLogFlags;
|
||||
ImGuiTextBuffer DebugLogBuf;
|
||||
ImGuiTextIndex DebugLogIndex;
|
||||
int DebugLogSkippedErrors;
|
||||
ImGuiDebugLogFlags DebugLogAutoDisableFlags;
|
||||
ImU8 DebugLogAutoDisableFrames;
|
||||
ImU8 DebugLocateFrames;
|
||||
@@ -3175,6 +3195,7 @@ typedef struct ImVector_ImGuiTabItem {int Size;int Capacity;ImGuiTabItem* Data;}
|
||||
|
||||
struct ImGuiTabBar
|
||||
{
|
||||
ImGuiWindow* Window;
|
||||
ImVector_ImGuiTabItem Tabs;
|
||||
ImGuiTabBarFlags Flags;
|
||||
ImGuiID ID;
|
||||
@@ -4397,10 +4418,8 @@ CIMGUI_API void ImGuiNextItemData_destroy(ImGuiNextItemData* self);
|
||||
CIMGUI_API void ImGuiNextItemData_ClearFlags(ImGuiNextItemData* self);
|
||||
CIMGUI_API ImGuiLastItemData* ImGuiLastItemData_ImGuiLastItemData(void);
|
||||
CIMGUI_API void ImGuiLastItemData_destroy(ImGuiLastItemData* self);
|
||||
CIMGUI_API ImGuiStackSizes* ImGuiStackSizes_ImGuiStackSizes(void);
|
||||
CIMGUI_API void ImGuiStackSizes_destroy(ImGuiStackSizes* self);
|
||||
CIMGUI_API void ImGuiStackSizes_SetToContextState(ImGuiStackSizes* self,ImGuiContext* ctx);
|
||||
CIMGUI_API void ImGuiStackSizes_CompareWithContextState(ImGuiStackSizes* self,ImGuiContext* ctx);
|
||||
CIMGUI_API ImGuiErrorRecoveryState* ImGuiErrorRecoveryState_ImGuiErrorRecoveryState(void);
|
||||
CIMGUI_API void ImGuiErrorRecoveryState_destroy(ImGuiErrorRecoveryState* self);
|
||||
CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr);
|
||||
CIMGUI_API void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self);
|
||||
CIMGUI_API ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index);
|
||||
@@ -4824,7 +4843,8 @@ CIMGUI_API const char* igTabBarGetTabName(ImGuiTabBar* tab_bar,ImGuiTabItem* tab
|
||||
CIMGUI_API void igTabBarAddTab(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window);
|
||||
CIMGUI_API void igTabBarRemoveTab(ImGuiTabBar* tab_bar,ImGuiID tab_id);
|
||||
CIMGUI_API void igTabBarCloseTab(ImGuiTabBar* tab_bar,ImGuiTabItem* tab);
|
||||
CIMGUI_API void igTabBarQueueFocus(ImGuiTabBar* tab_bar,ImGuiTabItem* tab);
|
||||
CIMGUI_API void igTabBarQueueFocus_TabItemPtr(ImGuiTabBar* tab_bar,ImGuiTabItem* tab);
|
||||
CIMGUI_API void igTabBarQueueFocus_Str(ImGuiTabBar* tab_bar,const char* tab_name);
|
||||
CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,ImGuiTabItem* tab,int offset);
|
||||
CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,ImGuiTabItem* tab,ImVec2 mouse_pos);
|
||||
CIMGUI_API bool igTabBarProcessReorder(ImGuiTabBar* tab_bar);
|
||||
@@ -4883,6 +4903,7 @@ CIMGUI_API void igDataTypeApplyOp(ImGuiDataType data_type,int op,void* output,co
|
||||
CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,void* p_data,const char* format,void* p_data_when_empty);
|
||||
CIMGUI_API int igDataTypeCompare(ImGuiDataType data_type,const void* arg_1,const void* arg_2);
|
||||
CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type,void* p_data,const void* p_min,const void* p_max);
|
||||
CIMGUI_API bool igDataTypeIsZero(ImGuiDataType data_type,const void* p_data);
|
||||
CIMGUI_API bool igInputTextEx(const char* label,const char* hint,char* buf,int buf_size,const ImVec2 size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API void igInputTextDeactivateHook(ImGuiID id);
|
||||
CIMGUI_API bool igTempInputText(const ImRect bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags);
|
||||
@@ -4900,10 +4921,15 @@ CIMGUI_API void igShadeVertsTransformPos(ImDrawList* draw_list,int vert_start_id
|
||||
CIMGUI_API void igGcCompactTransientMiscBuffers(void);
|
||||
CIMGUI_API void igGcCompactTransientWindowBuffers(ImGuiWindow* window);
|
||||
CIMGUI_API void igGcAwakeTransientWindowBuffers(ImGuiWindow* window);
|
||||
CIMGUI_API void igDebugAllocHook(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size);
|
||||
CIMGUI_API void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback,void* user_data);
|
||||
CIMGUI_API void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback,void* user_data);
|
||||
CIMGUI_API bool igErrorLog(const char* msg);
|
||||
CIMGUI_API void igErrorRecoveryStoreState(ImGuiErrorRecoveryState* state_out);
|
||||
CIMGUI_API void igErrorRecoveryTryToRecoverState(const ImGuiErrorRecoveryState* state_in);
|
||||
CIMGUI_API void igErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryState* state_in);
|
||||
CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries(void);
|
||||
CIMGUI_API void igErrorCheckEndFrameFinalizeErrorTooltip(void);
|
||||
CIMGUI_API bool igBeginErrorTooltip(void);
|
||||
CIMGUI_API void igEndErrorTooltip(void);
|
||||
CIMGUI_API void igDebugAllocHook(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size);
|
||||
CIMGUI_API void igDebugDrawCursorPos(ImU32 col);
|
||||
CIMGUI_API void igDebugDrawLineExtents(ImU32 col);
|
||||
CIMGUI_API void igDebugDrawItemRect(ImU32 col);
|
||||
|
Reference in New Issue
Block a user