mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 03:48:30 +01:00
pull imgui 1.91.2 and generate
This commit is contained in:
79
cimgui.h
79
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.1" 19110 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.91.2" 19120 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//docking branch
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
@@ -125,6 +125,7 @@ typedef struct ImGuiWindow ImGuiWindow;
|
||||
typedef struct ImGuiWindowDockStyle ImGuiWindowDockStyle;
|
||||
typedef struct ImGuiWindowTempData ImGuiWindowTempData;
|
||||
typedef struct ImGuiWindowSettings ImGuiWindowSettings;
|
||||
typedef struct STB_TexteditState STB_TexteditState;
|
||||
typedef struct ImVector_const_charPtr {int Size;int Capacity;const char** Data;} ImVector_const_charPtr;
|
||||
|
||||
typedef unsigned int ImGuiID;
|
||||
@@ -281,6 +282,7 @@ typedef enum {
|
||||
ImGuiItemFlags_NoNavDefaultFocus = 1 << 2,
|
||||
ImGuiItemFlags_ButtonRepeat = 1 << 3,
|
||||
ImGuiItemFlags_AutoClosePopups = 1 << 4,
|
||||
ImGuiItemFlags_AllowDuplicateId = 1 << 5,
|
||||
}ImGuiItemFlags_;
|
||||
typedef enum {
|
||||
ImGuiInputTextFlags_None = 0,
|
||||
@@ -1055,6 +1057,7 @@ struct ImGuiIO
|
||||
float KeyRepeatDelay;
|
||||
float KeyRepeatRate;
|
||||
bool ConfigDebugIsDebuggerPresent;
|
||||
bool ConfigDebugHighlightIdConflicts;
|
||||
bool ConfigDebugBeginReturnValueOnce;
|
||||
bool ConfigDebugBeginReturnValueLoop;
|
||||
bool ConfigDebugIgnoreFocusLoss;
|
||||
@@ -1643,46 +1646,6 @@ typedef int ImGuiTypingSelectFlags;
|
||||
typedef int ImGuiWindowRefreshFlags;
|
||||
typedef void (*ImGuiErrorLogCallback)(void* user_data, const char* fmt, ...);
|
||||
extern ImGuiContext* GImGui;
|
||||
typedef struct StbUndoRecord StbUndoRecord;
|
||||
struct StbUndoRecord
|
||||
{
|
||||
int where;
|
||||
int insert_length;
|
||||
int delete_length;
|
||||
int char_storage;
|
||||
};
|
||||
typedef struct StbUndoState StbUndoState;
|
||||
struct StbUndoState
|
||||
{
|
||||
StbUndoRecord undo_rec [99];
|
||||
ImWchar undo_char[999];
|
||||
short undo_point, redo_point;
|
||||
int undo_char_point, redo_char_point;
|
||||
};
|
||||
typedef struct STB_TexteditState STB_TexteditState;
|
||||
struct STB_TexteditState
|
||||
{
|
||||
int cursor;
|
||||
int select_start;
|
||||
int select_end;
|
||||
unsigned char insert_mode;
|
||||
int row_count_per_page;
|
||||
unsigned char cursor_at_end_of_line;
|
||||
unsigned char initialized;
|
||||
unsigned char has_preferred_x;
|
||||
unsigned char single_line;
|
||||
unsigned char padding1, padding2, padding3;
|
||||
float preferred_x;
|
||||
StbUndoState undostate;
|
||||
};
|
||||
typedef struct StbTexteditRow StbTexteditRow;
|
||||
struct StbTexteditRow
|
||||
{
|
||||
float x0,x1;
|
||||
float baseline_y_delta;
|
||||
float ymin,ymax;
|
||||
int num_chars;
|
||||
};
|
||||
typedef FILE* ImFileHandle;
|
||||
typedef struct ImVec1 ImVec1;
|
||||
struct ImVec1
|
||||
@@ -1927,19 +1890,19 @@ struct ImGuiInputTextDeactivatedState
|
||||
{
|
||||
ImGuiID ID;
|
||||
ImVector_char TextA;
|
||||
};
|
||||
}; struct STB_TexteditState;
|
||||
typedef STB_TexteditState ImStbTexteditState;
|
||||
struct ImGuiInputTextState
|
||||
{
|
||||
ImGuiContext* Ctx;
|
||||
ImStbTexteditState* Stb;
|
||||
ImGuiID ID;
|
||||
int CurLenW, CurLenA;
|
||||
ImVector_ImWchar TextW;
|
||||
int CurLenA;
|
||||
ImVector_char TextA;
|
||||
ImVector_char InitialTextA;
|
||||
bool TextAIsValid;
|
||||
ImVector_char CallbackTextBackup;
|
||||
int BufCapacityA;
|
||||
ImVec2 Scroll;
|
||||
STB_TexteditState Stb;
|
||||
float CursorAnim;
|
||||
bool CursorFollow;
|
||||
bool SelectedAllMouseLock;
|
||||
@@ -2515,6 +2478,7 @@ struct ImGuiViewportP
|
||||
int LastFocusedStampCount;
|
||||
ImGuiID LastNameHash;
|
||||
ImVec2 LastPos;
|
||||
ImVec2 LastSize;
|
||||
float Alpha;
|
||||
float LastAlpha;
|
||||
bool LastFocusedHadNavWindow;
|
||||
@@ -2567,11 +2531,12 @@ ImGuiLocKey_TableResetOrder=4,
|
||||
ImGuiLocKey_WindowingMainMenuBar=5,
|
||||
ImGuiLocKey_WindowingPopup=6,
|
||||
ImGuiLocKey_WindowingUntitled=7,
|
||||
ImGuiLocKey_CopyLink=8,
|
||||
ImGuiLocKey_DockingHideTabBar=9,
|
||||
ImGuiLocKey_DockingHoldShiftToDock=10,
|
||||
ImGuiLocKey_DockingDragToUndockOrMoveNode=11,
|
||||
ImGuiLocKey_COUNT=12,
|
||||
ImGuiLocKey_OpenLink_s=8,
|
||||
ImGuiLocKey_CopyLink=9,
|
||||
ImGuiLocKey_DockingHideTabBar=10,
|
||||
ImGuiLocKey_DockingHoldShiftToDock=11,
|
||||
ImGuiLocKey_DockingDragToUndockOrMoveNode=12,
|
||||
ImGuiLocKey_COUNT=13,
|
||||
}ImGuiLocKey;
|
||||
struct ImGuiLocEntry
|
||||
{
|
||||
@@ -2762,9 +2727,11 @@ struct ImGuiContext
|
||||
float WheelingWindowReleaseTimer;
|
||||
ImVec2 WheelingWindowWheelRemainder;
|
||||
ImVec2 WheelingAxisAvg;
|
||||
ImGuiID DebugDrawIdConflicts;
|
||||
ImGuiID DebugHookIdInfo;
|
||||
ImGuiID HoveredId;
|
||||
ImGuiID HoveredIdPreviousFrame;
|
||||
int HoveredIdPreviousFrameItemCount;
|
||||
float HoveredIdTimer;
|
||||
float HoveredIdNotActiveTimer;
|
||||
bool HoveredIdAllowOverlap;
|
||||
@@ -3493,9 +3460,6 @@ typedef union SDL_Event SDL_Event;
|
||||
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
typedef struct ImGuiTextFilter::ImGuiTextRange ImGuiTextRange;
|
||||
typedef ImStb::STB_TexteditState STB_TexteditState;
|
||||
typedef ImStb::StbTexteditRow StbTexteditRow;
|
||||
typedef ImStb::StbUndoRecord StbUndoRecord;
|
||||
typedef ImStb::StbUndoState StbUndoState;
|
||||
typedef ImChunkStream<ImGuiTableSettings> ImChunkStream_ImGuiTableSettings;
|
||||
typedef ImChunkStream<ImGuiWindowSettings> ImChunkStream_ImGuiWindowSettings;
|
||||
typedef ImPool<ImGuiMultiSelectState> ImPool_ImGuiMultiSelectState;
|
||||
@@ -4261,7 +4225,7 @@ CIMGUI_API const char* igImStristr(const char* haystack,const char* haystack_end
|
||||
CIMGUI_API void igImStrTrimBlanks(char* str);
|
||||
CIMGUI_API const char* igImStrSkipBlank(const char* str);
|
||||
CIMGUI_API int igImStrlenW(const ImWchar* str);
|
||||
CIMGUI_API const ImWchar* igImStrbolW(const ImWchar* buf_mid_line,const ImWchar* buf_begin);
|
||||
CIMGUI_API const char* igImStrbol(const char* buf_mid_line,const char* buf_begin);
|
||||
CIMGUI_API char igImToUpper(char c);
|
||||
CIMGUI_API bool igImCharIsBlankA(char c);
|
||||
CIMGUI_API bool igImCharIsBlankW(unsigned int c);
|
||||
@@ -4412,9 +4376,8 @@ CIMGUI_API ImGuiInputTextState* ImGuiInputTextState_ImGuiInputTextState(void);
|
||||
CIMGUI_API void ImGuiInputTextState_destroy(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_ClearText(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self);
|
||||
CIMGUI_API int ImGuiInputTextState_GetUndoAvailCount(ImGuiInputTextState* self);
|
||||
CIMGUI_API int ImGuiInputTextState_GetRedoAvailCount(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self,int key);
|
||||
CIMGUI_API void ImGuiInputTextState_OnCharPressed(ImGuiInputTextState* self,unsigned int c);
|
||||
CIMGUI_API void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self);
|
||||
CIMGUI_API bool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self);
|
||||
@@ -4589,7 +4552,7 @@ CIMGUI_API void igUpdateMouseMovingWindowEndFrame(void);
|
||||
CIMGUI_API ImGuiID igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook);
|
||||
CIMGUI_API void igRemoveContextHook(ImGuiContext* context,ImGuiID hook_to_remove);
|
||||
CIMGUI_API void igCallContextHooks(ImGuiContext* context,ImGuiContextHookType type);
|
||||
CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos);
|
||||
CIMGUI_API void igTranslateWindowsInViewport(ImGuiViewportP* viewport,const ImVec2 old_pos,const ImVec2 new_pos,const ImVec2 old_size,const ImVec2 new_size);
|
||||
CIMGUI_API void igScaleWindowsInViewport(ImGuiViewportP* viewport,float scale);
|
||||
CIMGUI_API void igDestroyPlatformWindow(ImGuiViewportP* viewport);
|
||||
CIMGUI_API void igSetWindowViewport(ImGuiWindow* window,ImGuiViewportP* viewport);
|
||||
|
Reference in New Issue
Block a user