mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 03:48:30 +01:00
pull imgui 1.89.5 and generate
This commit is contained in:
74
cimgui.h
74
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.89.4" 18940 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.89.5" 18950 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//docking branch
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
@@ -87,6 +87,7 @@ typedef struct ImGuiDockNode ImGuiDockNode;
|
||||
typedef struct ImGuiDockNodeSettings ImGuiDockNodeSettings;
|
||||
typedef struct ImGuiGroupData ImGuiGroupData;
|
||||
typedef struct ImGuiInputTextState ImGuiInputTextState;
|
||||
typedef struct ImGuiInputTextDeactivateData ImGuiInputTextDeactivateData;
|
||||
typedef struct ImGuiLastItemData ImGuiLastItemData;
|
||||
typedef struct ImGuiLocEntry ImGuiLocEntry;
|
||||
typedef struct ImGuiMenuColumns ImGuiMenuColumns;
|
||||
@@ -833,6 +834,12 @@ typedef enum {
|
||||
ImGuiMouseCursor_NotAllowed,
|
||||
ImGuiMouseCursor_COUNT
|
||||
}ImGuiMouseCursor_;
|
||||
typedef enum {
|
||||
ImGuiMouseSource_Mouse=0,
|
||||
ImGuiMouseSource_TouchScreen=1,
|
||||
ImGuiMouseSource_Pen=2,
|
||||
ImGuiMouseSource_COUNT=3,
|
||||
}ImGuiMouseSource;
|
||||
typedef enum {
|
||||
ImGuiCond_None = 0,
|
||||
ImGuiCond_Always = 1 << 0,
|
||||
@@ -969,6 +976,7 @@ struct ImGuiIO
|
||||
bool MouseDown[5];
|
||||
float MouseWheel;
|
||||
float MouseWheelH;
|
||||
ImGuiMouseSource MouseSource;
|
||||
ImGuiID MouseHoveredViewport;
|
||||
bool KeyCtrl;
|
||||
bool KeyShift;
|
||||
@@ -987,6 +995,7 @@ struct ImGuiIO
|
||||
bool MouseReleased[5];
|
||||
bool MouseDownOwned[5];
|
||||
bool MouseDownOwnedUnlessPopupClose[5];
|
||||
bool MouseWheelRequestAxisSwap;
|
||||
float MouseDownDuration[5];
|
||||
float MouseDownDurationPrev[5];
|
||||
ImVec2 MouseDragMaxDistanceAbs[5];
|
||||
@@ -1334,10 +1343,11 @@ typedef enum {
|
||||
ImGuiViewportFlags_NoFocusOnClick = 1 << 6,
|
||||
ImGuiViewportFlags_NoInputs = 1 << 7,
|
||||
ImGuiViewportFlags_NoRendererClear = 1 << 8,
|
||||
ImGuiViewportFlags_TopMost = 1 << 9,
|
||||
ImGuiViewportFlags_Minimized = 1 << 10,
|
||||
ImGuiViewportFlags_NoAutoMerge = 1 << 11,
|
||||
ImGuiViewportFlags_CanHostOtherWindows = 1 << 12,
|
||||
ImGuiViewportFlags_NoAutoMerge = 1 << 9,
|
||||
ImGuiViewportFlags_TopMost = 1 << 10,
|
||||
ImGuiViewportFlags_CanHostOtherWindows = 1 << 11,
|
||||
ImGuiViewportFlags_IsMinimized = 1 << 12,
|
||||
ImGuiViewportFlags_IsFocused = 1 << 13,
|
||||
}ImGuiViewportFlags_;
|
||||
struct ImGuiViewport
|
||||
{
|
||||
@@ -1418,6 +1428,7 @@ struct ImGuiDockNode;
|
||||
struct ImGuiDockNodeSettings;
|
||||
struct ImGuiGroupData;
|
||||
struct ImGuiInputTextState;
|
||||
struct ImGuiInputTextDeactivateData;
|
||||
struct ImGuiLastItemData;
|
||||
struct ImGuiLocEntry;
|
||||
struct ImGuiMenuColumns;
|
||||
@@ -1730,6 +1741,12 @@ struct ImGuiMenuColumns
|
||||
ImU16 OffsetMark;
|
||||
ImU16 Widths[4];
|
||||
};
|
||||
typedef struct ImGuiInputTextDeactivatedState ImGuiInputTextDeactivatedState;
|
||||
struct ImGuiInputTextDeactivatedState
|
||||
{
|
||||
ImGuiID ID;
|
||||
ImVector_char TextA;
|
||||
};
|
||||
struct ImGuiInputTextState
|
||||
{
|
||||
ImGuiContext* Ctx;
|
||||
@@ -1870,20 +1887,19 @@ typedef enum {
|
||||
ImGuiInputSource_Keyboard,
|
||||
ImGuiInputSource_Gamepad,
|
||||
ImGuiInputSource_Clipboard,
|
||||
ImGuiInputSource_Nav,
|
||||
ImGuiInputSource_COUNT
|
||||
}ImGuiInputSource;
|
||||
typedef struct ImGuiInputEventMousePos ImGuiInputEventMousePos;
|
||||
struct ImGuiInputEventMousePos
|
||||
{ float PosX, PosY;
|
||||
{ float PosX, PosY; ImGuiMouseSource MouseSource;
|
||||
};
|
||||
typedef struct ImGuiInputEventMouseWheel ImGuiInputEventMouseWheel;
|
||||
struct ImGuiInputEventMouseWheel
|
||||
{ float WheelX, WheelY;
|
||||
{ float WheelX, WheelY; ImGuiMouseSource MouseSource;
|
||||
};
|
||||
typedef struct ImGuiInputEventMouseButton ImGuiInputEventMouseButton;
|
||||
struct ImGuiInputEventMouseButton
|
||||
{ int Button; bool Down;
|
||||
{ int Button; bool Down; ImGuiMouseSource MouseSource;
|
||||
};
|
||||
typedef struct ImGuiInputEventMouseViewport ImGuiInputEventMouseViewport;
|
||||
struct ImGuiInputEventMouseViewport
|
||||
@@ -1906,6 +1922,7 @@ struct ImGuiInputEvent
|
||||
{
|
||||
ImGuiInputEventType Type;
|
||||
ImGuiInputSource Source;
|
||||
ImU32 EventId;
|
||||
union
|
||||
{
|
||||
ImGuiInputEventMousePos MousePos;
|
||||
@@ -2190,15 +2207,16 @@ typedef struct ImGuiViewportP ImGuiViewportP;
|
||||
struct ImGuiViewportP
|
||||
{
|
||||
ImGuiViewport _ImGuiViewport;
|
||||
ImGuiWindow* Window;
|
||||
int Idx;
|
||||
int LastFrameActive;
|
||||
int LastFrontMostStampCount;
|
||||
int LastFocusedStampCount;
|
||||
ImGuiID LastNameHash;
|
||||
ImVec2 LastPos;
|
||||
float Alpha;
|
||||
float LastAlpha;
|
||||
bool LastFocusedHadNavWindow;
|
||||
short PlatformMonitor;
|
||||
ImGuiWindow* Window;
|
||||
int DrawListsLastFrame[2];
|
||||
ImDrawList* DrawLists[2];
|
||||
ImDrawData DrawDataP;
|
||||
@@ -2260,10 +2278,11 @@ typedef enum {
|
||||
ImGuiDebugLogFlags_EventPopup = 1 << 2,
|
||||
ImGuiDebugLogFlags_EventNav = 1 << 3,
|
||||
ImGuiDebugLogFlags_EventClipper = 1 << 4,
|
||||
ImGuiDebugLogFlags_EventIO = 1 << 5,
|
||||
ImGuiDebugLogFlags_EventDocking = 1 << 6,
|
||||
ImGuiDebugLogFlags_EventViewport = 1 << 7,
|
||||
ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport,
|
||||
ImGuiDebugLogFlags_EventSelection = 1 << 5,
|
||||
ImGuiDebugLogFlags_EventIO = 1 << 6,
|
||||
ImGuiDebugLogFlags_EventDocking = 1 << 7,
|
||||
ImGuiDebugLogFlags_EventViewport = 1 << 8,
|
||||
ImGuiDebugLogFlags_EventMask_ = ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventClipper | ImGuiDebugLogFlags_EventSelection | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport,
|
||||
ImGuiDebugLogFlags_OutputToTTY = 1 << 10,
|
||||
}ImGuiDebugLogFlags_;
|
||||
struct ImGuiMetricsConfig
|
||||
@@ -2361,8 +2380,6 @@ struct ImGuiContext
|
||||
bool FontAtlasOwnedByContext;
|
||||
ImGuiIO IO;
|
||||
ImGuiPlatformIO PlatformIO;
|
||||
ImVector_ImGuiInputEvent InputEventsQueue;
|
||||
ImVector_ImGuiInputEvent InputEventsTrail;
|
||||
ImGuiStyle Style;
|
||||
ImGuiConfigFlags ConfigFlagsCurrFrame;
|
||||
ImGuiConfigFlags ConfigFlagsLastFrame;
|
||||
@@ -2381,6 +2398,10 @@ struct ImGuiContext
|
||||
bool GcCompactAll;
|
||||
bool TestEngineHookItems;
|
||||
void* TestEngine;
|
||||
ImVector_ImGuiInputEvent InputEventsQueue;
|
||||
ImVector_ImGuiInputEvent InputEventsTrail;
|
||||
ImGuiMouseSource InputEventsNextMouseSource;
|
||||
ImU32 InputEventsNextEventId;
|
||||
ImVector_ImGuiWindowPtr Windows;
|
||||
ImVector_ImGuiWindowPtr WindowsFocusOrder;
|
||||
ImVector_ImGuiWindowPtr WindowsTempSortBuffer;
|
||||
@@ -2451,7 +2472,7 @@ struct ImGuiContext
|
||||
ImGuiViewportP* MouseLastHoveredViewport;
|
||||
ImGuiID PlatformLastFocusedViewportId;
|
||||
ImGuiPlatformMonitor FallbackMonitor;
|
||||
int ViewportFrontMostStampCount;
|
||||
int ViewportFocusedStampCount;
|
||||
ImGuiWindow* NavWindow;
|
||||
ImGuiID NavId;
|
||||
ImGuiID NavFocusScopeId;
|
||||
@@ -2540,6 +2561,7 @@ struct ImGuiContext
|
||||
float HoverDelayClearTimer;
|
||||
ImVec2 MouseLastValidPos;
|
||||
ImGuiInputTextState InputTextState;
|
||||
ImGuiInputTextDeactivatedState InputTextDeactivatedState;
|
||||
ImFont InputTextPasswordFont;
|
||||
ImGuiID TempInputId;
|
||||
ImGuiColorEditFlags ColorEditOptions;
|
||||
@@ -3524,6 +3546,7 @@ CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self,ImGuiKey key,bool down,f
|
||||
CIMGUI_API void ImGuiIO_AddMousePosEvent(ImGuiIO* self,float x,float y);
|
||||
CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down);
|
||||
CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wheel_x,float wheel_y);
|
||||
CIMGUI_API void ImGuiIO_AddMouseSourceEvent(ImGuiIO* self,ImGuiMouseSource source);
|
||||
CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id);
|
||||
CIMGUI_API void ImGuiIO_AddFocusEvent(ImGuiIO* self,bool focused);
|
||||
CIMGUI_API void ImGuiIO_AddInputCharacter(ImGuiIO* self,unsigned int c);
|
||||
@@ -3923,6 +3946,9 @@ CIMGUI_API void ImGuiMenuColumns_destroy(ImGuiMenuColumns* self);
|
||||
CIMGUI_API void ImGuiMenuColumns_Update(ImGuiMenuColumns* self,float spacing,bool window_reappearing);
|
||||
CIMGUI_API float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self,float w_icon,float w_label,float w_shortcut,float w_mark);
|
||||
CIMGUI_API void ImGuiMenuColumns_CalcNextTotalWidth(ImGuiMenuColumns* self,bool update_offsets);
|
||||
CIMGUI_API ImGuiInputTextDeactivatedState* ImGuiInputTextDeactivatedState_ImGuiInputTextDeactivatedState(void);
|
||||
CIMGUI_API void ImGuiInputTextDeactivatedState_destroy(ImGuiInputTextDeactivatedState* self);
|
||||
CIMGUI_API void ImGuiInputTextDeactivatedState_ClearFreeMemory(ImGuiInputTextDeactivatedState* self);
|
||||
CIMGUI_API ImGuiInputTextState* ImGuiInputTextState_ImGuiInputTextState(void);
|
||||
CIMGUI_API void ImGuiInputTextState_destroy(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_ClearText(ImGuiInputTextState* self);
|
||||
@@ -4061,7 +4087,7 @@ CIMGUI_API void igSetWindowHiddendAndSkipItemsForCurrentFrame(ImGuiWindow* windo
|
||||
CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r);
|
||||
CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r);
|
||||
CIMGUI_API void igFocusWindow(ImGuiWindow* window);
|
||||
CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window);
|
||||
CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window,ImGuiViewport* filter_viewport);
|
||||
CIMGUI_API void igBringWindowToFocusFront(ImGuiWindow* window);
|
||||
CIMGUI_API void igBringWindowToDisplayFront(ImGuiWindow* window);
|
||||
CIMGUI_API void igBringWindowToDisplayBack(ImGuiWindow* window);
|
||||
@@ -4127,6 +4153,7 @@ CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y);
|
||||
CIMGUI_API void igItemSize_Rect(const ImRect bb,float text_baseline_y);
|
||||
CIMGUI_API bool igItemAdd(const ImRect bb,ImGuiID id,const ImRect* nav_bb,ImGuiItemFlags extra_flags);
|
||||
CIMGUI_API bool igItemHoverable(const ImRect bb,ImGuiID id);
|
||||
CIMGUI_API bool igIsWindowContentHoverable(ImGuiWindow* window,ImGuiHoveredFlags flags);
|
||||
CIMGUI_API bool igIsClippedEx(const ImRect bb,ImGuiID id);
|
||||
CIMGUI_API void igSetLastItemData(ImGuiID item_id,ImGuiItemFlags in_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect);
|
||||
CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float default_h);
|
||||
@@ -4181,8 +4208,9 @@ CIMGUI_API bool igIsGamepadKey(ImGuiKey key);
|
||||
CIMGUI_API bool igIsMouseKey(ImGuiKey key);
|
||||
CIMGUI_API bool igIsAliasKey(ImGuiKey key);
|
||||
CIMGUI_API ImGuiKeyChord igConvertShortcutMod(ImGuiKeyChord key_chord);
|
||||
CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiKey key);
|
||||
CIMGUI_API ImGuiKeyData* igGetKeyData(ImGuiKey key);
|
||||
CIMGUI_API ImGuiKey igConvertSingleModFlagToKey(ImGuiContext* ctx,ImGuiKey key);
|
||||
CIMGUI_API ImGuiKeyData* igGetKeyData_ContextPtr(ImGuiContext* ctx,ImGuiKey key);
|
||||
CIMGUI_API ImGuiKeyData* igGetKeyData_Key(ImGuiKey key);
|
||||
CIMGUI_API void igGetKeyChordName(ImGuiKeyChord key_chord,char* out_buf,int out_buf_size);
|
||||
CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button);
|
||||
CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold);
|
||||
@@ -4194,9 +4222,10 @@ CIMGUI_API void igSetActiveIdUsingAllKeyboardKeys(void);
|
||||
CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir);
|
||||
CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key);
|
||||
CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags);
|
||||
CIMGUI_API void igSetKeyOwnersForKeyChord(ImGuiKeyChord key,ImGuiID owner_id,ImGuiInputFlags flags);
|
||||
CIMGUI_API void igSetItemKeyOwner(ImGuiKey key,ImGuiInputFlags flags);
|
||||
CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id);
|
||||
CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiKey key);
|
||||
CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiContext* ctx,ImGuiKey key);
|
||||
CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id);
|
||||
CIMGUI_API bool igIsKeyPressed_ID(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags);
|
||||
CIMGUI_API bool igIsKeyReleased_ID(ImGuiKey key,ImGuiID owner_id);
|
||||
@@ -4385,6 +4414,7 @@ CIMGUI_API bool igDataTypeApplyFromText(const char* buf,ImGuiDataType data_type,
|
||||
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 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);
|
||||
CIMGUI_API bool igTempInputScalar(const ImRect bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max);
|
||||
CIMGUI_API bool igTempInputIsActive(ImGuiID id);
|
||||
|
Reference in New Issue
Block a user