mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 03:48:30 +01:00
pull imgui 1.68
This commit is contained in:
41
cimgui.h
41
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.67" from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.68" from Dear ImGui https://github.com/ocornut/imgui
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
#define CIMGUI_INCLUDED
|
||||
#include <stdio.h>
|
||||
@@ -255,8 +255,8 @@ enum ImGuiTabBarFlags_
|
||||
ImGuiTabBarFlags_None = 0,
|
||||
ImGuiTabBarFlags_Reorderable = 1 << 0,
|
||||
ImGuiTabBarFlags_AutoSelectNewTabs = 1 << 1,
|
||||
ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 2,
|
||||
ImGuiTabBarFlags_NoTabListPopupButton = 1 << 3,
|
||||
ImGuiTabBarFlags_TabListPopupButton = 1 << 2,
|
||||
ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3,
|
||||
ImGuiTabBarFlags_NoTabListScrollingButtons = 1 << 4,
|
||||
ImGuiTabBarFlags_NoTooltip = 1 << 5,
|
||||
ImGuiTabBarFlags_FittingPolicyResizeDown = 1 << 6,
|
||||
@@ -472,6 +472,7 @@ enum ImGuiStyleVar_
|
||||
ImGuiStyleVar_GrabRounding,
|
||||
ImGuiStyleVar_TabRounding,
|
||||
ImGuiStyleVar_ButtonTextAlign,
|
||||
ImGuiStyleVar_SelectableTextAlign,
|
||||
ImGuiStyleVar_COUNT
|
||||
};
|
||||
enum ImGuiColorEditFlags_
|
||||
@@ -549,6 +550,7 @@ struct ImGuiStyle
|
||||
float TabRounding;
|
||||
float TabBorderSize;
|
||||
ImVec2 ButtonTextAlign;
|
||||
ImVec2 SelectableTextAlign;
|
||||
ImVec2 DisplayWindowPadding;
|
||||
ImVec2 DisplaySafeAreaPadding;
|
||||
float MouseCursorScale;
|
||||
@@ -578,8 +580,6 @@ struct ImGuiIO
|
||||
bool FontAllowUserScaling;
|
||||
ImFont* FontDefault;
|
||||
ImVec2 DisplayFramebufferScale;
|
||||
ImVec2 DisplayVisibleMin;
|
||||
ImVec2 DisplayVisibleMax;
|
||||
bool MouseDrawCursor;
|
||||
bool ConfigMacOSXBehaviors;
|
||||
bool ConfigInputTextCursorBlink;
|
||||
@@ -762,6 +762,7 @@ struct ImDrawData
|
||||
int TotalVtxCount;
|
||||
ImVec2 DisplayPos;
|
||||
ImVec2 DisplaySize;
|
||||
ImVec2 FramebufferScale;
|
||||
};
|
||||
struct ImFontConfig
|
||||
{
|
||||
@@ -821,21 +822,21 @@ struct ImFontAtlas
|
||||
};
|
||||
struct ImFont
|
||||
{
|
||||
float FontSize;
|
||||
float Scale;
|
||||
ImVec2 DisplayOffset;
|
||||
ImVector_ImFontGlyph Glyphs;
|
||||
ImVector_float IndexAdvanceX;
|
||||
ImVector_ImWchar IndexLookup;
|
||||
const ImFontGlyph* FallbackGlyph;
|
||||
float FallbackAdvanceX;
|
||||
ImWchar FallbackChar;
|
||||
short ConfigDataCount;
|
||||
ImFontConfig* ConfigData;
|
||||
float FontSize;
|
||||
ImVector_ImWchar IndexLookup;
|
||||
ImVector_ImFontGlyph Glyphs;
|
||||
const ImFontGlyph* FallbackGlyph;
|
||||
ImVec2 DisplayOffset;
|
||||
ImFontAtlas* ContainerAtlas;
|
||||
const ImFontConfig* ConfigData;
|
||||
short ConfigDataCount;
|
||||
ImWchar FallbackChar;
|
||||
float Scale;
|
||||
float Ascent, Descent;
|
||||
bool DirtyLookupTables;
|
||||
int MetricsTotalSurface;
|
||||
bool DirtyLookupTables;
|
||||
};
|
||||
struct TextRange
|
||||
{
|
||||
@@ -1198,6 +1199,7 @@ CIMGUI_API bool igIsItemFocused(void);
|
||||
CIMGUI_API bool igIsItemClicked(int mouse_button);
|
||||
CIMGUI_API bool igIsItemVisible(void);
|
||||
CIMGUI_API bool igIsItemEdited(void);
|
||||
CIMGUI_API bool igIsItemActivated(void);
|
||||
CIMGUI_API bool igIsItemDeactivated(void);
|
||||
CIMGUI_API bool igIsItemDeactivatedAfterEdit(void);
|
||||
CIMGUI_API bool igIsAnyItemHovered(void);
|
||||
@@ -1296,6 +1298,7 @@ CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self);
|
||||
CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self);
|
||||
CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity);
|
||||
CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self);
|
||||
CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end);
|
||||
CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self,const char* fmt,va_list args);
|
||||
CIMGUI_API Pair* Pair_PairInt(ImGuiID _key,int _val_i);
|
||||
CIMGUI_API void Pair_destroy(Pair* self);
|
||||
@@ -1388,7 +1391,7 @@ CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void);
|
||||
CIMGUI_API void ImDrawData_destroy(ImDrawData* self);
|
||||
CIMGUI_API void ImDrawData_Clear(ImDrawData* self);
|
||||
CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self);
|
||||
CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 sc);
|
||||
CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self,const ImVec2 fb_scale);
|
||||
CIMGUI_API ImFontConfig* ImFontConfig_ImFontConfig(void);
|
||||
CIMGUI_API void ImFontConfig_destroy(ImFontConfig* self);
|
||||
CIMGUI_API ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(void);
|
||||
@@ -1433,11 +1436,8 @@ CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const CustomRect*
|
||||
CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]);
|
||||
CIMGUI_API ImFont* ImFont_ImFont(void);
|
||||
CIMGUI_API void ImFont_destroy(ImFont* self);
|
||||
CIMGUI_API void ImFont_ClearOutputData(ImFont* self);
|
||||
CIMGUI_API void ImFont_BuildLookupTable(ImFont* self);
|
||||
CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c);
|
||||
CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c);
|
||||
CIMGUI_API void ImFont_SetFallbackChar(ImFont* self,ImWchar c);
|
||||
CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c);
|
||||
CIMGUI_API bool ImFont_IsLoaded(ImFont* self);
|
||||
CIMGUI_API const char* ImFont_GetDebugName(ImFont* self);
|
||||
@@ -1445,9 +1445,12 @@ CIMGUI_API ImVec2 ImFont_CalcTextSizeA(ImFont* self,float size,float max_width,f
|
||||
CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self,float scale,const char* text,const char* text_end,float wrap_width);
|
||||
CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,ImWchar c);
|
||||
CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,bool cpu_fine_clip);
|
||||
CIMGUI_API void ImFont_BuildLookupTable(ImFont* self);
|
||||
CIMGUI_API void ImFont_ClearOutputData(ImFont* self);
|
||||
CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size);
|
||||
CIMGUI_API void ImFont_AddGlyph(ImFont* self,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x);
|
||||
CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst);
|
||||
CIMGUI_API void ImFont_SetFallbackChar(ImFont* self,ImWchar c);
|
||||
CIMGUI_API void igGetWindowPos_nonUDT(ImVec2 *pOut);
|
||||
CIMGUI_API ImVec2_Simple igGetWindowPos_nonUDT2(void);
|
||||
CIMGUI_API void igGetWindowSize_nonUDT(ImVec2 *pOut);
|
||||
|
Reference in New Issue
Block a user