mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
83f729b093 | ||
![]() |
34a48996e6 | ||
![]() |
ccdae842e4 | ||
![]() |
c401f71eea | ||
![]() |
c22606a7f0 | ||
![]() |
6552b43aae | ||
![]() |
3d4277be4d | ||
![]() |
1ffc9e53c5 | ||
![]() |
13aac22a35 | ||
![]() |
ceda975a5b | ||
![]() |
aa0baa777c | ||
![]() |
25aa25bd83 | ||
![]() |
41b397020a | ||
![]() |
c1890d4c00 | ||
![]() |
7756c4f53f | ||
![]() |
ba9ec30e64 | ||
![]() |
2638737f2c | ||
![]() |
6aa3f1decd | ||
![]() |
bc708a092d | ||
![]() |
9ac7cd93e1 | ||
![]() |
2838c0317a | ||
![]() |
c57efd953f | ||
![]() |
a48009b062 | ||
![]() |
383ebf3a7a | ||
![]() |
afdbb6b799 | ||
![]() |
a64de2e303 | ||
![]() |
a9928295db | ||
![]() |
ce239ed53f |
@@ -40,6 +40,7 @@ endif (IMGUI_STATIC)
|
||||
target_compile_definitions(cimgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1)
|
||||
if (WIN32)
|
||||
target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t__declspec\(dllexport\))
|
||||
list(APPEND IMGUI_LIBRARIES imm32)
|
||||
else (WIN32)
|
||||
target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t)
|
||||
endif (WIN32)
|
||||
|
1
Makefile
1
Makefile
@@ -6,6 +6,7 @@ OBJS = cimgui.o
|
||||
OBJS += ./imgui/imgui.o
|
||||
OBJS += ./imgui/imgui_draw.o
|
||||
OBJS += ./imgui/imgui_demo.o
|
||||
OBJS += ./imgui/imgui_tables.o
|
||||
OBJS += ./imgui/imgui_widgets.o
|
||||
|
||||
CXXFLAGS=-O2 -fno-exceptions -fno-rtti
|
||||
|
@@ -11,7 +11,7 @@ History:
|
||||
Initially cimgui was developed by Stephan Dilly as hand-written code but lately turned into an auto-generated version by sonoro1234 in order to keep up with imgui more easily (letting the user select the desired branch and commit)
|
||||
|
||||
Notes:
|
||||
* currently this wrapper is based on version [1.80 of Dear ImGui with internal api]
|
||||
* currently this wrapper is based on version [1.82 of Dear ImGui with internal api]
|
||||
* only functions, structs and enums from imgui.h (an optionally imgui_internal.h) are wrapped.
|
||||
* if you are interested in imgui backends you should look [LuaJIT-ImGui](https://github.com/sonoro1234/LuaJIT-ImGui) project.
|
||||
* All naming is algorithmic except for those names that were coded in cimgui_overloads table (https://github.com/cimgui/cimgui/blob/master/generator/generator.lua#L60). In the official version this table is empty.
|
||||
|
@@ -11,7 +11,13 @@
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
|
||||
|
||||
#ifdef IMGUI_HAS_IMSTR
|
||||
#define igBegin igBegin_Strv
|
||||
#define igSliderFloat igSliderFloat_Strv
|
||||
#define igCheckbox igCheckbox_Strv
|
||||
#define igColorEdit3 igColorEdit3_Strv
|
||||
#define igButton igButton_Strv
|
||||
#endif
|
||||
|
||||
SDL_Window *window = NULL;
|
||||
|
||||
|
198
cimgui.cpp
198
cimgui.cpp
@@ -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.80" from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.82" from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
|
||||
#include "./imgui/imgui.h"
|
||||
@@ -941,6 +941,14 @@ CIMGUI_API bool igSelectableBoolPtr(const char* label,bool* p_selected,ImGuiSele
|
||||
{
|
||||
return ImGui::Selectable(label,p_selected,flags,size);
|
||||
}
|
||||
CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size)
|
||||
{
|
||||
return ImGui::BeginListBox(label,size);
|
||||
}
|
||||
CIMGUI_API void igEndListBox()
|
||||
{
|
||||
return ImGui::EndListBox();
|
||||
}
|
||||
CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items)
|
||||
{
|
||||
return ImGui::ListBox(label,current_item,items,items_count,height_in_items);
|
||||
@@ -949,18 +957,6 @@ CIMGUI_API bool igListBoxFnBoolPtr(const char* label,int* current_item,bool(*ite
|
||||
{
|
||||
return ImGui::ListBox(label,current_item,items_getter,data,items_count,height_in_items);
|
||||
}
|
||||
CIMGUI_API bool igListBoxHeaderVec2(const char* label,const ImVec2 size)
|
||||
{
|
||||
return ImGui::ListBoxHeader(label,size);
|
||||
}
|
||||
CIMGUI_API bool igListBoxHeaderInt(const char* label,int items_count,int height_in_items)
|
||||
{
|
||||
return ImGui::ListBoxHeader(label,items_count,height_in_items);
|
||||
}
|
||||
CIMGUI_API void igListBoxFooter()
|
||||
{
|
||||
return ImGui::ListBoxFooter();
|
||||
}
|
||||
CIMGUI_API void igPlotLinesFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride)
|
||||
{
|
||||
return ImGui::PlotLines(label,values,values_count,values_offset,overlay_text,scale_min,scale_max,graph_size,stride);
|
||||
@@ -1104,7 +1100,7 @@ CIMGUI_API bool igTableSetColumnIndex(int column_n)
|
||||
{
|
||||
return ImGui::TableSetColumnIndex(column_n);
|
||||
}
|
||||
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImU32 user_id)
|
||||
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)
|
||||
{
|
||||
return ImGui::TableSetupColumn(label,flags,init_width_or_weight,user_id);
|
||||
}
|
||||
@@ -1224,6 +1220,10 @@ CIMGUI_API void igLogButtons()
|
||||
{
|
||||
return ImGui::LogButtons();
|
||||
}
|
||||
CIMGUI_API void igLogTextV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::LogTextV(fmt,args);
|
||||
}
|
||||
CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags)
|
||||
{
|
||||
return ImGui::BeginDragDropSource(flags);
|
||||
@@ -1336,6 +1336,10 @@ CIMGUI_API void igSetItemAllowOverlap()
|
||||
{
|
||||
return ImGui::SetItemAllowOverlap();
|
||||
}
|
||||
CIMGUI_API ImGuiViewport* igGetMainViewport()
|
||||
{
|
||||
return ImGui::GetMainViewport();
|
||||
}
|
||||
CIMGUI_API bool igIsRectVisibleNil(const ImVec2 size)
|
||||
{
|
||||
return ImGui::IsRectVisible(size);
|
||||
@@ -1352,7 +1356,7 @@ CIMGUI_API int igGetFrameCount()
|
||||
{
|
||||
return ImGui::GetFrameCount();
|
||||
}
|
||||
CIMGUI_API ImDrawList* igGetBackgroundDrawList()
|
||||
CIMGUI_API ImDrawList* igGetBackgroundDrawListNil()
|
||||
{
|
||||
return ImGui::GetBackgroundDrawList();
|
||||
}
|
||||
@@ -1520,10 +1524,14 @@ CIMGUI_API bool igDebugCheckVersionAndDataLayout(const char* version_str,size_t
|
||||
{
|
||||
return ImGui::DebugCheckVersionAndDataLayout(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx);
|
||||
}
|
||||
CIMGUI_API void igSetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)
|
||||
CIMGUI_API void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)
|
||||
{
|
||||
return ImGui::SetAllocatorFunctions(alloc_func,free_func,user_data);
|
||||
}
|
||||
CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)
|
||||
{
|
||||
return ImGui::GetAllocatorFunctions(p_alloc_func,p_free_func,p_user_data);
|
||||
}
|
||||
CIMGUI_API void* igMemAlloc(size_t size)
|
||||
{
|
||||
return ImGui::MemAlloc(size);
|
||||
@@ -1940,13 +1948,13 @@ CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2
|
||||
{
|
||||
return self->AddLine(p1,p2,col,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners,float thickness)
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)
|
||||
{
|
||||
return self->AddRect(p_min,p_max,col,rounding,rounding_corners,thickness);
|
||||
return self->AddRect(p_min,p_max,col,rounding,flags,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners)
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)
|
||||
{
|
||||
return self->AddRectFilled(p_min,p_max,col,rounding,rounding_corners);
|
||||
return self->AddRectFilled(p_min,p_max,col,rounding,flags);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)
|
||||
{
|
||||
@@ -1992,9 +2000,9 @@ CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,fl
|
||||
{
|
||||
return self->AddText(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,bool closed,float thickness)
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)
|
||||
{
|
||||
return self->AddPolyline(points,num_points,col,closed,thickness);
|
||||
return self->AddPolyline(points,num_points,col,flags,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)
|
||||
{
|
||||
@@ -2016,9 +2024,9 @@ CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_textur
|
||||
{
|
||||
return self->AddImageQuad(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners)
|
||||
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)
|
||||
{
|
||||
return self->AddImageRounded(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,rounding_corners);
|
||||
return self->AddImageRounded(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self)
|
||||
{
|
||||
@@ -2036,9 +2044,9 @@ CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
|
||||
{
|
||||
return self->PathFillConvex(col);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)
|
||||
{
|
||||
return self->PathStroke(col,closed,thickness);
|
||||
return self->PathStroke(col,flags,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)
|
||||
{
|
||||
@@ -2056,9 +2064,9 @@ CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImV
|
||||
{
|
||||
return self->PathBezierQuadraticCurveTo(p2,p3,num_segments);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawCornerFlags rounding_corners)
|
||||
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)
|
||||
{
|
||||
return self->PathRect(rect_min,rect_max,rounding,rounding_corners);
|
||||
return self->PathRect(rect_min,rect_max,rounding,flags);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data)
|
||||
{
|
||||
@@ -2140,6 +2148,18 @@ CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self)
|
||||
{
|
||||
return self->_OnChangedVtxOffset();
|
||||
}
|
||||
CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius)
|
||||
{
|
||||
return self->_CalcCircleAutoSegmentCount(radius);
|
||||
}
|
||||
CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)
|
||||
{
|
||||
return self->_PathArcToFastEx(center,radius,a_min_sample,a_max_sample,a_step);
|
||||
}
|
||||
CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)
|
||||
{
|
||||
return self->_PathArcToN(center,radius,a_min,a_max,num_segments);
|
||||
}
|
||||
CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void)
|
||||
{
|
||||
return IM_NEW(ImDrawData)();
|
||||
@@ -2412,6 +2432,22 @@ CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsi
|
||||
{
|
||||
return self->IsGlyphRangeUnused(c_begin,c_last);
|
||||
}
|
||||
CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void)
|
||||
{
|
||||
return IM_NEW(ImGuiViewport)();
|
||||
}
|
||||
CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self)
|
||||
{
|
||||
*pOut = self->GetCenter();
|
||||
}
|
||||
CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self)
|
||||
{
|
||||
*pOut = self->GetWorkCenter();
|
||||
}
|
||||
CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed)
|
||||
{
|
||||
return ImHashData(data,data_size,seed);
|
||||
@@ -2772,6 +2808,10 @@ CIMGUI_API float ImRect_GetHeight(ImRect* self)
|
||||
{
|
||||
return self->GetHeight();
|
||||
}
|
||||
CIMGUI_API float ImRect_GetArea(ImRect* self)
|
||||
{
|
||||
return self->GetArea();
|
||||
}
|
||||
CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self)
|
||||
{
|
||||
*pOut = self->GetTL();
|
||||
@@ -2892,9 +2932,9 @@ CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API void ImDrawListSharedData_SetCircleSegmentMaxError(ImDrawListSharedData* self,float max_error)
|
||||
CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error)
|
||||
{
|
||||
return self->SetCircleSegmentMaxError(max_error);
|
||||
return self->SetCircleTessellationMaxError(max_error);
|
||||
}
|
||||
CIMGUI_API void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self)
|
||||
{
|
||||
@@ -2904,6 +2944,10 @@ CIMGUI_API void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self)
|
||||
{
|
||||
return self->ClearFreeMemory();
|
||||
}
|
||||
CIMGUI_API int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self)
|
||||
{
|
||||
return self->GetDrawListCount();
|
||||
}
|
||||
CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self)
|
||||
{
|
||||
return self->FlattenIntoSingleLayer();
|
||||
@@ -3064,6 +3108,26 @@ CIMGUI_API void ImGuiOldColumns_destroy(ImGuiOldColumns* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(void)
|
||||
{
|
||||
return IM_NEW(ImGuiViewportP)();
|
||||
}
|
||||
CIMGUI_API void ImGuiViewportP_destroy(ImGuiViewportP* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self)
|
||||
{
|
||||
*pOut = self->GetMainRect();
|
||||
}
|
||||
CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self)
|
||||
{
|
||||
*pOut = self->GetWorkRect();
|
||||
}
|
||||
CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self)
|
||||
{
|
||||
return self->UpdateWorkRect();
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void)
|
||||
{
|
||||
return IM_NEW(ImGuiWindowSettings)();
|
||||
@@ -3348,6 +3412,14 @@ CIMGUI_API ImDrawList* igGetForegroundDrawListWindowPtr(ImGuiWindow* window)
|
||||
{
|
||||
return ImGui::GetForegroundDrawList(window);
|
||||
}
|
||||
CIMGUI_API ImDrawList* igGetBackgroundDrawListViewportPtr(ImGuiViewport* viewport)
|
||||
{
|
||||
return ImGui::GetBackgroundDrawList(viewport);
|
||||
}
|
||||
CIMGUI_API ImDrawList* igGetForegroundDrawListViewportPtr(ImGuiViewport* viewport)
|
||||
{
|
||||
return ImGui::GetForegroundDrawList(viewport);
|
||||
}
|
||||
CIMGUI_API void igInitialize(ImGuiContext* context)
|
||||
{
|
||||
return ImGui::Initialize(context);
|
||||
@@ -3372,10 +3444,14 @@ CIMGUI_API void igUpdateMouseMovingWindowEndFrame()
|
||||
{
|
||||
return ImGui::UpdateMouseMovingWindowEndFrame();
|
||||
}
|
||||
CIMGUI_API void igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook)
|
||||
CIMGUI_API ImGuiID igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook)
|
||||
{
|
||||
return ImGui::AddContextHook(context,hook);
|
||||
}
|
||||
CIMGUI_API void igRemoveContextHook(ImGuiContext* context,ImGuiID hook_to_remove)
|
||||
{
|
||||
return ImGui::RemoveContextHook(context,hook_to_remove);
|
||||
}
|
||||
CIMGUI_API void igCallContextHooks(ImGuiContext* context,ImGuiContextHookType type)
|
||||
{
|
||||
return ImGui::CallContextHooks(context,type);
|
||||
@@ -3560,6 +3636,14 @@ CIMGUI_API void igLogToBuffer(int auto_open_depth)
|
||||
{
|
||||
return ImGui::LogToBuffer(auto_open_depth);
|
||||
}
|
||||
CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end)
|
||||
{
|
||||
return ImGui::LogRenderedText(ref_pos,text,text_end);
|
||||
}
|
||||
CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix)
|
||||
{
|
||||
return ImGui::LogSetNextTextDecoration(prefix,suffix);
|
||||
}
|
||||
CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags)
|
||||
{
|
||||
return ImGui::BeginChildEx(name,id,size_arg,border,flags);
|
||||
@@ -3636,13 +3720,9 @@ CIMGUI_API void igActivateItem(ImGuiID id)
|
||||
{
|
||||
return ImGui::ActivateItem(id);
|
||||
}
|
||||
CIMGUI_API void igSetNavID(ImGuiID id,int nav_layer,ImGuiID focus_scope_id)
|
||||
CIMGUI_API void igSetNavID(ImGuiID id,int nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel)
|
||||
{
|
||||
return ImGui::SetNavID(id,nav_layer,focus_scope_id);
|
||||
}
|
||||
CIMGUI_API void igSetNavIDWithRectRel(ImGuiID id,int nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel)
|
||||
{
|
||||
return ImGui::SetNavIDWithRectRel(id,nav_layer,focus_scope_id,rect_rel);
|
||||
return ImGui::SetNavID(id,nav_layer,focus_scope_id,rect_rel);
|
||||
}
|
||||
CIMGUI_API void igPushFocusScope(ImGuiID id)
|
||||
{
|
||||
@@ -3752,6 +3832,10 @@ CIMGUI_API void igTableOpenContextMenu(int column_n)
|
||||
{
|
||||
return ImGui::TableOpenContextMenu(column_n);
|
||||
}
|
||||
CIMGUI_API void igTableSetColumnEnabled(int column_n,bool enabled)
|
||||
{
|
||||
return ImGui::TableSetColumnEnabled(column_n,enabled);
|
||||
}
|
||||
CIMGUI_API void igTableSetColumnWidth(int column_n,float width)
|
||||
{
|
||||
return ImGui::TableSetColumnWidth(column_n,width);
|
||||
@@ -3776,6 +3860,10 @@ CIMGUI_API void igTablePopBackgroundChannel()
|
||||
{
|
||||
return ImGui::TablePopBackgroundChannel();
|
||||
}
|
||||
CIMGUI_API ImGuiTable* igGetCurrentTable()
|
||||
{
|
||||
return ImGui::GetCurrentTable();
|
||||
}
|
||||
CIMGUI_API ImGuiTable* igTableFindByID(ImGuiID id)
|
||||
{
|
||||
return ImGui::TableFindByID(id);
|
||||
@@ -3988,9 +4076,9 @@ CIMGUI_API void igRenderFrameBorder(ImVec2 p_min,ImVec2 p_max,float rounding)
|
||||
{
|
||||
return ImGui::RenderFrameBorder(p_min,p_max,rounding);
|
||||
}
|
||||
CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,int rounding_corners_flags)
|
||||
CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags)
|
||||
{
|
||||
return ImGui::RenderColorRectWithAlphaCheckerboard(draw_list,p_min,p_max,fill_col,grid_step,grid_off,rounding,rounding_corners_flags);
|
||||
return ImGui::RenderColorRectWithAlphaCheckerboard(draw_list,p_min,p_max,fill_col,grid_step,grid_off,rounding,flags);
|
||||
}
|
||||
CIMGUI_API void igRenderNavHighlight(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags)
|
||||
{
|
||||
@@ -4000,10 +4088,6 @@ CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_e
|
||||
{
|
||||
return ImGui::FindRenderedTextEnd(text,text_end);
|
||||
}
|
||||
CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end)
|
||||
{
|
||||
return ImGui::LogRenderedText(ref_pos,text,text_end);
|
||||
}
|
||||
CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale)
|
||||
{
|
||||
return ImGui::RenderArrow(draw_list,pos,col,dir,scale);
|
||||
@@ -4056,9 +4140,9 @@ CIMGUI_API void igScrollbar(ImGuiAxis axis)
|
||||
{
|
||||
return ImGui::Scrollbar(axis);
|
||||
}
|
||||
CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* p_scroll_v,float avail_v,float contents_v,ImDrawCornerFlags rounding_corners)
|
||||
CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* p_scroll_v,float avail_v,float contents_v,ImDrawFlags flags)
|
||||
{
|
||||
return ImGui::ScrollbarEx(bb,id,axis,p_scroll_v,avail_v,contents_v,rounding_corners);
|
||||
return ImGui::ScrollbarEx(bb,id,axis,p_scroll_v,avail_v,contents_v,flags);
|
||||
}
|
||||
CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec2 padding,const ImVec4 bg_col,const ImVec4 tint_col)
|
||||
{
|
||||
@@ -4216,9 +4300,9 @@ CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,const ImDrawList* draw_l
|
||||
{
|
||||
return ImGui::DebugNodeDrawList(window,draw_list,label);
|
||||
}
|
||||
CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImGuiWindow* window,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb)
|
||||
CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb)
|
||||
{
|
||||
return ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(window,draw_list,draw_cmd,show_mesh,show_aabb);
|
||||
return ImGui::DebugNodeDrawCmdShowMeshAndBoundingBox(out_draw_list,draw_list,draw_cmd,show_mesh,show_aabb);
|
||||
}
|
||||
CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label)
|
||||
{
|
||||
@@ -4248,9 +4332,17 @@ CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows,const ch
|
||||
{
|
||||
return ImGui::DebugNodeWindowsList(windows,label);
|
||||
}
|
||||
CIMGUI_API bool igImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas)
|
||||
CIMGUI_API void igDebugNodeViewport(ImGuiViewportP* viewport)
|
||||
{
|
||||
return ImFontAtlasBuildWithStbTruetype(atlas);
|
||||
return ImGui::DebugNodeViewport(viewport);
|
||||
}
|
||||
CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb)
|
||||
{
|
||||
return ImGui::DebugRenderViewportThumbnail(draw_list,viewport,bb);
|
||||
}
|
||||
CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype()
|
||||
{
|
||||
return ImFontAtlasGetBuilderForStbTruetype();
|
||||
}
|
||||
CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas)
|
||||
{
|
||||
@@ -4268,9 +4360,13 @@ CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas)
|
||||
{
|
||||
return ImFontAtlasBuildFinish(atlas);
|
||||
}
|
||||
CIMGUI_API void igImFontAtlasBuildRender1bppRectFromString(ImFontAtlas* atlas,int atlas_x,int atlas_y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value)
|
||||
CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value)
|
||||
{
|
||||
return ImFontAtlasBuildRender1bppRectFromString(atlas,atlas_x,atlas_y,w,h,in_str,in_marker_char,in_marker_pixel_value);
|
||||
return ImFontAtlasBuildRender8bppRectFromString(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value);
|
||||
}
|
||||
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)
|
||||
{
|
||||
return ImFontAtlasBuildRender32bppRectFromString(atlas,x,y,w,h,in_str,in_marker_char,in_marker_pixel_value);
|
||||
}
|
||||
CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor)
|
||||
{
|
||||
|
194
cimgui.h
194
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.80" from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.82" from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
#ifndef CIMGUI_INCLUDED
|
||||
#define CIMGUI_INCLUDED
|
||||
@@ -44,6 +44,7 @@ typedef unsigned __int64 ImU64;
|
||||
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
typedef struct ImGuiTableColumnSettings ImGuiTableColumnSettings;
|
||||
typedef struct ImGuiTableCellData ImGuiTableCellData;
|
||||
typedef struct ImGuiViewportP ImGuiViewportP;
|
||||
typedef struct ImGuiPtrOrIndex ImGuiPtrOrIndex;
|
||||
typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem;
|
||||
typedef struct ImGuiDataTypeTempStorage ImGuiDataTypeTempStorage;
|
||||
@@ -88,6 +89,7 @@ typedef struct ImGuiStoragePair ImGuiStoragePair;
|
||||
typedef struct ImGuiTextRange ImGuiTextRange;
|
||||
typedef struct ImVec4 ImVec4;
|
||||
typedef struct ImVec2 ImVec2;
|
||||
typedef struct ImGuiViewport ImGuiViewport;
|
||||
typedef struct ImGuiTextFilter ImGuiTextFilter;
|
||||
typedef struct ImGuiTextBuffer ImGuiTextBuffer;
|
||||
typedef struct ImGuiTableColumnSortSpecs ImGuiTableColumnSortSpecs;
|
||||
@@ -105,6 +107,7 @@ typedef struct ImColor ImColor;
|
||||
typedef struct ImFontGlyphRangesBuilder ImFontGlyphRangesBuilder;
|
||||
typedef struct ImFontGlyph ImFontGlyph;
|
||||
typedef struct ImFontConfig ImFontConfig;
|
||||
typedef struct ImFontBuilderIO ImFontBuilderIO;
|
||||
typedef struct ImFontAtlas ImFontAtlas;
|
||||
typedef struct ImFont ImFont;
|
||||
typedef struct ImDrawVert ImDrawVert;
|
||||
@@ -124,6 +127,7 @@ struct ImDrawListSplitter;
|
||||
struct ImDrawVert;
|
||||
struct ImFont;
|
||||
struct ImFontAtlas;
|
||||
struct ImFontBuilderIO;
|
||||
struct ImFontConfig;
|
||||
struct ImFontGlyph;
|
||||
struct ImFontGlyphRangesBuilder;
|
||||
@@ -141,6 +145,7 @@ struct ImGuiTableSortSpecs;
|
||||
struct ImGuiTableColumnSortSpecs;
|
||||
struct ImGuiTextBuffer;
|
||||
struct ImGuiTextFilter;
|
||||
struct ImGuiViewport;
|
||||
typedef int ImGuiCol;
|
||||
typedef int ImGuiCond;
|
||||
typedef int ImGuiDataType;
|
||||
@@ -152,7 +157,7 @@ typedef int ImGuiMouseCursor;
|
||||
typedef int ImGuiSortDirection;
|
||||
typedef int ImGuiStyleVar;
|
||||
typedef int ImGuiTableBgTarget;
|
||||
typedef int ImDrawCornerFlags;
|
||||
typedef int ImDrawFlags;
|
||||
typedef int ImDrawListFlags;
|
||||
typedef int ImFontAtlasFlags;
|
||||
typedef int ImGuiBackendFlags;
|
||||
@@ -174,11 +179,14 @@ typedef int ImGuiTableFlags;
|
||||
typedef int ImGuiTableColumnFlags;
|
||||
typedef int ImGuiTableRowFlags;
|
||||
typedef int ImGuiTreeNodeFlags;
|
||||
typedef int ImGuiViewportFlags;
|
||||
typedef int ImGuiWindowFlags;
|
||||
typedef void* ImTextureID;
|
||||
typedef unsigned int ImGuiID;
|
||||
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data);
|
||||
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
|
||||
typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data);
|
||||
typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data);
|
||||
typedef unsigned short ImWchar16;
|
||||
typedef unsigned int ImWchar32;
|
||||
typedef ImWchar16 ImWchar;
|
||||
@@ -275,6 +283,7 @@ typedef struct ImVector_ImGuiStyleMod {int Size;int Capacity;ImGuiStyleMod* Data
|
||||
typedef struct ImVector_ImGuiTabItem {int Size;int Capacity;ImGuiTabItem* Data;} ImVector_ImGuiTabItem;
|
||||
typedef struct ImVector_ImGuiTableColumnSortSpecs {int Size;int Capacity;ImGuiTableColumnSortSpecs* Data;} ImVector_ImGuiTableColumnSortSpecs;
|
||||
typedef struct ImVector_ImGuiTextRange {int Size;int Capacity;ImGuiTextRange* Data;} ImVector_ImGuiTextRange;
|
||||
typedef struct ImVector_ImGuiViewportPPtr {int Size;int Capacity;ImGuiViewportP** Data;} ImVector_ImGuiViewportPPtr;
|
||||
typedef struct ImVector_ImGuiWindowPtr {int Size;int Capacity;ImGuiWindow** Data;} ImVector_ImGuiWindowPtr;
|
||||
typedef struct ImVector_ImTextureID {int Size;int Capacity;ImTextureID* Data;} ImVector_ImTextureID;
|
||||
typedef struct ImVector_ImU32 {int Size;int Capacity;ImU32* Data;} ImVector_ImU32;
|
||||
@@ -340,7 +349,7 @@ typedef enum {
|
||||
ImGuiInputTextFlags_AllowTabInput = 1 << 10,
|
||||
ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11,
|
||||
ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12,
|
||||
ImGuiInputTextFlags_AlwaysInsertMode = 1 << 13,
|
||||
ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13,
|
||||
ImGuiInputTextFlags_ReadOnly = 1 << 14,
|
||||
ImGuiInputTextFlags_Password = 1 << 15,
|
||||
ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
|
||||
@@ -828,7 +837,7 @@ struct ImGuiStyle
|
||||
bool AntiAliasedLinesUseTex;
|
||||
bool AntiAliasedFill;
|
||||
float CurveTessellationTol;
|
||||
float CircleSegmentMaxError;
|
||||
float CircleTessellationMaxError;
|
||||
ImVec4 Colors[ImGuiCol_COUNT];
|
||||
};
|
||||
struct ImGuiIO
|
||||
@@ -1040,17 +1049,21 @@ struct ImDrawListSplitter
|
||||
ImVector_ImDrawChannel _Channels;
|
||||
};
|
||||
typedef enum {
|
||||
ImDrawCornerFlags_None = 0,
|
||||
ImDrawCornerFlags_TopLeft = 1 << 0,
|
||||
ImDrawCornerFlags_TopRight = 1 << 1,
|
||||
ImDrawCornerFlags_BotLeft = 1 << 2,
|
||||
ImDrawCornerFlags_BotRight = 1 << 3,
|
||||
ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight,
|
||||
ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight,
|
||||
ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft,
|
||||
ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight,
|
||||
ImDrawCornerFlags_All = 0xF
|
||||
}ImDrawCornerFlags_;
|
||||
ImDrawFlags_None = 0,
|
||||
ImDrawFlags_Closed = 1 << 0,
|
||||
ImDrawFlags_RoundCornersTopLeft = 1 << 4,
|
||||
ImDrawFlags_RoundCornersTopRight = 1 << 5,
|
||||
ImDrawFlags_RoundCornersBottomLeft = 1 << 6,
|
||||
ImDrawFlags_RoundCornersBottomRight = 1 << 7,
|
||||
ImDrawFlags_RoundCornersNone = 1 << 8,
|
||||
ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
|
||||
ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
|
||||
ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
|
||||
ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight,
|
||||
ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
|
||||
ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll,
|
||||
ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone
|
||||
}ImDrawFlags_;
|
||||
typedef enum {
|
||||
ImDrawListFlags_None = 0,
|
||||
ImDrawListFlags_AntiAliasedLines = 1 << 0,
|
||||
@@ -1079,10 +1092,10 @@ struct ImDrawList
|
||||
struct ImDrawData
|
||||
{
|
||||
bool Valid;
|
||||
ImDrawList** CmdLists;
|
||||
int CmdListsCount;
|
||||
int TotalIdxCount;
|
||||
int TotalVtxCount;
|
||||
ImDrawList** CmdLists;
|
||||
ImVec2 DisplayPos;
|
||||
ImVec2 DisplaySize;
|
||||
ImVec2 FramebufferScale;
|
||||
@@ -1103,7 +1116,7 @@ struct ImFontConfig
|
||||
float GlyphMinAdvanceX;
|
||||
float GlyphMaxAdvanceX;
|
||||
bool MergeMode;
|
||||
unsigned int RasterizerFlags;
|
||||
unsigned int FontBuilderFlags;
|
||||
float RasterizerMultiply;
|
||||
ImWchar EllipsisChar;
|
||||
char Name[40];
|
||||
@@ -1111,8 +1124,9 @@ struct ImFontConfig
|
||||
};
|
||||
struct ImFontGlyph
|
||||
{
|
||||
unsigned int Codepoint : 31;
|
||||
unsigned int Colored : 1;
|
||||
unsigned int Visible : 1;
|
||||
unsigned int Codepoint : 30;
|
||||
float AdvanceX;
|
||||
float X0, Y0, X1, Y1;
|
||||
float U0, V0, U1, V1;
|
||||
@@ -1138,11 +1152,12 @@ typedef enum {
|
||||
}ImFontAtlasFlags_;
|
||||
struct ImFontAtlas
|
||||
{
|
||||
bool Locked;
|
||||
ImFontAtlasFlags Flags;
|
||||
ImTextureID TexID;
|
||||
int TexDesiredWidth;
|
||||
int TexGlyphPadding;
|
||||
bool Locked;
|
||||
bool TexPixelsUseColors;
|
||||
unsigned char* TexPixelsAlpha8;
|
||||
unsigned int* TexPixelsRGBA32;
|
||||
int TexWidth;
|
||||
@@ -1153,6 +1168,8 @@ struct ImFontAtlas
|
||||
ImVector_ImFontAtlasCustomRect CustomRects;
|
||||
ImVector_ImFontConfig ConfigData;
|
||||
ImVec4 TexUvLines[(63) + 1];
|
||||
const ImFontBuilderIO* FontBuilderIO;
|
||||
unsigned int FontBuilderFlags;
|
||||
int PackIdMouseCursors;
|
||||
int PackIdLines;
|
||||
};
|
||||
@@ -1175,6 +1192,20 @@ struct ImFont
|
||||
int MetricsTotalSurface;
|
||||
ImU8 Used4kPagesMap[(0xFFFF +1)/4096/8];
|
||||
};
|
||||
typedef enum {
|
||||
ImGuiViewportFlags_None = 0,
|
||||
ImGuiViewportFlags_IsPlatformWindow = 1 << 0,
|
||||
ImGuiViewportFlags_IsPlatformMonitor = 1 << 1,
|
||||
ImGuiViewportFlags_OwnedByApp = 1 << 2
|
||||
}ImGuiViewportFlags_;
|
||||
struct ImGuiViewport
|
||||
{
|
||||
ImGuiViewportFlags Flags;
|
||||
ImVec2 Pos;
|
||||
ImVec2 Size;
|
||||
ImVec2 WorkPos;
|
||||
ImVec2 WorkSize;
|
||||
};
|
||||
struct StbUndoRecord
|
||||
{
|
||||
int where;
|
||||
@@ -1237,7 +1268,8 @@ struct ImDrawListSharedData
|
||||
float CircleSegmentMaxError;
|
||||
ImVec4 ClipRectFullscreen;
|
||||
ImDrawListFlags InitialFlags;
|
||||
ImVec2 ArcFastVtx[12 * 1];
|
||||
ImVec2 ArcFastVtx[48];
|
||||
float ArcFastRadiusCutoff;
|
||||
ImU8 CircleSegmentCounts[64];
|
||||
const ImVec4* TexUvLines;
|
||||
};
|
||||
@@ -1265,7 +1297,8 @@ typedef enum {
|
||||
ImGuiItemStatusFlags_ToggledSelection = 1 << 3,
|
||||
ImGuiItemStatusFlags_ToggledOpen = 1 << 4,
|
||||
ImGuiItemStatusFlags_HasDeactivated = 1 << 5,
|
||||
ImGuiItemStatusFlags_Deactivated = 1 << 6
|
||||
ImGuiItemStatusFlags_Deactivated = 1 << 6,
|
||||
ImGuiItemStatusFlags_HoveredWindow = 1 << 7
|
||||
}ImGuiItemStatusFlags_;
|
||||
typedef enum {
|
||||
ImGuiButtonFlags_PressedOnClick = 1 << 4,
|
||||
@@ -1340,9 +1373,9 @@ typedef enum {
|
||||
typedef enum {
|
||||
ImGuiInputSource_None = 0,
|
||||
ImGuiInputSource_Mouse,
|
||||
ImGuiInputSource_Keyboard,
|
||||
ImGuiInputSource_Gamepad,
|
||||
ImGuiInputSource_Nav,
|
||||
ImGuiInputSource_NavKeyboard,
|
||||
ImGuiInputSource_NavGamepad,
|
||||
ImGuiInputSource_COUNT
|
||||
}ImGuiInputSource;
|
||||
typedef enum {
|
||||
@@ -1428,6 +1461,7 @@ struct ImGuiGroupData
|
||||
float BackupCurrLineTextBaseOffset;
|
||||
ImGuiID BackupActiveIdIsAlive;
|
||||
bool BackupActiveIdPreviousFrameIsAlive;
|
||||
bool BackupHoveredIdIsAlive;
|
||||
bool EmitItem;
|
||||
};
|
||||
struct ImGuiMenuColumns
|
||||
@@ -1560,6 +1594,18 @@ struct ImGuiOldColumns
|
||||
ImVector_ImGuiOldColumnData Columns;
|
||||
ImDrawListSplitter Splitter;
|
||||
};
|
||||
struct ImGuiViewportP
|
||||
{
|
||||
ImGuiViewport _ImGuiViewport;
|
||||
int DrawListsLastFrame[2];
|
||||
ImDrawList* DrawLists[2];
|
||||
ImDrawData DrawDataP;
|
||||
ImDrawDataBuilder DrawDataBuilder;
|
||||
ImVec2 WorkOffsetMin;
|
||||
ImVec2 WorkOffsetMax;
|
||||
ImVec2 CurrWorkOffsetMin;
|
||||
ImVec2 CurrWorkOffsetMax;
|
||||
};
|
||||
struct ImGuiWindowSettings
|
||||
{
|
||||
ImGuiID ID;
|
||||
@@ -1600,9 +1646,10 @@ struct ImGuiStackSizes
|
||||
short SizeOfGroupStack;
|
||||
short SizeOfBeginPopupStack;
|
||||
};
|
||||
typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown }ImGuiContextHookType;
|
||||
typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType;
|
||||
struct ImGuiContextHook
|
||||
{
|
||||
ImGuiID HookId;
|
||||
ImGuiContextHookType Type;
|
||||
ImGuiID Owner;
|
||||
ImGuiContextHookCallback Callback;
|
||||
@@ -1637,7 +1684,6 @@ struct ImGuiContext
|
||||
int WindowsActiveCount;
|
||||
ImGuiWindow* CurrentWindow;
|
||||
ImGuiWindow* HoveredWindow;
|
||||
ImGuiWindow* HoveredRootWindow;
|
||||
ImGuiWindow* HoveredWindowUnderMovingWindow;
|
||||
ImGuiWindow* MovingWindow;
|
||||
ImGuiWindow* WheelingWindow;
|
||||
@@ -1684,6 +1730,7 @@ struct ImGuiContext
|
||||
ImVector_ImGuiGroupData GroupStack;
|
||||
ImVector_ImGuiPopupData OpenPopupStack;
|
||||
ImVector_ImGuiPopupData BeginPopupStack;
|
||||
ImVector_ImGuiViewportPPtr Viewports;
|
||||
ImGuiWindow* NavWindow;
|
||||
ImGuiID NavId;
|
||||
ImGuiID NavFocusScopeId;
|
||||
@@ -1727,18 +1774,14 @@ struct ImGuiContext
|
||||
float NavWindowingTimer;
|
||||
float NavWindowingHighlightAlpha;
|
||||
bool NavWindowingToggleLayer;
|
||||
ImGuiWindow* FocusRequestCurrWindow;
|
||||
ImGuiWindow* FocusRequestNextWindow;
|
||||
int FocusRequestCurrCounterRegular;
|
||||
int FocusRequestCurrCounterTabStop;
|
||||
int FocusRequestNextCounterRegular;
|
||||
int FocusRequestNextCounterTabStop;
|
||||
bool FocusTabPressed;
|
||||
ImDrawData DrawData;
|
||||
ImDrawDataBuilder DrawDataBuilder;
|
||||
ImGuiWindow* TabFocusRequestCurrWindow;
|
||||
ImGuiWindow* TabFocusRequestNextWindow;
|
||||
int TabFocusRequestCurrCounterRegular;
|
||||
int TabFocusRequestCurrCounterTabStop;
|
||||
int TabFocusRequestNextCounterRegular;
|
||||
int TabFocusRequestNextCounterTabStop;
|
||||
bool TabFocusPressed;
|
||||
float DimBgRatio;
|
||||
ImDrawList BackgroundDrawList;
|
||||
ImDrawList ForegroundDrawList;
|
||||
ImGuiMouseCursor MouseCursor;
|
||||
bool DragDropActive;
|
||||
bool DragDropWithinSource;
|
||||
@@ -1795,10 +1838,13 @@ struct ImGuiContext
|
||||
ImChunkStream_ImGuiWindowSettings SettingsWindows;
|
||||
ImChunkStream_ImGuiTableSettings SettingsTables;
|
||||
ImVector_ImGuiContextHook Hooks;
|
||||
ImGuiID HookIdNext;
|
||||
bool LogEnabled;
|
||||
ImGuiLogType LogType;
|
||||
ImFileHandle LogFile;
|
||||
ImGuiTextBuffer LogBuffer;
|
||||
const char* LogNextPrefix;
|
||||
const char* LogNextSuffix;
|
||||
float LogLinePosY;
|
||||
bool LogLineFirstItem;
|
||||
int LogDepthRef;
|
||||
@@ -2138,9 +2184,10 @@ struct ImGuiTable
|
||||
ImGuiTableColumnIdx HeldHeaderColumn;
|
||||
ImGuiTableColumnIdx ReorderColumn;
|
||||
ImGuiTableColumnIdx ReorderColumnDir;
|
||||
ImGuiTableColumnIdx LeftMostEnabledColumn;
|
||||
ImGuiTableColumnIdx RightMostEnabledColumn;
|
||||
ImGuiTableColumnIdx LeftMostStretchedColumn;
|
||||
ImGuiTableColumnIdx RightMostStretchedColumn;
|
||||
ImGuiTableColumnIdx RightMostEnabledColumn;
|
||||
ImGuiTableColumnIdx ContextPopupColumn;
|
||||
ImGuiTableColumnIdx FreezeRowsRequest;
|
||||
ImGuiTableColumnIdx FreezeRowsCount;
|
||||
@@ -2186,6 +2233,10 @@ struct ImGuiTableSettings
|
||||
ImGuiTableColumnIdx ColumnsCountMax;
|
||||
bool WantApply;
|
||||
};
|
||||
struct ImFontBuilderIO
|
||||
{
|
||||
bool (*FontBuilder_Build)(ImFontAtlas* atlas);
|
||||
};
|
||||
#else
|
||||
struct GLFWwindow;
|
||||
struct SDL_Window;
|
||||
@@ -2231,6 +2282,7 @@ typedef ImVector<ImGuiStyleMod> ImVector_ImGuiStyleMod;
|
||||
typedef ImVector<ImGuiTabItem> ImVector_ImGuiTabItem;
|
||||
typedef ImVector<ImGuiTableColumnSortSpecs> ImVector_ImGuiTableColumnSortSpecs;
|
||||
typedef ImVector<ImGuiTextRange> ImVector_ImGuiTextRange;
|
||||
typedef ImVector<ImGuiViewportP*> ImVector_ImGuiViewportPPtr;
|
||||
typedef ImVector<ImGuiWindow*> ImVector_ImGuiWindowPtr;
|
||||
typedef ImVector<ImTextureID> ImVector_ImTextureID;
|
||||
typedef ImVector<ImU32> ImVector_ImU32;
|
||||
@@ -2465,11 +2517,10 @@ CIMGUI_API bool igCollapsingHeaderBoolPtr(const char* label,bool* p_visible,ImGu
|
||||
CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond);
|
||||
CIMGUI_API bool igSelectableBool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2 size);
|
||||
CIMGUI_API bool igSelectableBoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2 size);
|
||||
CIMGUI_API bool igBeginListBox(const char* label,const ImVec2 size);
|
||||
CIMGUI_API void igEndListBox(void);
|
||||
CIMGUI_API bool igListBoxStr_arr(const char* label,int* current_item,const char* const items[],int items_count,int height_in_items);
|
||||
CIMGUI_API bool igListBoxFnBoolPtr(const char* label,int* current_item,bool(*items_getter)(void* data,int idx,const char** out_text),void* data,int items_count,int height_in_items);
|
||||
CIMGUI_API bool igListBoxHeaderVec2(const char* label,const ImVec2 size);
|
||||
CIMGUI_API bool igListBoxHeaderInt(const char* label,int items_count,int height_in_items);
|
||||
CIMGUI_API void igListBoxFooter(void);
|
||||
CIMGUI_API void igPlotLinesFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
CIMGUI_API void igPlotLinesFnFloatPtr(const char* label,float(*values_getter)(void* data,int idx),void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size);
|
||||
CIMGUI_API void igPlotHistogramFloatPtr(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride);
|
||||
@@ -2505,7 +2556,7 @@ CIMGUI_API void igEndTable(void);
|
||||
CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height);
|
||||
CIMGUI_API bool igTableNextColumn(void);
|
||||
CIMGUI_API bool igTableSetColumnIndex(int column_n);
|
||||
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImU32 user_id);
|
||||
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id);
|
||||
CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows);
|
||||
CIMGUI_API void igTableHeadersRow(void);
|
||||
CIMGUI_API void igTableHeader(const char* label);
|
||||
@@ -2535,6 +2586,7 @@ CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename);
|
||||
CIMGUI_API void igLogToClipboard(int auto_open_depth);
|
||||
CIMGUI_API void igLogFinish(void);
|
||||
CIMGUI_API void igLogButtons(void);
|
||||
CIMGUI_API void igLogTextV(const char* fmt,va_list args);
|
||||
CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags);
|
||||
CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond);
|
||||
CIMGUI_API void igEndDragDropSource(void);
|
||||
@@ -2563,11 +2615,12 @@ CIMGUI_API void igGetItemRectMin(ImVec2 *pOut);
|
||||
CIMGUI_API void igGetItemRectMax(ImVec2 *pOut);
|
||||
CIMGUI_API void igGetItemRectSize(ImVec2 *pOut);
|
||||
CIMGUI_API void igSetItemAllowOverlap(void);
|
||||
CIMGUI_API ImGuiViewport* igGetMainViewport(void);
|
||||
CIMGUI_API bool igIsRectVisibleNil(const ImVec2 size);
|
||||
CIMGUI_API bool igIsRectVisibleVec2(const ImVec2 rect_min,const ImVec2 rect_max);
|
||||
CIMGUI_API double igGetTime(void);
|
||||
CIMGUI_API int igGetFrameCount(void);
|
||||
CIMGUI_API ImDrawList* igGetBackgroundDrawList(void);
|
||||
CIMGUI_API ImDrawList* igGetBackgroundDrawListNil(void);
|
||||
CIMGUI_API ImDrawList* igGetForegroundDrawListNil(void);
|
||||
CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void);
|
||||
CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx);
|
||||
@@ -2609,7 +2662,8 @@ CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size
|
||||
CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename);
|
||||
CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size);
|
||||
CIMGUI_API bool igDebugCheckVersionAndDataLayout(const char* version_str,size_t sz_io,size_t sz_style,size_t sz_vec2,size_t sz_vec4,size_t sz_drawvert,size_t sz_drawidx);
|
||||
CIMGUI_API void igSetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data);
|
||||
CIMGUI_API void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data);
|
||||
CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data);
|
||||
CIMGUI_API void* igMemAlloc(size_t size);
|
||||
CIMGUI_API void igMemFree(void* ptr);
|
||||
CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void);
|
||||
@@ -2714,8 +2768,8 @@ CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners);
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left);
|
||||
CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col);
|
||||
@@ -2727,23 +2781,23 @@ CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float ra
|
||||
CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments);
|
||||
CIMGUI_API void ImDrawList_AddTextVec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end);
|
||||
CIMGUI_API void ImDrawList_AddTextFontPtr(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_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col);
|
||||
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_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners);
|
||||
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos);
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments);
|
||||
CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12);
|
||||
CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments);
|
||||
CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments);
|
||||
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawCornerFlags rounding_corners);
|
||||
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data);
|
||||
CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self);
|
||||
CIMGUI_API ImDrawList* ImDrawList_CloneOutput(ImDrawList* self);
|
||||
@@ -2764,6 +2818,9 @@ CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList__OnChangedTextureID(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self);
|
||||
CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius);
|
||||
CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step);
|
||||
CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments);
|
||||
CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void);
|
||||
CIMGUI_API void ImDrawData_destroy(ImDrawData* self);
|
||||
CIMGUI_API void ImDrawData_Clear(ImDrawData* self);
|
||||
@@ -2832,6 +2889,10 @@ CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool ov
|
||||
CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible);
|
||||
CIMGUI_API void ImFont_SetFallbackChar(ImFont* self,ImWchar c);
|
||||
CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last);
|
||||
CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void);
|
||||
CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self);
|
||||
CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self);
|
||||
CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self);
|
||||
CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed);
|
||||
CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImU32 seed);
|
||||
CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b);
|
||||
@@ -2921,6 +2982,7 @@ CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self);
|
||||
CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self);
|
||||
CIMGUI_API float ImRect_GetWidth(ImRect* self);
|
||||
CIMGUI_API float ImRect_GetHeight(ImRect* self);
|
||||
CIMGUI_API float ImRect_GetArea(ImRect* self);
|
||||
CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self);
|
||||
CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self);
|
||||
CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self);
|
||||
@@ -2951,9 +3013,10 @@ CIMGUI_API void ImBitVector_SetBit(ImBitVector* self,int n);
|
||||
CIMGUI_API void ImBitVector_ClearBit(ImBitVector* self,int n);
|
||||
CIMGUI_API ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(void);
|
||||
CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self);
|
||||
CIMGUI_API void ImDrawListSharedData_SetCircleSegmentMaxError(ImDrawListSharedData* self,float max_error);
|
||||
CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error);
|
||||
CIMGUI_API void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self);
|
||||
CIMGUI_API void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self);
|
||||
CIMGUI_API int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self);
|
||||
CIMGUI_API void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self);
|
||||
CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleModInt(ImGuiStyleVar idx,int v);
|
||||
CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self);
|
||||
@@ -2994,6 +3057,11 @@ CIMGUI_API ImGuiOldColumnData* ImGuiOldColumnData_ImGuiOldColumnData(void);
|
||||
CIMGUI_API void ImGuiOldColumnData_destroy(ImGuiOldColumnData* self);
|
||||
CIMGUI_API ImGuiOldColumns* ImGuiOldColumns_ImGuiOldColumns(void);
|
||||
CIMGUI_API void ImGuiOldColumns_destroy(ImGuiOldColumns* self);
|
||||
CIMGUI_API ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(void);
|
||||
CIMGUI_API void ImGuiViewportP_destroy(ImGuiViewportP* self);
|
||||
CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self);
|
||||
CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self);
|
||||
CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self);
|
||||
CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void);
|
||||
CIMGUI_API void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self);
|
||||
CIMGUI_API char* ImGuiWindowSettings_GetName(ImGuiWindowSettings* self);
|
||||
@@ -3065,13 +3133,16 @@ CIMGUI_API void igBringWindowToDisplayBack(ImGuiWindow* window);
|
||||
CIMGUI_API void igSetCurrentFont(ImFont* font);
|
||||
CIMGUI_API ImFont* igGetDefaultFont(void);
|
||||
CIMGUI_API ImDrawList* igGetForegroundDrawListWindowPtr(ImGuiWindow* window);
|
||||
CIMGUI_API ImDrawList* igGetBackgroundDrawListViewportPtr(ImGuiViewport* viewport);
|
||||
CIMGUI_API ImDrawList* igGetForegroundDrawListViewportPtr(ImGuiViewport* viewport);
|
||||
CIMGUI_API void igInitialize(ImGuiContext* context);
|
||||
CIMGUI_API void igShutdown(ImGuiContext* context);
|
||||
CIMGUI_API void igUpdateHoveredWindowAndCaptureFlags(void);
|
||||
CIMGUI_API void igStartMouseMovingWindow(ImGuiWindow* window);
|
||||
CIMGUI_API void igUpdateMouseMovingWindowNewFrame(void);
|
||||
CIMGUI_API void igUpdateMouseMovingWindowEndFrame(void);
|
||||
CIMGUI_API void igAddContextHook(ImGuiContext* context,const ImGuiContextHook* hook);
|
||||
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 igMarkIniSettingsDirtyNil(void);
|
||||
CIMGUI_API void igMarkIniSettingsDirtyWindowPtr(ImGuiWindow* window);
|
||||
@@ -3118,6 +3189,8 @@ CIMGUI_API void igGetContentRegionMaxAbs(ImVec2 *pOut);
|
||||
CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess);
|
||||
CIMGUI_API void igLogBegin(ImGuiLogType type,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);
|
||||
CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,bool border,ImGuiWindowFlags flags);
|
||||
CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags);
|
||||
CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup);
|
||||
@@ -3137,8 +3210,7 @@ CIMGUI_API float igGetNavInputAmount(ImGuiNavInput n,ImGuiInputReadMode mode);
|
||||
CIMGUI_API void igGetNavInputAmount2d(ImVec2 *pOut,ImGuiNavDirSourceFlags dir_sources,ImGuiInputReadMode mode,float slow_factor,float fast_factor);
|
||||
CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate);
|
||||
CIMGUI_API void igActivateItem(ImGuiID id);
|
||||
CIMGUI_API void igSetNavID(ImGuiID id,int nav_layer,ImGuiID focus_scope_id);
|
||||
CIMGUI_API void igSetNavIDWithRectRel(ImGuiID id,int nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel);
|
||||
CIMGUI_API void igSetNavID(ImGuiID id,int nav_layer,ImGuiID focus_scope_id,const ImRect rect_rel);
|
||||
CIMGUI_API void igPushFocusScope(ImGuiID id);
|
||||
CIMGUI_API void igPopFocusScope(void);
|
||||
CIMGUI_API ImGuiID igGetFocusedFocusScope(void);
|
||||
@@ -3166,12 +3238,14 @@ CIMGUI_API ImGuiOldColumns* igFindOrCreateColumns(ImGuiWindow* window,ImGuiID id
|
||||
CIMGUI_API float igGetColumnOffsetFromNorm(const ImGuiOldColumns* columns,float offset_norm);
|
||||
CIMGUI_API float igGetColumnNormFromOffset(const ImGuiOldColumns* columns,float offset);
|
||||
CIMGUI_API void igTableOpenContextMenu(int column_n);
|
||||
CIMGUI_API void igTableSetColumnEnabled(int column_n,bool enabled);
|
||||
CIMGUI_API void igTableSetColumnWidth(int column_n,float width);
|
||||
CIMGUI_API void igTableSetColumnSortDirection(int column_n,ImGuiSortDirection sort_direction,bool append_to_sort_specs);
|
||||
CIMGUI_API int igTableGetHoveredColumn(void);
|
||||
CIMGUI_API float igTableGetHeaderRowHeight(void);
|
||||
CIMGUI_API void igTablePushBackgroundChannel(void);
|
||||
CIMGUI_API void igTablePopBackgroundChannel(void);
|
||||
CIMGUI_API ImGuiTable* igGetCurrentTable(void);
|
||||
CIMGUI_API ImGuiTable* igTableFindByID(ImGuiID id);
|
||||
CIMGUI_API bool igBeginTableEx(const char* name,ImGuiID id,int columns_count,ImGuiTableFlags flags,const ImVec2 outer_size,float inner_width);
|
||||
CIMGUI_API void igTableBeginInitMemory(ImGuiTable* table,int columns_count);
|
||||
@@ -3225,10 +3299,9 @@ CIMGUI_API void igRenderTextClippedEx(ImDrawList* draw_list,const ImVec2 pos_min
|
||||
CIMGUI_API void igRenderTextEllipsis(ImDrawList* draw_list,const ImVec2 pos_min,const ImVec2 pos_max,float clip_max_x,float ellipsis_max_x,const char* text,const char* text_end,const ImVec2* text_size_if_known);
|
||||
CIMGUI_API void igRenderFrame(ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,bool border,float rounding);
|
||||
CIMGUI_API void igRenderFrameBorder(ImVec2 p_min,ImVec2 p_max,float rounding);
|
||||
CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,int rounding_corners_flags);
|
||||
CIMGUI_API void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list,ImVec2 p_min,ImVec2 p_max,ImU32 fill_col,float grid_step,ImVec2 grid_off,float rounding,ImDrawFlags flags);
|
||||
CIMGUI_API void igRenderNavHighlight(const ImRect bb,ImGuiID id,ImGuiNavHighlightFlags flags);
|
||||
CIMGUI_API const char* igFindRenderedTextEnd(const char* text,const char* text_end);
|
||||
CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const char* text_end);
|
||||
CIMGUI_API void igRenderArrow(ImDrawList* draw_list,ImVec2 pos,ImU32 col,ImGuiDir dir,float scale);
|
||||
CIMGUI_API void igRenderBullet(ImDrawList* draw_list,ImVec2 pos,ImU32 col);
|
||||
CIMGUI_API void igRenderCheckMark(ImDrawList* draw_list,ImVec2 pos,ImU32 col,float sz);
|
||||
@@ -3242,7 +3315,7 @@ CIMGUI_API bool igCloseButton(ImGuiID id,const ImVec2 pos);
|
||||
CIMGUI_API bool igCollapseButton(ImGuiID id,const ImVec2 pos);
|
||||
CIMGUI_API bool igArrowButtonEx(const char* str_id,ImGuiDir dir,ImVec2 size_arg,ImGuiButtonFlags flags);
|
||||
CIMGUI_API void igScrollbar(ImGuiAxis axis);
|
||||
CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* p_scroll_v,float avail_v,float contents_v,ImDrawCornerFlags rounding_corners);
|
||||
CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,float* p_scroll_v,float avail_v,float contents_v,ImDrawFlags flags);
|
||||
CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec2 padding,const ImVec4 bg_col,const ImVec4 tint_col);
|
||||
CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis);
|
||||
CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis);
|
||||
@@ -3282,7 +3355,7 @@ CIMGUI_API void igDebugDrawItemRect(ImU32 col);
|
||||
CIMGUI_API void igDebugStartItemPicker(void);
|
||||
CIMGUI_API void igDebugNodeColumns(ImGuiOldColumns* columns);
|
||||
CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,const ImDrawList* draw_list,const char* label);
|
||||
CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImGuiWindow* window,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb);
|
||||
CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb);
|
||||
CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label);
|
||||
CIMGUI_API void igDebugNodeTabBar(ImGuiTabBar* tab_bar,const char* label);
|
||||
CIMGUI_API void igDebugNodeTable(ImGuiTable* table);
|
||||
@@ -3290,12 +3363,15 @@ CIMGUI_API void igDebugNodeTableSettings(ImGuiTableSettings* settings);
|
||||
CIMGUI_API void igDebugNodeWindow(ImGuiWindow* window,const char* label);
|
||||
CIMGUI_API void igDebugNodeWindowSettings(ImGuiWindowSettings* settings);
|
||||
CIMGUI_API void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows,const char* label);
|
||||
CIMGUI_API bool igImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igDebugNodeViewport(ImGuiViewportP* viewport);
|
||||
CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb);
|
||||
CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype(void);
|
||||
CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent);
|
||||
CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque);
|
||||
CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas);
|
||||
CIMGUI_API void igImFontAtlasBuildRender1bppRectFromString(ImFontAtlas* atlas,int atlas_x,int atlas_y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value);
|
||||
CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value);
|
||||
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);
|
||||
|
||||
|
@@ -165,8 +165,11 @@ local function parse_enum_value(value, allenums,dontpost)
|
||||
--already in allenums
|
||||
if allenums[clean(value)] then return allenums[clean(value)] end
|
||||
--must be several and operators
|
||||
--precedence order (hope not ())
|
||||
assert(not value:match("[%(%)]"))
|
||||
------------precedence order (hope not ())
|
||||
--first drop outer ()
|
||||
value = value:gsub("^(%()",""):gsub("(%))$","")
|
||||
assert(not value:match("[%(%)]"),value)
|
||||
|
||||
local several,seps = strsplit(value,"([<>&|~%+]+)")
|
||||
--M.prtable(value,several,seps)
|
||||
assert(#seps+1==#several)
|
||||
@@ -182,6 +185,9 @@ local function parse_enum_value(value, allenums,dontpost)
|
||||
local val2 = clean(several[i+1])
|
||||
if allenums[val1] then val1 = allenums[val1] end
|
||||
if allenums[val2] then val2 = allenums[val2] end
|
||||
--clean 1u
|
||||
if type(val1)=="string" then val1 = val1:gsub("(%d)(u)$","%1") end
|
||||
if type(val2)=="string" then val2 = val2:gsub("(%d)(u)$","%1") end
|
||||
--for getting numbers from "1ULL"
|
||||
if type(val1)=="string" then val1 = loadstring("return "..val1)() end
|
||||
if type(val2)=="string" then val2 = loadstring("return "..val2)() end
|
||||
@@ -281,7 +287,7 @@ local function getRE()
|
||||
typedef_re = "^\n*%s*(typedef[^;]+;)",
|
||||
typedef_st_re = "^\n*(typedef%s+struct%s*%b{}.-;)",
|
||||
functypedef_re = "^\n*%s*(typedef[%w%s%*_]+%(%s*%*%s*[%w_]+%s*%)%s*%b()%s*;)",
|
||||
functypedef_re = "^\n*%s*(typedef[%w%s%*_]+%([^*]*%*%s*[%w_]+%s*%)%s*%b()%s*;)",
|
||||
functypedef_re = "^\n*%s*(typedef[%w%s%*_]+%([^*]*%*?%s*[%w_]+%s*%)%s*%b()%s*;)",
|
||||
--vardef_re = "^\n*([^;{}%(%)]+;)",
|
||||
--change for things as
|
||||
--[[ImU8 Used4kPagesMap[((sizeof(ImWchar16) == 2 ? 0xFFFF : 0x10FFFF)+1)/4096/8];]]
|
||||
@@ -414,14 +420,13 @@ local function parseItems(txt,linenumdict, itparent, dumpit)
|
||||
end
|
||||
M.parseItems = parseItems
|
||||
local function name_overloadsAlgo(v)
|
||||
|
||||
local aa = {}
|
||||
local bb = {}
|
||||
local done = {}
|
||||
local maxnum = 0
|
||||
for i,t in ipairs(v) do
|
||||
bb[i] = ""
|
||||
--local signature = t.signature:sub(2,-2) -- without parenthesis
|
||||
--inside parenthesis
|
||||
local signature = t.signature:match("%b()")
|
||||
signature = signature:sub(2,-2)
|
||||
--add const function
|
||||
@@ -430,47 +435,52 @@ local function name_overloadsAlgo(v)
|
||||
end
|
||||
aa[i] = {}
|
||||
local num = 1
|
||||
--for typec in t.signature:gmatch(".-([^,%(%s]+)[,%)]") do
|
||||
--for typec in t.signature:gmatch(".-([^,%(]+)[,%)]") do
|
||||
--for typec in signature:gmatch(".-([^,]+),?") do
|
||||
for typec in signature:gsub("(%(.-%))", function(x) return x:gsub(",","\0") end):gmatch(".-([^,]+),?") do
|
||||
--typec = typec:gsub
|
||||
aa[i][num] = typec:gsub("%z+", ",")
|
||||
num = num + 1
|
||||
end
|
||||
num = num - 1
|
||||
maxnum = (num > maxnum) and num or maxnum
|
||||
end
|
||||
|
||||
|
||||
for l=1,maxnum do
|
||||
local keys = {}
|
||||
local diferent = true
|
||||
local equal = true
|
||||
for i=1,#v do
|
||||
aa[i][l] = aa[i][l] or "nil"
|
||||
keys[aa[i][l]] = 1 + (aa[i][l] and keys[aa[i][l]] or 0)
|
||||
keys[aa[i][l]] = 1 + (keys[aa[i][l]] or 0)
|
||||
if not done[i] then
|
||||
for j=i+1,#v do
|
||||
if not done[j] then
|
||||
if aa[i][l] == aa[j][l] then
|
||||
diferent = false
|
||||
else
|
||||
equal = false
|
||||
for j=i+1,#v do
|
||||
if not done[j] then
|
||||
if aa[i][l] == aa[j][l] then
|
||||
diferent = false
|
||||
else
|
||||
equal = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if not equal then -- not all the same
|
||||
for i=1,#v do
|
||||
if not done[i] then
|
||||
bb[i] = bb[i]..(aa[i][l]=="nil" and "" or aa[i][l])
|
||||
if keys[aa[i][l]] == 1 then
|
||||
done[i] = true
|
||||
end
|
||||
-- if keys[aa[i][l]] == 1 then
|
||||
-- done[i] = true
|
||||
-- end
|
||||
end
|
||||
end
|
||||
end
|
||||
--test done
|
||||
for i=1,#v do
|
||||
done[i] = true
|
||||
for j=1,#v do
|
||||
if i~=j and bb[i]==bb[j] then
|
||||
done[i] = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
--avoid empty postfix which will be reserved to generic
|
||||
for i,v in ipairs(bb) do if v=="" then bb[i]="Nil" end end
|
||||
@@ -493,6 +503,7 @@ local function typetoStr(typ)
|
||||
typ = typ:gsub("float","Float")
|
||||
typ = typ:gsub("uInt","Uint")
|
||||
typ = typ:gsub("ImGui","")
|
||||
--typ = typ:gsub("ImStr","STR")
|
||||
typ = typ:gsub("Im","")
|
||||
typ = typ:gsub("[<>]","")
|
||||
return typ
|
||||
@@ -769,6 +780,84 @@ local function AdjustArguments(FP)
|
||||
end
|
||||
end
|
||||
end
|
||||
local function ADDIMSTR_S(FP)
|
||||
local defsT = FP.defsT
|
||||
local newcdefs = {}
|
||||
for numcdef,t in ipairs(FP.funcdefs) do
|
||||
newcdefs[#newcdefs+1] = t
|
||||
if t.cimguiname then
|
||||
local cimf = defsT[t.cimguiname]
|
||||
local defT = cimf[t.signature]
|
||||
|
||||
--if isIMSTR return generate _S version
|
||||
local isIMSTR = false
|
||||
for i,arg in ipairs(defT.argsT) do
|
||||
if arg.type == "ImStrv" then isIMSTR=true;break end
|
||||
end
|
||||
--if defT.ret=="ImVec2" or defT.ret=="ImVec4" or defT.ret=="ImColor" then
|
||||
--if isIMSTR then print(t.cimguiname,defT.ov_cimguiname,defT.argsoriginal,"isIMSTR") end
|
||||
if isIMSTR then
|
||||
--passing as a pointer arg
|
||||
local defT2 = {}
|
||||
--first strings
|
||||
for k,v in pairs(defT) do
|
||||
defT2[k] = v
|
||||
end
|
||||
--then argsT table
|
||||
defT2.argsT = {}
|
||||
for k,v in ipairs(defT.argsT) do
|
||||
local typ = v.type == "ImStrv" and "const char*" or v.type
|
||||
table.insert(defT2.argsT,{type=typ,name=v.name})
|
||||
end
|
||||
--defaults table
|
||||
defT2.defaults = {}
|
||||
for k,v in pairs(defT.defaults) do
|
||||
defT2.defaults[k] = v
|
||||
end
|
||||
defT2.args = defT2.args:gsub("ImStrv","const char*")
|
||||
--recreate call_args for wrapping into ImStrv
|
||||
local caar
|
||||
if #defT.argsT > 0 then
|
||||
caar = "("
|
||||
for i,v in ipairs(defT.argsT) do
|
||||
local name = v.name
|
||||
if v.ret then --function pointer
|
||||
caar = caar .. name .. ","
|
||||
else
|
||||
local callname = v.reftoptr and "*"..name or name
|
||||
caar = caar .. callname .. ","
|
||||
end
|
||||
end
|
||||
caar = caar:sub(1,-2)..")"
|
||||
else
|
||||
caar = "()"
|
||||
end
|
||||
defT2.call_args = caar
|
||||
------------------
|
||||
defT2.signature = defT.signature:gsub("ImStrv","const char*") --.."_S"
|
||||
defT2.ov_cimguiname = defT2.ov_cimguiname .. "_Strv"
|
||||
defT2.isIMSTR_S = 1
|
||||
-- check there is not an equal version in imgui_stname
|
||||
local doadd = true
|
||||
for i,dd in ipairs(cimf) do
|
||||
if dd.signature == defT2.signature then
|
||||
doadd = false;
|
||||
print("skip _S addition",defT2.cimguiname)
|
||||
break
|
||||
end
|
||||
end
|
||||
--add _S version
|
||||
if doadd then
|
||||
cimf[#cimf+1] = defT2
|
||||
cimf[defT2.signature] = defT2
|
||||
newcdefs[#newcdefs+1] = {stname=t.stname,funcname=t.funcname,args=defT2.args,signature=defT2.signature,cimguiname=defT2.cimguiname,ret =defT2.ret}
|
||||
end
|
||||
end
|
||||
else print("not cimguiname in");M.prtable(t)
|
||||
end
|
||||
end
|
||||
FP.funcdefs = newcdefs
|
||||
end
|
||||
local function ADDnonUDT(FP)
|
||||
local defsT = FP.defsT
|
||||
--local newcdefs = {}
|
||||
@@ -995,16 +1084,25 @@ function M.Parser()
|
||||
local value,key = line:match("typedef%s+(.+)%s+([%w_]+);")
|
||||
if key and value then
|
||||
self.typedefs_dict[key] = value
|
||||
else --try function typedef
|
||||
else --try function pointer typedef
|
||||
local key = line:match("%(%*([%w_]+)%)%([^%(%)]*%)")
|
||||
if key then
|
||||
local linet = line
|
||||
linet = linet:gsub("typedef ","")
|
||||
linet = linet:gsub("%(%*("..key..")%)","(*)")
|
||||
self.typedefs_dict[key] = linet
|
||||
elseif not line:match"typedef%s*struct" then --discard typedef struct
|
||||
print("typedef not found")
|
||||
print(key,value,line)
|
||||
else
|
||||
--try function typedef
|
||||
key = line:match("%(([%w_]+)%)%([^%(%)]*%)")
|
||||
if key then
|
||||
local linet = line
|
||||
linet = linet:gsub("typedef ","")
|
||||
linet = linet:gsub("%(("..key..")%)","()")
|
||||
self.typedefs_dict[key] = linet
|
||||
elseif not line:match"typedef%s*struct" then --discard typedef struct
|
||||
print("typedef not found")
|
||||
print(key,value,line)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1491,6 +1589,7 @@ function M.Parser()
|
||||
for k,v in pairs(self.alltypes) do print(k, typetoStr(k) ) end
|
||||
end
|
||||
function par:compute_overloads()
|
||||
--ADDIMSTR_S(self)
|
||||
local strt = {}
|
||||
local numoverloaded = 0
|
||||
self.alltypes = {}
|
||||
@@ -1506,8 +1605,15 @@ function M.Parser()
|
||||
for i,t in ipairs(v) do
|
||||
--take overloaded name from manual table or algorythm
|
||||
t.ov_cimguiname = self.getCname_overload(t.stname,t.funcname,t.signature,t.namespace) or k..typetoStr(post[i])
|
||||
--check ...
|
||||
if( t.ov_cimguiname:match"%.%.%.") then
|
||||
print("... in ov",t.ov_cimguiname)
|
||||
for i,dd in ipairs(v) do
|
||||
print(dd.signature,post[i])
|
||||
end
|
||||
error"Bad check ..."
|
||||
end
|
||||
table.insert(strt,string.format("%d\t%s\t%s %s",i,t.ret,t.ov_cimguiname,t.signature))
|
||||
--M.prtable(typesc[i],post)
|
||||
end
|
||||
--check not two names are equal (produced by bad cimguiname_overload)
|
||||
for i=1,#v-1 do
|
||||
@@ -1525,8 +1631,10 @@ function M.Parser()
|
||||
end)
|
||||
--print(numoverloaded, "overloaded")
|
||||
table.insert(strt,string.format("%d overloaded",numoverloaded))
|
||||
ADDIMSTR_S(self)
|
||||
AdjustArguments(self)
|
||||
ADDnonUDT(self)
|
||||
|
||||
--ADDdestructors(self)
|
||||
self.overloadstxt = table.concat(strt,"\n")
|
||||
end
|
||||
|
@@ -313,6 +313,9 @@ local function cimgui_generation(parser)
|
||||
if gdefines.IMGUI_HAS_DOCK then
|
||||
cstructsstr = cstructsstr.."\n#define IMGUI_HAS_DOCK 1\n"
|
||||
end
|
||||
if gdefines.IMGUI_HAS_IMSTR then
|
||||
cstructsstr = cstructsstr.."\n#define IMGUI_HAS_IMSTR 1\n"
|
||||
end
|
||||
|
||||
hstrfile = hstrfile:gsub([[#include "imgui_structs%.h"]],cstructsstr)
|
||||
local cfuncsstr = func_header_generate(parser)
|
||||
@@ -333,13 +336,13 @@ end
|
||||
--------------------------------------------------------
|
||||
--get imgui.h version and IMGUI_HAS_DOCK--------------------------
|
||||
--get some defines wont work for cl ----------------
|
||||
gdefines = get_defines{"IMGUI_VERSION","FLT_MAX","FLT_MIN","IMGUI_HAS_DOCK"}
|
||||
gdefines = get_defines{"IMGUI_VERSION","FLT_MAX","FLT_MIN","IMGUI_HAS_DOCK","IMGUI_HAS_IMSTR"}
|
||||
--this will work for cl
|
||||
local pipe,err = io.open("../imgui/imgui.h","r")
|
||||
if not pipe then
|
||||
error("could not open file:"..err)
|
||||
end
|
||||
local imgui_version,has_dock
|
||||
local imgui_version,has_dock,has_imstr
|
||||
while true do
|
||||
local line = pipe:read"*l"
|
||||
if not line then break end
|
||||
@@ -349,11 +352,15 @@ while true do
|
||||
if not has_dock then
|
||||
has_dock = line:match([[#define%s+IMGUI_HAS_DOCK]])--%s*(".+")]])
|
||||
end
|
||||
if imgui_version and has_dock then break end
|
||||
if not has_imstr then
|
||||
has_imstr = line:match([[#define%s+IMGUI_HAS_IMSTR]])--%s*(".+")]])
|
||||
end
|
||||
if imgui_version and has_dock and has_imstr then break end
|
||||
end
|
||||
pipe:close()
|
||||
|
||||
if has_dock then gdefines.IMGUI_HAS_DOCK = true end
|
||||
if has_imstr then gdefines.IMGUI_HAS_IMSTR = true end
|
||||
|
||||
cimgui_header = cimgui_header:gsub("XXX",imgui_version)
|
||||
if INTERNAL_GENERATION then
|
||||
@@ -369,6 +376,7 @@ if gdefines.IMGUI_HAS_DOCK then
|
||||
]]
|
||||
|
||||
end
|
||||
print("IMGUI_HAS_IMSTR",gdefines.IMGUI_HAS_IMSTR)
|
||||
print("IMGUI_HAS_DOCK",gdefines.IMGUI_HAS_DOCK)
|
||||
print("IMGUI_VERSION",imgui_version)
|
||||
|
||||
|
@@ -6,6 +6,7 @@ struct GLFWwindow;
|
||||
struct SDL_Window;
|
||||
typedef union SDL_Event SDL_Event;CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks);
|
||||
CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks);
|
||||
CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks);
|
||||
CIMGUI_API void ImGui_ImplGlfw_Shutdown();
|
||||
CIMGUI_API void ImGui_ImplGlfw_NewFrame();
|
||||
CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods);
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,7 @@
|
||||
"cimguiname": "ImGui_ImplGlfw_CharCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_CharCallback",
|
||||
"location": "imgui_impl_glfw:35",
|
||||
"location": "imgui_impl_glfw:36",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_CharCallback",
|
||||
"ret": "void",
|
||||
"signature": "(GLFWwindow*,unsigned int)",
|
||||
@@ -49,6 +49,31 @@
|
||||
"stname": ""
|
||||
}
|
||||
],
|
||||
"ImGui_ImplGlfw_InitForOther": [
|
||||
{
|
||||
"args": "(GLFWwindow* window,bool install_callbacks)",
|
||||
"argsT": [
|
||||
{
|
||||
"name": "window",
|
||||
"type": "GLFWwindow*"
|
||||
},
|
||||
{
|
||||
"name": "install_callbacks",
|
||||
"type": "bool"
|
||||
}
|
||||
],
|
||||
"argsoriginal": "(GLFWwindow* window,bool install_callbacks)",
|
||||
"call_args": "(window,install_callbacks)",
|
||||
"cimguiname": "ImGui_ImplGlfw_InitForOther",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_InitForOther",
|
||||
"location": "imgui_impl_glfw:26",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_InitForOther",
|
||||
"ret": "bool",
|
||||
"signature": "(GLFWwindow*,bool)",
|
||||
"stname": ""
|
||||
}
|
||||
],
|
||||
"ImGui_ImplGlfw_InitForVulkan": [
|
||||
{
|
||||
"args": "(GLFWwindow* window,bool install_callbacks)",
|
||||
@@ -104,7 +129,7 @@
|
||||
"cimguiname": "ImGui_ImplGlfw_KeyCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_KeyCallback",
|
||||
"location": "imgui_impl_glfw:34",
|
||||
"location": "imgui_impl_glfw:35",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_KeyCallback",
|
||||
"ret": "void",
|
||||
"signature": "(GLFWwindow*,int,int,int,int)",
|
||||
@@ -137,7 +162,7 @@
|
||||
"cimguiname": "ImGui_ImplGlfw_MouseButtonCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_MouseButtonCallback",
|
||||
"location": "imgui_impl_glfw:32",
|
||||
"location": "imgui_impl_glfw:33",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback",
|
||||
"ret": "void",
|
||||
"signature": "(GLFWwindow*,int,int,int)",
|
||||
@@ -153,7 +178,7 @@
|
||||
"cimguiname": "ImGui_ImplGlfw_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_NewFrame",
|
||||
"location": "imgui_impl_glfw:27",
|
||||
"location": "imgui_impl_glfw:28",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_NewFrame",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
@@ -182,7 +207,7 @@
|
||||
"cimguiname": "ImGui_ImplGlfw_ScrollCallback",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_ScrollCallback",
|
||||
"location": "imgui_impl_glfw:33",
|
||||
"location": "imgui_impl_glfw:34",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback",
|
||||
"ret": "void",
|
||||
"signature": "(GLFWwindow*,double,double)",
|
||||
@@ -198,7 +223,7 @@
|
||||
"cimguiname": "ImGui_ImplGlfw_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplGlfw_Shutdown",
|
||||
"location": "imgui_impl_glfw:26",
|
||||
"location": "imgui_impl_glfw:27",
|
||||
"ov_cimguiname": "ImGui_ImplGlfw_Shutdown",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
|
@@ -14,7 +14,7 @@ defs["ImGui_ImplGlfw_CharCallback"][1]["call_args"] = "(window,c)"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_CharCallback"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["funcname"] = "ImGui_ImplGlfw_CharCallback"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw:35"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["location"] = "imgui_impl_glfw:36"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_CharCallback"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_CharCallback"][1]["signature"] = "(GLFWwindow*,unsigned int)"
|
||||
@@ -41,6 +41,27 @@ defs["ImGui_ImplGlfw_InitForOpenGL"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["signature"] = "(GLFWwindow*,bool)"
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForOpenGL"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOpenGL"][1]
|
||||
defs["ImGui_ImplGlfw_InitForOther"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["name"] = "window"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][1]["type"] = "GLFWwindow*"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["name"] = "install_callbacks"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsT"][2]["type"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["argsoriginal"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["call_args"] = "(window,install_callbacks)"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["cimguiname"] = "ImGui_ImplGlfw_InitForOther"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["funcname"] = "ImGui_ImplGlfw_InitForOther"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["location"] = "imgui_impl_glfw:26"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_InitForOther"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["ret"] = "bool"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["signature"] = "(GLFWwindow*,bool)"
|
||||
defs["ImGui_ImplGlfw_InitForOther"][1]["stname"] = ""
|
||||
defs["ImGui_ImplGlfw_InitForOther"]["(GLFWwindow*,bool)"] = defs["ImGui_ImplGlfw_InitForOther"][1]
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1] = {}
|
||||
defs["ImGui_ImplGlfw_InitForVulkan"][1]["args"] = "(GLFWwindow* window,bool install_callbacks)"
|
||||
@@ -86,7 +107,7 @@ defs["ImGui_ImplGlfw_KeyCallback"][1]["call_args"] = "(window,key,scancode,actio
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_KeyCallback"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["funcname"] = "ImGui_ImplGlfw_KeyCallback"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw:34"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["location"] = "imgui_impl_glfw:35"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_KeyCallback"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_KeyCallback"][1]["signature"] = "(GLFWwindow*,int,int,int,int)"
|
||||
@@ -113,7 +134,7 @@ defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["call_args"] = "(window,button,act
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["funcname"] = "ImGui_ImplGlfw_MouseButtonCallback"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw:32"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["location"] = "imgui_impl_glfw:33"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_MouseButtonCallback"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_MouseButtonCallback"][1]["signature"] = "(GLFWwindow*,int,int,int)"
|
||||
@@ -128,7 +149,7 @@ defs["ImGui_ImplGlfw_NewFrame"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["cimguiname"] = "ImGui_ImplGlfw_NewFrame"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["funcname"] = "ImGui_ImplGlfw_NewFrame"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw:27"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["location"] = "imgui_impl_glfw:28"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_NewFrame"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_NewFrame"][1]["signature"] = "()"
|
||||
@@ -152,7 +173,7 @@ defs["ImGui_ImplGlfw_ScrollCallback"][1]["call_args"] = "(window,xoffset,yoffset
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["cimguiname"] = "ImGui_ImplGlfw_ScrollCallback"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["funcname"] = "ImGui_ImplGlfw_ScrollCallback"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw:33"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["location"] = "imgui_impl_glfw:34"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_ScrollCallback"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_ScrollCallback"][1]["signature"] = "(GLFWwindow*,double,double)"
|
||||
@@ -167,7 +188,7 @@ defs["ImGui_ImplGlfw_Shutdown"][1]["call_args"] = "()"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["cimguiname"] = "ImGui_ImplGlfw_Shutdown"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["defaults"] = {}
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["funcname"] = "ImGui_ImplGlfw_Shutdown"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw:26"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["location"] = "imgui_impl_glfw:27"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["ov_cimguiname"] = "ImGui_ImplGlfw_Shutdown"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["ret"] = "void"
|
||||
defs["ImGui_ImplGlfw_Shutdown"][1]["signature"] = "()"
|
||||
|
@@ -112,13 +112,17 @@ igCombo 3
|
||||
1 bool igComboStr_arr (const char*,int*,const char* const[],int,int)
|
||||
2 bool igComboStr (const char*,int*,const char*,int)
|
||||
3 bool igComboFnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int)
|
||||
igGetBackgroundDrawList 2
|
||||
1 ImDrawList* igGetBackgroundDrawListNil ()
|
||||
2 ImDrawList* igGetBackgroundDrawListViewportPtr (ImGuiViewport*)
|
||||
igGetColorU32 3
|
||||
1 ImU32 igGetColorU32Col (ImGuiCol,float)
|
||||
2 ImU32 igGetColorU32Vec4 (const ImVec4)
|
||||
3 ImU32 igGetColorU32U32 (ImU32)
|
||||
igGetForegroundDrawList 2
|
||||
igGetForegroundDrawList 3
|
||||
1 ImDrawList* igGetForegroundDrawListNil ()
|
||||
2 ImDrawList* igGetForegroundDrawListWindowPtr (ImGuiWindow*)
|
||||
3 ImDrawList* igGetForegroundDrawListViewportPtr (ImGuiViewport*)
|
||||
igGetID 3
|
||||
1 ImGuiID igGetIDStr (const char*)
|
||||
2 ImGuiID igGetIDStrStr (const char*,const char*)
|
||||
@@ -160,9 +164,6 @@ igItemSize 2
|
||||
igListBox 2
|
||||
1 bool igListBoxStr_arr (const char*,int*,const char* const[],int,int)
|
||||
2 bool igListBoxFnBoolPtr (const char*,int*,bool(*)(void*,int,const char**),void*,int,int)
|
||||
igListBoxHeader 2
|
||||
1 bool igListBoxHeaderVec2 (const char*,const ImVec2)
|
||||
2 bool igListBoxHeaderInt (const char*,int,int)
|
||||
igMarkIniSettingsDirty 2
|
||||
1 void igMarkIniSettingsDirtyNil ()
|
||||
2 void igMarkIniSettingsDirtyWindowPtr (ImGuiWindow*)
|
||||
@@ -244,4 +245,4 @@ igValue 4
|
||||
2 void igValueInt (const char*,int)
|
||||
3 void igValueUint (const char*,unsigned int)
|
||||
4 void igValueFloat (const char*,float,const char*)
|
||||
172 overloaded
|
||||
173 overloaded
|
@@ -1,55 +1,75 @@
|
||||
{
|
||||
"enums": {
|
||||
"ImDrawCornerFlags_": [
|
||||
"ImDrawFlags_": [
|
||||
{
|
||||
"calc_value": 0,
|
||||
"name": "ImDrawCornerFlags_None",
|
||||
"name": "ImDrawFlags_None",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"calc_value": 1,
|
||||
"name": "ImDrawCornerFlags_TopLeft",
|
||||
"name": "ImDrawFlags_Closed",
|
||||
"value": "1 << 0"
|
||||
},
|
||||
{
|
||||
"calc_value": 2,
|
||||
"name": "ImDrawCornerFlags_TopRight",
|
||||
"value": "1 << 1"
|
||||
"calc_value": 16,
|
||||
"name": "ImDrawFlags_RoundCornersTopLeft",
|
||||
"value": "1 << 4"
|
||||
},
|
||||
{
|
||||
"calc_value": 4,
|
||||
"name": "ImDrawCornerFlags_BotLeft",
|
||||
"value": "1 << 2"
|
||||
"calc_value": 32,
|
||||
"name": "ImDrawFlags_RoundCornersTopRight",
|
||||
"value": "1 << 5"
|
||||
},
|
||||
{
|
||||
"calc_value": 8,
|
||||
"name": "ImDrawCornerFlags_BotRight",
|
||||
"value": "1 << 3"
|
||||
"calc_value": 64,
|
||||
"name": "ImDrawFlags_RoundCornersBottomLeft",
|
||||
"value": "1 << 6"
|
||||
},
|
||||
{
|
||||
"calc_value": 3,
|
||||
"name": "ImDrawCornerFlags_Top",
|
||||
"value": "ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight"
|
||||
"calc_value": 128,
|
||||
"name": "ImDrawFlags_RoundCornersBottomRight",
|
||||
"value": "1 << 7"
|
||||
},
|
||||
{
|
||||
"calc_value": 12,
|
||||
"name": "ImDrawCornerFlags_Bot",
|
||||
"value": "ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight"
|
||||
"calc_value": 256,
|
||||
"name": "ImDrawFlags_RoundCornersNone",
|
||||
"value": "1 << 8"
|
||||
},
|
||||
{
|
||||
"calc_value": 5,
|
||||
"name": "ImDrawCornerFlags_Left",
|
||||
"value": "ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft"
|
||||
"calc_value": 48,
|
||||
"name": "ImDrawFlags_RoundCornersTop",
|
||||
"value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight"
|
||||
},
|
||||
{
|
||||
"calc_value": 10,
|
||||
"name": "ImDrawCornerFlags_Right",
|
||||
"value": "ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight"
|
||||
"calc_value": 192,
|
||||
"name": "ImDrawFlags_RoundCornersBottom",
|
||||
"value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight"
|
||||
},
|
||||
{
|
||||
"calc_value": 15,
|
||||
"name": "ImDrawCornerFlags_All",
|
||||
"value": "0xF"
|
||||
"calc_value": 80,
|
||||
"name": "ImDrawFlags_RoundCornersLeft",
|
||||
"value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft"
|
||||
},
|
||||
{
|
||||
"calc_value": 160,
|
||||
"name": "ImDrawFlags_RoundCornersRight",
|
||||
"value": "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight"
|
||||
},
|
||||
{
|
||||
"calc_value": 240,
|
||||
"name": "ImDrawFlags_RoundCornersAll",
|
||||
"value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight"
|
||||
},
|
||||
{
|
||||
"calc_value": 240,
|
||||
"name": "ImDrawFlags_RoundCornersDefault_",
|
||||
"value": "ImDrawFlags_RoundCornersAll"
|
||||
},
|
||||
{
|
||||
"calc_value": 496,
|
||||
"name": "ImDrawFlags_RoundCornersMask_",
|
||||
"value": "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone"
|
||||
}
|
||||
],
|
||||
"ImDrawListFlags_": [
|
||||
@@ -844,6 +864,11 @@
|
||||
"calc_value": 6,
|
||||
"name": "ImGuiContextHookType_Shutdown",
|
||||
"value": "6"
|
||||
},
|
||||
{
|
||||
"calc_value": 7,
|
||||
"name": "ImGuiContextHookType_PendingRemoval_",
|
||||
"value": "7"
|
||||
}
|
||||
],
|
||||
"ImGuiDataTypePrivate_": [
|
||||
@@ -1133,17 +1158,17 @@
|
||||
},
|
||||
{
|
||||
"calc_value": 2,
|
||||
"name": "ImGuiInputSource_Nav",
|
||||
"name": "ImGuiInputSource_Keyboard",
|
||||
"value": "2"
|
||||
},
|
||||
{
|
||||
"calc_value": 3,
|
||||
"name": "ImGuiInputSource_NavKeyboard",
|
||||
"name": "ImGuiInputSource_Gamepad",
|
||||
"value": "3"
|
||||
},
|
||||
{
|
||||
"calc_value": 4,
|
||||
"name": "ImGuiInputSource_NavGamepad",
|
||||
"name": "ImGuiInputSource_Nav",
|
||||
"value": "4"
|
||||
},
|
||||
{
|
||||
@@ -1225,7 +1250,7 @@
|
||||
},
|
||||
{
|
||||
"calc_value": 8192,
|
||||
"name": "ImGuiInputTextFlags_AlwaysInsertMode",
|
||||
"name": "ImGuiInputTextFlags_AlwaysOverwrite",
|
||||
"value": "1 << 13"
|
||||
},
|
||||
{
|
||||
@@ -1361,6 +1386,11 @@
|
||||
"calc_value": 64,
|
||||
"name": "ImGuiItemStatusFlags_Deactivated",
|
||||
"value": "1 << 6"
|
||||
},
|
||||
{
|
||||
"calc_value": 128,
|
||||
"name": "ImGuiItemStatusFlags_HoveredWindow",
|
||||
"value": "1 << 7"
|
||||
}
|
||||
],
|
||||
"ImGuiKeyModFlags_": [
|
||||
@@ -2917,6 +2947,28 @@
|
||||
"value": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog"
|
||||
}
|
||||
],
|
||||
"ImGuiViewportFlags_": [
|
||||
{
|
||||
"calc_value": 0,
|
||||
"name": "ImGuiViewportFlags_None",
|
||||
"value": "0"
|
||||
},
|
||||
{
|
||||
"calc_value": 1,
|
||||
"name": "ImGuiViewportFlags_IsPlatformWindow",
|
||||
"value": "1 << 0"
|
||||
},
|
||||
{
|
||||
"calc_value": 2,
|
||||
"name": "ImGuiViewportFlags_IsPlatformMonitor",
|
||||
"value": "1 << 1"
|
||||
},
|
||||
{
|
||||
"calc_value": 4,
|
||||
"name": "ImGuiViewportFlags_OwnedByApp",
|
||||
"value": "1 << 2"
|
||||
}
|
||||
],
|
||||
"ImGuiWindowFlags_": [
|
||||
{
|
||||
"calc_value": 0,
|
||||
@@ -3072,135 +3124,139 @@
|
||||
},
|
||||
"enumtypes": [],
|
||||
"locations": {
|
||||
"ImBitVector": "imgui_internal:499",
|
||||
"ImColor": "imgui:2179",
|
||||
"ImDrawChannel": "imgui:2273",
|
||||
"ImDrawCmd": "imgui:2228",
|
||||
"ImDrawCmdHeader": "imgui:2265",
|
||||
"ImDrawCornerFlags_": "imgui:2297",
|
||||
"ImDrawData": "imgui:2452",
|
||||
"ImDrawDataBuilder": "imgui_internal:643",
|
||||
"ImDrawList": "imgui:2330",
|
||||
"ImDrawListFlags_": "imgui:2313",
|
||||
"ImDrawListSharedData": "imgui_internal:624",
|
||||
"ImDrawListSplitter": "imgui:2282",
|
||||
"ImDrawVert": "imgui:2250",
|
||||
"ImFont": "imgui:2663",
|
||||
"ImFontAtlas": "imgui:2568",
|
||||
"ImFontAtlasCustomRect": "imgui:2530",
|
||||
"ImFontAtlasFlags_": "imgui:2543",
|
||||
"ImFontConfig": "imgui:2475",
|
||||
"ImFontGlyph": "imgui:2504",
|
||||
"ImFontGlyphRangesBuilder": "imgui:2515",
|
||||
"ImGuiAxis": "imgui_internal:780",
|
||||
"ImGuiBackendFlags_": "imgui:1355",
|
||||
"ImGuiButtonFlagsPrivate_": "imgui_internal:694",
|
||||
"ImGuiButtonFlags_": "imgui:1461",
|
||||
"ImGuiCol_": "imgui:1365",
|
||||
"ImGuiColorEditFlags_": "imgui:1474",
|
||||
"ImGuiColorMod": "imgui_internal:887",
|
||||
"ImGuiComboFlags_": "imgui:994",
|
||||
"ImGuiCond_": "imgui:1566",
|
||||
"ImGuiConfigFlags_": "imgui:1339",
|
||||
"ImGuiContext": "imgui_internal:1241",
|
||||
"ImGuiContextHook": "imgui_internal:1227",
|
||||
"ImGuiContextHookType": "imgui_internal:1225",
|
||||
"ImGuiDataTypeInfo": "imgui_internal:870",
|
||||
"ImGuiDataTypePrivate_": "imgui_internal:879",
|
||||
"ImGuiDataTypeTempStorage": "imgui_internal:864",
|
||||
"ImGuiDataType_": "imgui:1231",
|
||||
"ImGuiDir_": "imgui:1247",
|
||||
"ImGuiDragDropFlags_": "imgui:1209",
|
||||
"ImGuiFocusedFlags_": "imgui:1181",
|
||||
"ImGuiGroupData": "imgui_internal:904",
|
||||
"ImGuiHoveredFlags_": "imgui:1193",
|
||||
"ImGuiIO": "imgui:1726",
|
||||
"ImGuiInputReadMode": "imgui_internal:804",
|
||||
"ImGuiInputSource": "imgui_internal:793",
|
||||
"ImGuiInputTextCallbackData": "imgui:1868",
|
||||
"ImGuiInputTextFlags_": "imgui:909",
|
||||
"ImGuiInputTextState": "imgui_internal:933",
|
||||
"ImGuiItemFlags_": "imgui_internal:658",
|
||||
"ImGuiItemStatusFlags_": "imgui_internal:673",
|
||||
"ImGuiKeyModFlags_": "imgui:1294",
|
||||
"ImGuiKey_": "imgui:1266",
|
||||
"ImGuiLastItemDataBackup": "imgui_internal:1804",
|
||||
"ImGuiLayoutType_": "imgui_internal:764",
|
||||
"ImGuiListClipper": "imgui:2130",
|
||||
"ImGuiLogType": "imgui_internal:770",
|
||||
"ImGuiMenuColumns": "imgui_internal:919",
|
||||
"ImGuiMetricsConfig": "imgui_internal:1183",
|
||||
"ImGuiMouseButton_": "imgui:1538",
|
||||
"ImGuiMouseCursor_": "imgui:1548",
|
||||
"ImGuiNavDirSourceFlags_": "imgui_internal:823",
|
||||
"ImGuiNavForward": "imgui_internal:843",
|
||||
"ImGuiNavHighlightFlags_": "imgui_internal:814",
|
||||
"ImGuiNavInput_": "imgui:1307",
|
||||
"ImGuiNavLayer": "imgui_internal:850",
|
||||
"ImGuiNavMoveFlags_": "imgui_internal:831",
|
||||
"ImGuiNavMoveResult": "imgui_internal:981",
|
||||
"ImGuiNextItemData": "imgui_internal:1038",
|
||||
"ImGuiNextItemDataFlags_": "imgui_internal:1031",
|
||||
"ImGuiNextWindowData": "imgui_internal:1009",
|
||||
"ImGuiNextWindowDataFlags_": "imgui_internal:995",
|
||||
"ImGuiOldColumnData": "imgui_internal:1090",
|
||||
"ImGuiOldColumnFlags_": "imgui_internal:1070",
|
||||
"ImGuiOldColumns": "imgui_internal:1100",
|
||||
"ImGuiOnceUponAFrame": "imgui:2008",
|
||||
"ImGuiPayload": "imgui:1908",
|
||||
"ImGuiPlotType": "imgui_internal:787",
|
||||
"ImGuiPopupData": "imgui_internal:968",
|
||||
"ImGuiPopupFlags_": "imgui:967",
|
||||
"ImGuiPopupPositionPolicy": "imgui_internal:857",
|
||||
"ImGuiPtrOrIndex": "imgui_internal:1056",
|
||||
"ImGuiSelectableFlagsPrivate_": "imgui_internal:724",
|
||||
"ImGuiSelectableFlags_": "imgui:983",
|
||||
"ImGuiSeparatorFlags_": "imgui_internal:742",
|
||||
"ImGuiSettingsHandler": "imgui_internal:1164",
|
||||
"ImGuiShrinkWidthItem": "imgui_internal:1050",
|
||||
"ImGuiSizeCallbackData": "imgui:1899",
|
||||
"ImGuiSliderFlagsPrivate_": "imgui_internal:717",
|
||||
"ImGuiSliderFlags_": "imgui:1521",
|
||||
"ImGuiSortDirection_": "imgui:1258",
|
||||
"ImGuiStackSizes": "imgui_internal:1205",
|
||||
"ImGuiStorage": "imgui:2070",
|
||||
"ImGuiStoragePair": "imgui:2073",
|
||||
"ImGuiStyle": "imgui:1672",
|
||||
"ImGuiStyleMod": "imgui_internal:894",
|
||||
"ImGuiStyleVar_": "imgui:1430",
|
||||
"ImGuiTabBar": "imgui_internal:1854",
|
||||
"ImGuiTabBarFlagsPrivate_": "imgui_internal:1821",
|
||||
"ImGuiTabBarFlags_": "imgui:1008",
|
||||
"ImGuiTabItem": "imgui_internal:1836",
|
||||
"ImGuiTabItemFlagsPrivate_": "imgui_internal:1829",
|
||||
"ImGuiTabItemFlags_": "imgui:1024",
|
||||
"ImGuiTable": "imgui_internal:1980",
|
||||
"ImGuiTableBgTarget_": "imgui:1172",
|
||||
"ImGuiTableCellData": "imgui_internal:1973",
|
||||
"ImGuiTableColumn": "imgui_internal:1915",
|
||||
"ImGuiTableColumnFlags_": "imgui:1117",
|
||||
"ImGuiTableColumnSettings": "imgui_internal:2098",
|
||||
"ImGuiTableColumnSortSpecs": "imgui:1930",
|
||||
"ImGuiTableFlags_": "imgui:1060",
|
||||
"ImGuiTableRowFlags_": "imgui:1157",
|
||||
"ImGuiTableSettings": "imgui_internal:2122",
|
||||
"ImGuiTableSortSpecs": "imgui:1944",
|
||||
"ImGuiTextBuffer": "imgui:2043",
|
||||
"ImGuiTextFilter": "imgui:2016",
|
||||
"ImGuiTextFlags_": "imgui_internal:750",
|
||||
"ImGuiTextRange": "imgui:2026",
|
||||
"ImGuiTooltipFlags_": "imgui_internal:756",
|
||||
"ImGuiTreeNodeFlagsPrivate_": "imgui_internal:737",
|
||||
"ImGuiTreeNodeFlags_": "imgui:938",
|
||||
"ImGuiWindow": "imgui_internal:1692",
|
||||
"ImGuiWindowFlags_": "imgui:869",
|
||||
"ImGuiWindowSettings": "imgui_internal:1152",
|
||||
"ImGuiWindowTempData": "imgui_internal:1636",
|
||||
"ImRect": "imgui_internal:430",
|
||||
"ImVec1": "imgui_internal:412",
|
||||
"ImVec2": "imgui:223",
|
||||
"ImVec2ih": "imgui_internal:420",
|
||||
"ImVec4": "imgui:236",
|
||||
"ImBitVector": "imgui_internal:508",
|
||||
"ImColor": "imgui:2167",
|
||||
"ImDrawChannel": "imgui:2261",
|
||||
"ImDrawCmd": "imgui:2216",
|
||||
"ImDrawCmdHeader": "imgui:2253",
|
||||
"ImDrawData": "imgui:2450",
|
||||
"ImDrawDataBuilder": "imgui_internal:671",
|
||||
"ImDrawFlags_": "imgui:2287",
|
||||
"ImDrawList": "imgui:2325",
|
||||
"ImDrawListFlags_": "imgui:2307",
|
||||
"ImDrawListSharedData": "imgui_internal:651",
|
||||
"ImDrawListSplitter": "imgui:2270",
|
||||
"ImDrawVert": "imgui:2238",
|
||||
"ImFont": "imgui:2667",
|
||||
"ImFontAtlas": "imgui:2566",
|
||||
"ImFontAtlasCustomRect": "imgui:2528",
|
||||
"ImFontAtlasFlags_": "imgui:2541",
|
||||
"ImFontBuilderIO": "imgui_internal:2546",
|
||||
"ImFontConfig": "imgui:2472",
|
||||
"ImFontGlyph": "imgui:2501",
|
||||
"ImFontGlyphRangesBuilder": "imgui:2513",
|
||||
"ImGuiAxis": "imgui_internal:810",
|
||||
"ImGuiBackendFlags_": "imgui:1384",
|
||||
"ImGuiButtonFlagsPrivate_": "imgui_internal:724",
|
||||
"ImGuiButtonFlags_": "imgui:1490",
|
||||
"ImGuiCol_": "imgui:1394",
|
||||
"ImGuiColorEditFlags_": "imgui:1503",
|
||||
"ImGuiColorMod": "imgui_internal:917",
|
||||
"ImGuiComboFlags_": "imgui:1023",
|
||||
"ImGuiCond_": "imgui:1595",
|
||||
"ImGuiConfigFlags_": "imgui:1368",
|
||||
"ImGuiContext": "imgui_internal:1290",
|
||||
"ImGuiContextHook": "imgui_internal:1275",
|
||||
"ImGuiContextHookType": "imgui_internal:1273",
|
||||
"ImGuiDataTypeInfo": "imgui_internal:900",
|
||||
"ImGuiDataTypePrivate_": "imgui_internal:909",
|
||||
"ImGuiDataTypeTempStorage": "imgui_internal:894",
|
||||
"ImGuiDataType_": "imgui:1260",
|
||||
"ImGuiDir_": "imgui:1276",
|
||||
"ImGuiDragDropFlags_": "imgui:1238",
|
||||
"ImGuiFocusedFlags_": "imgui:1210",
|
||||
"ImGuiGroupData": "imgui_internal:934",
|
||||
"ImGuiHoveredFlags_": "imgui:1222",
|
||||
"ImGuiIO": "imgui:1755",
|
||||
"ImGuiInputReadMode": "imgui_internal:834",
|
||||
"ImGuiInputSource": "imgui_internal:823",
|
||||
"ImGuiInputTextCallbackData": "imgui:1897",
|
||||
"ImGuiInputTextFlags_": "imgui:933",
|
||||
"ImGuiInputTextState": "imgui_internal:964",
|
||||
"ImGuiItemFlags_": "imgui_internal:687",
|
||||
"ImGuiItemStatusFlags_": "imgui_internal:702",
|
||||
"ImGuiKeyModFlags_": "imgui:1323",
|
||||
"ImGuiKey_": "imgui:1295",
|
||||
"ImGuiLastItemDataBackup": "imgui_internal:1853",
|
||||
"ImGuiLayoutType_": "imgui_internal:794",
|
||||
"ImGuiListClipper": "imgui:2118",
|
||||
"ImGuiLogType": "imgui_internal:800",
|
||||
"ImGuiMenuColumns": "imgui_internal:950",
|
||||
"ImGuiMetricsConfig": "imgui_internal:1231",
|
||||
"ImGuiMouseButton_": "imgui:1567",
|
||||
"ImGuiMouseCursor_": "imgui:1577",
|
||||
"ImGuiNavDirSourceFlags_": "imgui_internal:853",
|
||||
"ImGuiNavForward": "imgui_internal:873",
|
||||
"ImGuiNavHighlightFlags_": "imgui_internal:844",
|
||||
"ImGuiNavInput_": "imgui:1336",
|
||||
"ImGuiNavLayer": "imgui_internal:880",
|
||||
"ImGuiNavMoveFlags_": "imgui_internal:861",
|
||||
"ImGuiNavMoveResult": "imgui_internal:1012",
|
||||
"ImGuiNextItemData": "imgui_internal:1069",
|
||||
"ImGuiNextItemDataFlags_": "imgui_internal:1062",
|
||||
"ImGuiNextWindowData": "imgui_internal:1040",
|
||||
"ImGuiNextWindowDataFlags_": "imgui_internal:1026",
|
||||
"ImGuiOldColumnData": "imgui_internal:1121",
|
||||
"ImGuiOldColumnFlags_": "imgui_internal:1101",
|
||||
"ImGuiOldColumns": "imgui_internal:1131",
|
||||
"ImGuiOnceUponAFrame": "imgui:1996",
|
||||
"ImGuiPayload": "imgui:1937",
|
||||
"ImGuiPlotType": "imgui_internal:817",
|
||||
"ImGuiPopupData": "imgui_internal:999",
|
||||
"ImGuiPopupFlags_": "imgui:996",
|
||||
"ImGuiPopupPositionPolicy": "imgui_internal:887",
|
||||
"ImGuiPtrOrIndex": "imgui_internal:1087",
|
||||
"ImGuiSelectableFlagsPrivate_": "imgui_internal:754",
|
||||
"ImGuiSelectableFlags_": "imgui:1012",
|
||||
"ImGuiSeparatorFlags_": "imgui_internal:772",
|
||||
"ImGuiSettingsHandler": "imgui_internal:1212",
|
||||
"ImGuiShrinkWidthItem": "imgui_internal:1081",
|
||||
"ImGuiSizeCallbackData": "imgui:1928",
|
||||
"ImGuiSliderFlagsPrivate_": "imgui_internal:747",
|
||||
"ImGuiSliderFlags_": "imgui:1550",
|
||||
"ImGuiSortDirection_": "imgui:1287",
|
||||
"ImGuiStackSizes": "imgui_internal:1253",
|
||||
"ImGuiStorage": "imgui:2058",
|
||||
"ImGuiStoragePair": "imgui:2061",
|
||||
"ImGuiStyle": "imgui:1701",
|
||||
"ImGuiStyleMod": "imgui_internal:924",
|
||||
"ImGuiStyleVar_": "imgui:1459",
|
||||
"ImGuiTabBar": "imgui_internal:1903",
|
||||
"ImGuiTabBarFlagsPrivate_": "imgui_internal:1870",
|
||||
"ImGuiTabBarFlags_": "imgui:1037",
|
||||
"ImGuiTabItem": "imgui_internal:1885",
|
||||
"ImGuiTabItemFlagsPrivate_": "imgui_internal:1878",
|
||||
"ImGuiTabItemFlags_": "imgui:1053",
|
||||
"ImGuiTable": "imgui_internal:2029",
|
||||
"ImGuiTableBgTarget_": "imgui:1201",
|
||||
"ImGuiTableCellData": "imgui_internal:2022",
|
||||
"ImGuiTableColumn": "imgui_internal:1964",
|
||||
"ImGuiTableColumnFlags_": "imgui:1146",
|
||||
"ImGuiTableColumnSettings": "imgui_internal:2148",
|
||||
"ImGuiTableColumnSortSpecs": "imgui:1959",
|
||||
"ImGuiTableFlags_": "imgui:1089",
|
||||
"ImGuiTableRowFlags_": "imgui:1186",
|
||||
"ImGuiTableSettings": "imgui_internal:2172",
|
||||
"ImGuiTableSortSpecs": "imgui:1973",
|
||||
"ImGuiTextBuffer": "imgui:2031",
|
||||
"ImGuiTextFilter": "imgui:2004",
|
||||
"ImGuiTextFlags_": "imgui_internal:780",
|
||||
"ImGuiTextRange": "imgui:2014",
|
||||
"ImGuiTooltipFlags_": "imgui_internal:786",
|
||||
"ImGuiTreeNodeFlagsPrivate_": "imgui_internal:767",
|
||||
"ImGuiTreeNodeFlags_": "imgui:967",
|
||||
"ImGuiViewport": "imgui:2738",
|
||||
"ImGuiViewportFlags_": "imgui:2723",
|
||||
"ImGuiViewportP": "imgui_internal:1174",
|
||||
"ImGuiWindow": "imgui_internal:1741",
|
||||
"ImGuiWindowFlags_": "imgui:893",
|
||||
"ImGuiWindowSettings": "imgui_internal:1200",
|
||||
"ImGuiWindowTempData": "imgui_internal:1685",
|
||||
"ImRect": "imgui_internal:438",
|
||||
"ImVec1": "imgui_internal:420",
|
||||
"ImVec2": "imgui:230",
|
||||
"ImVec2ih": "imgui_internal:428",
|
||||
"ImVec4": "imgui:243",
|
||||
"STB_TexteditState": "imstb_textedit:317",
|
||||
"StbTexteditRow": "imstb_textedit:364",
|
||||
"StbUndoRecord": "imstb_textedit:299",
|
||||
@@ -3281,10 +3337,6 @@
|
||||
"name": "Valid",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "CmdLists",
|
||||
"type": "ImDrawList**"
|
||||
},
|
||||
{
|
||||
"name": "CmdListsCount",
|
||||
"type": "int"
|
||||
@@ -3297,6 +3349,10 @@
|
||||
"name": "TotalVtxCount",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "CmdLists",
|
||||
"type": "ImDrawList**"
|
||||
},
|
||||
{
|
||||
"name": "DisplayPos",
|
||||
"type": "ImVec2"
|
||||
@@ -3416,10 +3472,14 @@
|
||||
"type": "ImDrawListFlags"
|
||||
},
|
||||
{
|
||||
"name": "ArcFastVtx[12*1]",
|
||||
"size": 12,
|
||||
"name": "ArcFastVtx[48]",
|
||||
"size": 48,
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "ArcFastRadiusCutoff",
|
||||
"type": "float"
|
||||
},
|
||||
{
|
||||
"name": "CircleSegmentCounts[64]",
|
||||
"size": 64,
|
||||
@@ -3534,10 +3594,6 @@
|
||||
}
|
||||
],
|
||||
"ImFontAtlas": [
|
||||
{
|
||||
"name": "Locked",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "Flags",
|
||||
"type": "ImFontAtlasFlags"
|
||||
@@ -3554,6 +3610,14 @@
|
||||
"name": "TexGlyphPadding",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "Locked",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "TexPixelsUseColors",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "TexPixelsAlpha8",
|
||||
"type": "unsigned char*"
|
||||
@@ -3598,6 +3662,14 @@
|
||||
"size": 64,
|
||||
"type": "ImVec4"
|
||||
},
|
||||
{
|
||||
"name": "FontBuilderIO",
|
||||
"type": "const ImFontBuilderIO*"
|
||||
},
|
||||
{
|
||||
"name": "FontBuilderFlags",
|
||||
"type": "unsigned int"
|
||||
},
|
||||
{
|
||||
"name": "PackIdMouseCursors",
|
||||
"type": "int"
|
||||
@@ -3641,6 +3713,12 @@
|
||||
"type": "ImFont*"
|
||||
}
|
||||
],
|
||||
"ImFontBuilderIO": [
|
||||
{
|
||||
"name": "FontBuilder_Build",
|
||||
"type": "bool(*)(ImFontAtlas* atlas)"
|
||||
}
|
||||
],
|
||||
"ImFontConfig": [
|
||||
{
|
||||
"name": "FontData",
|
||||
@@ -3699,7 +3777,7 @@
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "RasterizerFlags",
|
||||
"name": "FontBuilderFlags",
|
||||
"type": "unsigned int"
|
||||
},
|
||||
{
|
||||
@@ -3722,8 +3800,8 @@
|
||||
],
|
||||
"ImFontGlyph": [
|
||||
{
|
||||
"bitfield": "31",
|
||||
"name": "Codepoint",
|
||||
"bitfield": "1",
|
||||
"name": "Colored",
|
||||
"type": "unsigned int"
|
||||
},
|
||||
{
|
||||
@@ -3731,6 +3809,11 @@
|
||||
"name": "Visible",
|
||||
"type": "unsigned int"
|
||||
},
|
||||
{
|
||||
"bitfield": "30",
|
||||
"name": "Codepoint",
|
||||
"type": "unsigned int"
|
||||
},
|
||||
{
|
||||
"name": "AdvanceX",
|
||||
"type": "float"
|
||||
@@ -3898,10 +3981,6 @@
|
||||
"name": "HoveredWindow",
|
||||
"type": "ImGuiWindow*"
|
||||
},
|
||||
{
|
||||
"name": "HoveredRootWindow",
|
||||
"type": "ImGuiWindow*"
|
||||
},
|
||||
{
|
||||
"name": "HoveredWindowUnderMovingWindow",
|
||||
"type": "ImGuiWindow*"
|
||||
@@ -4094,6 +4173,11 @@
|
||||
"template_type": "ImGuiPopupData",
|
||||
"type": "ImVector_ImGuiPopupData"
|
||||
},
|
||||
{
|
||||
"name": "Viewports",
|
||||
"template_type": "ImGuiViewportP*",
|
||||
"type": "ImVector_ImGuiViewportPPtr"
|
||||
},
|
||||
{
|
||||
"name": "NavWindow",
|
||||
"type": "ImGuiWindow*"
|
||||
@@ -4271,53 +4355,37 @@
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "FocusRequestCurrWindow",
|
||||
"name": "TabFocusRequestCurrWindow",
|
||||
"type": "ImGuiWindow*"
|
||||
},
|
||||
{
|
||||
"name": "FocusRequestNextWindow",
|
||||
"name": "TabFocusRequestNextWindow",
|
||||
"type": "ImGuiWindow*"
|
||||
},
|
||||
{
|
||||
"name": "FocusRequestCurrCounterRegular",
|
||||
"name": "TabFocusRequestCurrCounterRegular",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "FocusRequestCurrCounterTabStop",
|
||||
"name": "TabFocusRequestCurrCounterTabStop",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "FocusRequestNextCounterRegular",
|
||||
"name": "TabFocusRequestNextCounterRegular",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "FocusRequestNextCounterTabStop",
|
||||
"name": "TabFocusRequestNextCounterTabStop",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "FocusTabPressed",
|
||||
"name": "TabFocusPressed",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "DrawData",
|
||||
"type": "ImDrawData"
|
||||
},
|
||||
{
|
||||
"name": "DrawDataBuilder",
|
||||
"type": "ImDrawDataBuilder"
|
||||
},
|
||||
{
|
||||
"name": "DimBgRatio",
|
||||
"type": "float"
|
||||
},
|
||||
{
|
||||
"name": "BackgroundDrawList",
|
||||
"type": "ImDrawList"
|
||||
},
|
||||
{
|
||||
"name": "ForegroundDrawList",
|
||||
"type": "ImDrawList"
|
||||
},
|
||||
{
|
||||
"name": "MouseCursor",
|
||||
"type": "ImGuiMouseCursor"
|
||||
@@ -4558,6 +4626,10 @@
|
||||
"template_type": "ImGuiContextHook",
|
||||
"type": "ImVector_ImGuiContextHook"
|
||||
},
|
||||
{
|
||||
"name": "HookIdNext",
|
||||
"type": "ImGuiID"
|
||||
},
|
||||
{
|
||||
"name": "LogEnabled",
|
||||
"type": "bool"
|
||||
@@ -4574,6 +4646,14 @@
|
||||
"name": "LogBuffer",
|
||||
"type": "ImGuiTextBuffer"
|
||||
},
|
||||
{
|
||||
"name": "LogNextPrefix",
|
||||
"type": "const char*"
|
||||
},
|
||||
{
|
||||
"name": "LogNextSuffix",
|
||||
"type": "const char*"
|
||||
},
|
||||
{
|
||||
"name": "LogLinePosY",
|
||||
"type": "float"
|
||||
@@ -4638,6 +4718,10 @@
|
||||
}
|
||||
],
|
||||
"ImGuiContextHook": [
|
||||
{
|
||||
"name": "HookId",
|
||||
"type": "ImGuiID"
|
||||
},
|
||||
{
|
||||
"name": "Type",
|
||||
"type": "ImGuiContextHookType"
|
||||
@@ -4717,6 +4801,10 @@
|
||||
"name": "BackupActiveIdPreviousFrameIsAlive",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "BackupHoveredIdIsAlive",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"name": "EmitItem",
|
||||
"type": "bool"
|
||||
@@ -5840,7 +5928,7 @@
|
||||
"type": "float"
|
||||
},
|
||||
{
|
||||
"name": "CircleSegmentMaxError",
|
||||
"name": "CircleTessellationMaxError",
|
||||
"type": "float"
|
||||
},
|
||||
{
|
||||
@@ -6372,6 +6460,14 @@
|
||||
"name": "ReorderColumnDir",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
},
|
||||
{
|
||||
"name": "LeftMostEnabledColumn",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
},
|
||||
{
|
||||
"name": "RightMostEnabledColumn",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
},
|
||||
{
|
||||
"name": "LeftMostStretchedColumn",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
@@ -6380,10 +6476,6 @@
|
||||
"name": "RightMostStretchedColumn",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
},
|
||||
{
|
||||
"name": "RightMostEnabledColumn",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
},
|
||||
{
|
||||
"name": "ContextPopupColumn",
|
||||
"type": "ImGuiTableColumnIdx"
|
||||
@@ -6785,6 +6877,68 @@
|
||||
"type": "const char*"
|
||||
}
|
||||
],
|
||||
"ImGuiViewport": [
|
||||
{
|
||||
"name": "Flags",
|
||||
"type": "ImGuiViewportFlags"
|
||||
},
|
||||
{
|
||||
"name": "Pos",
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "Size",
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "WorkPos",
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "WorkSize",
|
||||
"type": "ImVec2"
|
||||
}
|
||||
],
|
||||
"ImGuiViewportP": [
|
||||
{
|
||||
"name": "_ImGuiViewport",
|
||||
"type": "ImGuiViewport"
|
||||
},
|
||||
{
|
||||
"name": "DrawListsLastFrame[2]",
|
||||
"size": 2,
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "DrawLists[2]",
|
||||
"size": 2,
|
||||
"type": "ImDrawList*"
|
||||
},
|
||||
{
|
||||
"name": "DrawDataP",
|
||||
"type": "ImDrawData"
|
||||
},
|
||||
{
|
||||
"name": "DrawDataBuilder",
|
||||
"type": "ImDrawDataBuilder"
|
||||
},
|
||||
{
|
||||
"name": "WorkOffsetMin",
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "WorkOffsetMax",
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "CurrWorkOffsetMin",
|
||||
"type": "ImVec2"
|
||||
},
|
||||
{
|
||||
"name": "CurrWorkOffsetMax",
|
||||
"type": "ImVec2"
|
||||
}
|
||||
],
|
||||
"ImGuiWindow": [
|
||||
{
|
||||
"name": "Name",
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -5,9 +5,9 @@
|
||||
"ImDrawChannel": "struct ImDrawChannel",
|
||||
"ImDrawCmd": "struct ImDrawCmd",
|
||||
"ImDrawCmdHeader": "struct ImDrawCmdHeader",
|
||||
"ImDrawCornerFlags": "int",
|
||||
"ImDrawData": "struct ImDrawData",
|
||||
"ImDrawDataBuilder": "struct ImDrawDataBuilder",
|
||||
"ImDrawFlags": "int",
|
||||
"ImDrawIdx": "unsigned short",
|
||||
"ImDrawList": "struct ImDrawList",
|
||||
"ImDrawListFlags": "int",
|
||||
@@ -19,6 +19,7 @@
|
||||
"ImFontAtlas": "struct ImFontAtlas",
|
||||
"ImFontAtlasCustomRect": "struct ImFontAtlasCustomRect",
|
||||
"ImFontAtlasFlags": "int",
|
||||
"ImFontBuilderIO": "struct ImFontBuilderIO",
|
||||
"ImFontConfig": "struct ImFontConfig",
|
||||
"ImFontGlyph": "struct ImFontGlyph",
|
||||
"ImFontGlyphRangesBuilder": "struct ImFontGlyphRangesBuilder",
|
||||
@@ -55,6 +56,8 @@
|
||||
"ImGuiLastItemDataBackup": "struct ImGuiLastItemDataBackup",
|
||||
"ImGuiLayoutType": "int",
|
||||
"ImGuiListClipper": "struct ImGuiListClipper",
|
||||
"ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);",
|
||||
"ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);",
|
||||
"ImGuiMenuColumns": "struct ImGuiMenuColumns",
|
||||
"ImGuiMetricsConfig": "struct ImGuiMetricsConfig",
|
||||
"ImGuiMouseButton": "int",
|
||||
@@ -114,6 +117,9 @@
|
||||
"ImGuiTextRange": "struct ImGuiTextRange",
|
||||
"ImGuiTooltipFlags": "int",
|
||||
"ImGuiTreeNodeFlags": "int",
|
||||
"ImGuiViewport": "struct ImGuiViewport",
|
||||
"ImGuiViewportFlags": "int",
|
||||
"ImGuiViewportP": "struct ImGuiViewportP",
|
||||
"ImGuiWindow": "struct ImGuiWindow",
|
||||
"ImGuiWindowFlags": "int",
|
||||
"ImGuiWindowSettings": "struct ImGuiWindowSettings",
|
||||
|
@@ -5,9 +5,9 @@ defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd*
|
||||
defs["ImDrawChannel"] = "struct ImDrawChannel"
|
||||
defs["ImDrawCmd"] = "struct ImDrawCmd"
|
||||
defs["ImDrawCmdHeader"] = "struct ImDrawCmdHeader"
|
||||
defs["ImDrawCornerFlags"] = "int"
|
||||
defs["ImDrawData"] = "struct ImDrawData"
|
||||
defs["ImDrawDataBuilder"] = "struct ImDrawDataBuilder"
|
||||
defs["ImDrawFlags"] = "int"
|
||||
defs["ImDrawIdx"] = "unsigned short"
|
||||
defs["ImDrawList"] = "struct ImDrawList"
|
||||
defs["ImDrawListFlags"] = "int"
|
||||
@@ -19,6 +19,7 @@ defs["ImFont"] = "struct ImFont"
|
||||
defs["ImFontAtlas"] = "struct ImFontAtlas"
|
||||
defs["ImFontAtlasCustomRect"] = "struct ImFontAtlasCustomRect"
|
||||
defs["ImFontAtlasFlags"] = "int"
|
||||
defs["ImFontBuilderIO"] = "struct ImFontBuilderIO"
|
||||
defs["ImFontConfig"] = "struct ImFontConfig"
|
||||
defs["ImFontGlyph"] = "struct ImFontGlyph"
|
||||
defs["ImFontGlyphRangesBuilder"] = "struct ImFontGlyphRangesBuilder"
|
||||
@@ -55,6 +56,8 @@ defs["ImGuiKeyModFlags"] = "int"
|
||||
defs["ImGuiLastItemDataBackup"] = "struct ImGuiLastItemDataBackup"
|
||||
defs["ImGuiLayoutType"] = "int"
|
||||
defs["ImGuiListClipper"] = "struct ImGuiListClipper"
|
||||
defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);"
|
||||
defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);"
|
||||
defs["ImGuiMenuColumns"] = "struct ImGuiMenuColumns"
|
||||
defs["ImGuiMetricsConfig"] = "struct ImGuiMetricsConfig"
|
||||
defs["ImGuiMouseButton"] = "int"
|
||||
@@ -114,6 +117,9 @@ defs["ImGuiTextFlags"] = "int"
|
||||
defs["ImGuiTextRange"] = "struct ImGuiTextRange"
|
||||
defs["ImGuiTooltipFlags"] = "int"
|
||||
defs["ImGuiTreeNodeFlags"] = "int"
|
||||
defs["ImGuiViewport"] = "struct ImGuiViewport"
|
||||
defs["ImGuiViewportFlags"] = "int"
|
||||
defs["ImGuiViewportP"] = "struct ImGuiViewportP"
|
||||
defs["ImGuiWindow"] = "struct ImGuiWindow"
|
||||
defs["ImGuiWindowFlags"] = "int"
|
||||
defs["ImGuiWindowSettings"] = "struct ImGuiWindowSettings"
|
||||
|
2
imgui
2
imgui
Submodule imgui updated: 58075c4414...64aab8480a
@@ -2,6 +2,14 @@
|
||||
#include <assert.h>
|
||||
#include "../cimgui.h"
|
||||
|
||||
#ifdef IMGUI_HAS_IMSTR
|
||||
#define igBegin igBegin_Strv
|
||||
#define igSliderFloat igSliderFloat_Strv
|
||||
#define igCheckbox igCheckbox_Strv
|
||||
#define igColorEdit3 igColorEdit3_Strv
|
||||
#define igButton igButton_Strv
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
{
|
||||
assert(igDebugCheckVersionAndDataLayout(igGetVersion(), sizeof(ImGuiIO), sizeof(ImGuiStyle),
|
||||
|
Reference in New Issue
Block a user