mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-13 13:18:31 +01:00
Merge branch 'docking_inter'
This commit is contained in:
80
cimgui.h
80
cimgui.h
@@ -1,6 +1,7 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.91.4" 19140 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.91.5" 19150 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//with imgui_freetype.h api
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
#define CIMGUI_INCLUDED
|
||||
#include <stdio.h>
|
||||
@@ -202,7 +203,17 @@ typedef ImU64 ImTextureID;
|
||||
typedef unsigned short ImDrawIdx;
|
||||
typedef unsigned int ImWchar32;
|
||||
typedef unsigned short ImWchar16;
|
||||
#ifdef IMGUI_USE_WCHAR32
|
||||
typedef ImWchar32 ImWchar;
|
||||
#else
|
||||
typedef ImWchar16 ImWchar;
|
||||
#endif
|
||||
#ifdef IMGUI_USE_WCHAR32
|
||||
#define IM_UNICODE_CODEPOINT_MAX 0x10FFFF
|
||||
#else
|
||||
#define IM_UNICODE_CODEPOINT_MAX 0xFFFF
|
||||
#endif
|
||||
|
||||
typedef ImS64 ImGuiSelectionUserData;
|
||||
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data);
|
||||
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
|
||||
@@ -450,6 +461,7 @@ ImGuiSortDirection_Descending=2,
|
||||
}ImGuiSortDirection;
|
||||
typedef enum {
|
||||
ImGuiKey_None=0,
|
||||
ImGuiKey_NamedKey_BEGIN=512,
|
||||
ImGuiKey_Tab=512,
|
||||
ImGuiKey_LeftArrow=513,
|
||||
ImGuiKey_RightArrow=514,
|
||||
@@ -604,18 +616,14 @@ ImGuiKey_ReservedForModCtrl=662,
|
||||
ImGuiKey_ReservedForModShift=663,
|
||||
ImGuiKey_ReservedForModAlt=664,
|
||||
ImGuiKey_ReservedForModSuper=665,
|
||||
ImGuiKey_COUNT=666,
|
||||
ImGuiKey_NamedKey_END=666,
|
||||
ImGuiMod_None=0,
|
||||
ImGuiMod_Ctrl=1 << 12,
|
||||
ImGuiMod_Shift=1 << 13,
|
||||
ImGuiMod_Alt=1 << 14,
|
||||
ImGuiMod_Super=1 << 15,
|
||||
ImGuiMod_Mask_=0xF000,
|
||||
ImGuiKey_NamedKey_BEGIN=512,
|
||||
ImGuiKey_NamedKey_END=ImGuiKey_COUNT,
|
||||
ImGuiKey_NamedKey_COUNT=ImGuiKey_NamedKey_END - ImGuiKey_NamedKey_BEGIN,
|
||||
ImGuiKey_KeysData_SIZE=ImGuiKey_NamedKey_COUNT,
|
||||
ImGuiKey_KeysData_OFFSET=ImGuiKey_NamedKey_BEGIN,
|
||||
}ImGuiKey;
|
||||
typedef enum {
|
||||
ImGuiInputFlags_None = 0,
|
||||
@@ -1011,6 +1019,7 @@ struct ImGuiIO
|
||||
bool ConfigDragClickToInputText;
|
||||
bool ConfigWindowsResizeFromEdges;
|
||||
bool ConfigWindowsMoveFromTitleBarOnly;
|
||||
bool ConfigWindowsCopyContentsWithCtrlC;
|
||||
bool ConfigScrollbarScrollByPage;
|
||||
float ConfigMemoryCompactTimer;
|
||||
float MouseDoubleClickTime;
|
||||
@@ -1057,7 +1066,7 @@ struct ImGuiIO
|
||||
bool KeyAlt;
|
||||
bool KeySuper;
|
||||
ImGuiKeyChord KeyMods;
|
||||
ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE];
|
||||
ImGuiKeyData KeysData[ImGuiKey_NamedKey_COUNT];
|
||||
bool WantCaptureMouseUnlessPopupClose;
|
||||
ImVec2 MousePosPrev;
|
||||
ImVec2 MouseClickedPos[5];
|
||||
@@ -1077,8 +1086,6 @@ struct ImGuiIO
|
||||
float PenPressure;
|
||||
bool AppFocusLost;
|
||||
bool AppAcceptingEvents;
|
||||
ImS8 BackendUsingLegacyKeyArrays;
|
||||
bool BackendUsingLegacyNavInputArray;
|
||||
ImWchar16 InputQueueSurrogate;
|
||||
ImVector_ImWchar InputQueueCharacters;
|
||||
};
|
||||
@@ -1377,7 +1384,8 @@ struct ImFontAtlasCustomRect
|
||||
{
|
||||
unsigned short Width, Height;
|
||||
unsigned short X, Y;
|
||||
unsigned int GlyphID;
|
||||
unsigned int GlyphID : 31;
|
||||
unsigned int GlyphColored : 1;
|
||||
float GlyphAdvanceX;
|
||||
ImVec2 GlyphOffset;
|
||||
ImFont* Font;
|
||||
@@ -1443,7 +1451,7 @@ struct ImFont
|
||||
float Scale;
|
||||
float Ascent, Descent;
|
||||
int MetricsTotalSurface;
|
||||
ImU8 Used4kPagesMap[(0xFFFF +1)/4096/8];
|
||||
ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX +1)/4096/8];
|
||||
};
|
||||
typedef enum {
|
||||
ImGuiViewportFlags_None = 0,
|
||||
@@ -1529,6 +1537,7 @@ typedef int ImGuiDebugLogFlags;
|
||||
typedef int ImGuiFocusRequestFlags;
|
||||
typedef int ImGuiItemStatusFlags;
|
||||
typedef int ImGuiOldColumnFlags;
|
||||
typedef int ImGuiLogFlags;
|
||||
typedef int ImGuiNavRenderCursorFlags;
|
||||
typedef int ImGuiNavMoveFlags;
|
||||
typedef int ImGuiNextItemDataFlags;
|
||||
@@ -1716,12 +1725,13 @@ typedef enum {
|
||||
ImGuiLayoutType_Vertical = 1
|
||||
}ImGuiLayoutType_;
|
||||
typedef enum {
|
||||
ImGuiLogType_None = 0,
|
||||
ImGuiLogType_TTY,
|
||||
ImGuiLogType_File,
|
||||
ImGuiLogType_Buffer,
|
||||
ImGuiLogType_Clipboard,
|
||||
}ImGuiLogType;
|
||||
ImGuiLogFlags_None = 0,
|
||||
ImGuiLogFlags_OutputTTY = 1 << 0,
|
||||
ImGuiLogFlags_OutputFile = 1 << 1,
|
||||
ImGuiLogFlags_OutputBuffer = 1 << 2,
|
||||
ImGuiLogFlags_OutputClipboard = 1 << 3,
|
||||
ImGuiLogFlags_OutputMask_ = ImGuiLogFlags_OutputTTY | ImGuiLogFlags_OutputFile | ImGuiLogFlags_OutputBuffer | ImGuiLogFlags_OutputClipboard,
|
||||
}ImGuiLogFlags_;
|
||||
typedef enum {
|
||||
ImGuiAxis_None = -1,
|
||||
ImGuiAxis_X = 0,
|
||||
@@ -1790,11 +1800,11 @@ struct ImGuiInputTextState
|
||||
ImGuiContext* Ctx;
|
||||
ImStbTexteditState* Stb;
|
||||
ImGuiID ID;
|
||||
int CurLenA;
|
||||
int TextLen;
|
||||
ImVector_char TextA;
|
||||
ImVector_char InitialTextA;
|
||||
ImVector_char TextToRevertTo;
|
||||
ImVector_char CallbackTextBackup;
|
||||
int BufCapacityA;
|
||||
int BufCapacity;
|
||||
ImVec2 Scroll;
|
||||
float CursorAnim;
|
||||
bool CursorFollow;
|
||||
@@ -2688,7 +2698,8 @@ struct ImGuiContext
|
||||
ImGuiID HookIdNext;
|
||||
const char* LocalizationTable[ImGuiLocKey_COUNT];
|
||||
bool LogEnabled;
|
||||
ImGuiLogType LogType;
|
||||
ImGuiLogFlags LogFlags;
|
||||
ImGuiWindow* LogWindow;
|
||||
ImFileHandle LogFile;
|
||||
ImGuiTextBuffer LogBuffer;
|
||||
const char* LogNextPrefix;
|
||||
@@ -3177,6 +3188,22 @@ struct ImFontBuilderIO
|
||||
{
|
||||
bool (*FontBuilder_Build)(ImFontAtlas* atlas);
|
||||
};
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
struct ImFontAtlas;
|
||||
struct ImFontBuilderIO;
|
||||
typedef enum {
|
||||
ImGuiFreeTypeBuilderFlags_NoHinting = 1 << 0,
|
||||
ImGuiFreeTypeBuilderFlags_NoAutoHint = 1 << 1,
|
||||
ImGuiFreeTypeBuilderFlags_ForceAutoHint = 1 << 2,
|
||||
ImGuiFreeTypeBuilderFlags_LightHinting = 1 << 3,
|
||||
ImGuiFreeTypeBuilderFlags_MonoHinting = 1 << 4,
|
||||
ImGuiFreeTypeBuilderFlags_Bold = 1 << 5,
|
||||
ImGuiFreeTypeBuilderFlags_Oblique = 1 << 6,
|
||||
ImGuiFreeTypeBuilderFlags_Monochrome = 1 << 7,
|
||||
ImGuiFreeTypeBuilderFlags_LoadColor = 1 << 8,
|
||||
ImGuiFreeTypeBuilderFlags_Bitmap = 1 << 9
|
||||
}ImGuiFreeTypeBuilderFlags;
|
||||
#endif
|
||||
#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-8)
|
||||
|
||||
#else
|
||||
@@ -3790,7 +3817,7 @@ CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,fl
|
||||
CIMGUI_API void ImDrawList_AddEllipse(ImDrawList* self,const ImVec2 center,const ImVec2 radius,ImU32 col,float rot,int num_segments,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddEllipseFilled(ImDrawList* self,const ImVec2 center,const ImVec2 radius,ImU32 col,float rot,int num_segments);
|
||||
CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end);
|
||||
CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect);
|
||||
CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect);
|
||||
CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments);
|
||||
CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments);
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness);
|
||||
@@ -4193,6 +4220,7 @@ CIMGUI_API void ImGuiTableColumnSettings_destroy(ImGuiTableColumnSettings* self)
|
||||
CIMGUI_API ImGuiTableSettings* ImGuiTableSettings_ImGuiTableSettings(void);
|
||||
CIMGUI_API void ImGuiTableSettings_destroy(ImGuiTableSettings* self);
|
||||
CIMGUI_API ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiTableSettings* self);
|
||||
CIMGUI_API ImGuiIO* igGetIOEx(ImGuiContext* ctx);
|
||||
CIMGUI_API ImGuiWindow* igGetCurrentWindowRead(void);
|
||||
CIMGUI_API ImGuiWindow* igGetCurrentWindow(void);
|
||||
CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id);
|
||||
@@ -4289,7 +4317,7 @@ CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width
|
||||
CIMGUI_API const ImGuiDataVarInfo* igGetStyleVarInfo(ImGuiStyleVar idx);
|
||||
CIMGUI_API void igBeginDisabledOverrideReenable(void);
|
||||
CIMGUI_API void igEndDisabledOverrideReenable(void);
|
||||
CIMGUI_API void igLogBegin(ImGuiLogType type,int auto_open_depth);
|
||||
CIMGUI_API void igLogBegin(ImGuiLogFlags flags,int auto_open_depth);
|
||||
CIMGUI_API void igLogToBuffer(int auto_open_depth);
|
||||
CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end);
|
||||
CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix);
|
||||
@@ -4588,11 +4616,15 @@ CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,in
|
||||
CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value);
|
||||
CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor);
|
||||
CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride);
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void);
|
||||
CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data);
|
||||
#endif
|
||||
|
||||
|
||||
/////////////////////////hand written functions
|
||||
//no LogTextV
|
||||
CIMGUI_API void igLogText(CONST char *fmt, ...);
|
||||
CIMGUI_API void igLogText(const char *fmt, ...);
|
||||
//no appendfV
|
||||
CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...);
|
||||
//for getting FLT_MAX in bindings
|
||||
|
Reference in New Issue
Block a user