mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
pull imgui 1.89.3 generate correct sdl2 backend inclusion
This commit is contained in:
126
cimgui.cpp
126
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.89.2" 18920 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.89.3" 18930 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//docking branch
|
||||
#ifdef IMGUI_ENABLE_FREETYPE
|
||||
@@ -622,6 +622,10 @@ CIMGUI_API void igBulletTextV(const char* fmt,va_list args)
|
||||
{
|
||||
return ImGui::BulletTextV(fmt,args);
|
||||
}
|
||||
CIMGUI_API void igSeparatorText(const char* label)
|
||||
{
|
||||
return ImGui::SeparatorText(label);
|
||||
}
|
||||
CIMGUI_API bool igButton(const char* label,const ImVec2 size)
|
||||
{
|
||||
return ImGui::Button(label,size);
|
||||
@@ -1677,9 +1681,9 @@ CIMGUI_API void ImGuiIO_AddMouseButtonEvent(ImGuiIO* self,int button,bool down)
|
||||
{
|
||||
return self->AddMouseButtonEvent(button,down);
|
||||
}
|
||||
CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wh_x,float wh_y)
|
||||
CIMGUI_API void ImGuiIO_AddMouseWheelEvent(ImGuiIO* self,float wheel_x,float wheel_y)
|
||||
{
|
||||
return self->AddMouseWheelEvent(wh_x,wh_y);
|
||||
return self->AddMouseWheelEvent(wheel_x,wheel_y);
|
||||
}
|
||||
CIMGUI_API void ImGuiIO_AddMouseViewportEvent(ImGuiIO* self,ImGuiID id)
|
||||
{
|
||||
@@ -2645,11 +2649,11 @@ CIMGUI_API ImGuiKey igGetKeyIndex(ImGuiKey key)
|
||||
{
|
||||
return ImGui::GetKeyIndex(key);
|
||||
}
|
||||
CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImU32 seed)
|
||||
CIMGUI_API ImGuiID igImHashData(const void* data,size_t data_size,ImGuiID seed)
|
||||
{
|
||||
return ImHashData(data,data_size,seed);
|
||||
}
|
||||
CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImU32 seed)
|
||||
CIMGUI_API ImGuiID igImHashStr(const char* data,size_t data_size,ImGuiID seed)
|
||||
{
|
||||
return ImHashStr(data,data_size,seed);
|
||||
}
|
||||
@@ -3144,6 +3148,14 @@ CIMGUI_API void ImRect_ToVec4(ImVec4 *pOut,ImRect* self)
|
||||
{
|
||||
*pOut = self->ToVec4();
|
||||
}
|
||||
CIMGUI_API size_t igImBitArrayGetStorageSizeInBytes(int bitcount)
|
||||
{
|
||||
return ImBitArrayGetStorageSizeInBytes(bitcount);
|
||||
}
|
||||
CIMGUI_API void igImBitArrayClearAllBits(ImU32* arr,int bitcount)
|
||||
{
|
||||
return ImBitArrayClearAllBits(arr,bitcount);
|
||||
}
|
||||
CIMGUI_API bool igImBitArrayTestBit(const ImU32* arr,int n)
|
||||
{
|
||||
return ImBitArrayTestBit(arr,n);
|
||||
@@ -3604,14 +3616,6 @@ CIMGUI_API void ImGuiSettingsHandler_destroy(ImGuiSettingsHandler* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API ImGuiMetricsConfig* ImGuiMetricsConfig_ImGuiMetricsConfig(void)
|
||||
{
|
||||
return IM_NEW(ImGuiMetricsConfig)();
|
||||
}
|
||||
CIMGUI_API void ImGuiMetricsConfig_destroy(ImGuiMetricsConfig* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API ImGuiStackLevelInfo* ImGuiStackLevelInfo_ImGuiStackLevelInfo(void)
|
||||
{
|
||||
return IM_NEW(ImGuiStackLevelInfo)();
|
||||
@@ -3708,14 +3712,6 @@ CIMGUI_API void ImGuiTabBar_destroy(ImGuiTabBar* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API int ImGuiTabBar_GetTabOrder(ImGuiTabBar* self,const ImGuiTabItem* tab)
|
||||
{
|
||||
return self->GetTabOrder(tab);
|
||||
}
|
||||
CIMGUI_API const char* ImGuiTabBar_GetTabName(ImGuiTabBar* self,const ImGuiTabItem* tab)
|
||||
{
|
||||
return self->GetTabName(tab);
|
||||
}
|
||||
CIMGUI_API ImGuiTableColumn* ImGuiTableColumn_ImGuiTableColumn(void)
|
||||
{
|
||||
return IM_NEW(ImGuiTableColumn)();
|
||||
@@ -3960,18 +3956,6 @@ CIMGUI_API void igClearIniSettings()
|
||||
{
|
||||
return ImGui::ClearIniSettings();
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* igCreateNewWindowSettings(const char* name)
|
||||
{
|
||||
return ImGui::CreateNewWindowSettings(name);
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* igFindWindowSettings(ImGuiID id)
|
||||
{
|
||||
return ImGui::FindWindowSettings(id);
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* igFindOrCreateWindowSettings(const char* name)
|
||||
{
|
||||
return ImGui::FindOrCreateWindowSettings(name);
|
||||
}
|
||||
CIMGUI_API void igAddSettingsHandler(const ImGuiSettingsHandler* handler)
|
||||
{
|
||||
return ImGui::AddSettingsHandler(handler);
|
||||
@@ -3984,6 +3968,22 @@ CIMGUI_API ImGuiSettingsHandler* igFindSettingsHandler(const char* type_name)
|
||||
{
|
||||
return ImGui::FindSettingsHandler(type_name);
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* igCreateNewWindowSettings(const char* name)
|
||||
{
|
||||
return ImGui::CreateNewWindowSettings(name);
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* igFindWindowSettingsByID(ImGuiID id)
|
||||
{
|
||||
return ImGui::FindWindowSettingsByID(id);
|
||||
}
|
||||
CIMGUI_API ImGuiWindowSettings* igFindWindowSettingsByWindow(ImGuiWindow* window)
|
||||
{
|
||||
return ImGui::FindWindowSettingsByWindow(window);
|
||||
}
|
||||
CIMGUI_API void igClearWindowSettings(const char* name)
|
||||
{
|
||||
return ImGui::ClearWindowSettings(name);
|
||||
}
|
||||
CIMGUI_API void igLocalizeRegisterEntries(const ImGuiLocEntry* entries,int count)
|
||||
{
|
||||
return ImGui::LocalizeRegisterEntries(entries,count);
|
||||
@@ -4072,10 +4072,14 @@ CIMGUI_API void igPushOverrideID(ImGuiID id)
|
||||
{
|
||||
return ImGui::PushOverrideID(id);
|
||||
}
|
||||
CIMGUI_API ImGuiID igGetIDWithSeed(const char* str_id_begin,const char* str_id_end,ImGuiID seed)
|
||||
CIMGUI_API ImGuiID igGetIDWithSeed_Str(const char* str_id_begin,const char* str_id_end,ImGuiID seed)
|
||||
{
|
||||
return ImGui::GetIDWithSeed(str_id_begin,str_id_end,seed);
|
||||
}
|
||||
CIMGUI_API ImGuiID igGetIDWithSeed_Int(int n,ImGuiID seed)
|
||||
{
|
||||
return ImGui::GetIDWithSeed(n,seed);
|
||||
}
|
||||
CIMGUI_API void igItemSize_Vec2(const ImVec2 size,float text_baseline_y)
|
||||
{
|
||||
return ImGui::ItemSize(size,text_baseline_y);
|
||||
@@ -4452,6 +4456,14 @@ CIMGUI_API void igDockContextQueueUndockNode(ImGuiContext* ctx,ImGuiDockNode* no
|
||||
{
|
||||
return ImGui::DockContextQueueUndockNode(ctx,node);
|
||||
}
|
||||
CIMGUI_API void igDockContextProcessUndockWindow(ImGuiContext* ctx,ImGuiWindow* window,bool clear_persistent_docking_ref)
|
||||
{
|
||||
return ImGui::DockContextProcessUndockWindow(ctx,window,clear_persistent_docking_ref);
|
||||
}
|
||||
CIMGUI_API void igDockContextProcessUndockNode(ImGuiContext* ctx,ImGuiDockNode* node)
|
||||
{
|
||||
return ImGui::DockContextProcessUndockNode(ctx,node);
|
||||
}
|
||||
CIMGUI_API bool igDockContextCalcDropPosForDocking(ImGuiWindow* target,ImGuiDockNode* target_node,ImGuiWindow* payload_window,ImGuiDockNode* payload_node,ImGuiDir split_dir,bool split_outer,ImVec2* out_pos)
|
||||
{
|
||||
return ImGui::DockContextCalcDropPosForDocking(target,target_node,payload_window,payload_node,split_dir,split_outer,out_pos);
|
||||
@@ -4720,6 +4732,10 @@ CIMGUI_API ImGuiTableInstanceData* igTableGetInstanceData(ImGuiTable* table,int
|
||||
{
|
||||
return ImGui::TableGetInstanceData(table,instance_no);
|
||||
}
|
||||
CIMGUI_API ImGuiID igTableGetInstanceID(ImGuiTable* table,int instance_no)
|
||||
{
|
||||
return ImGui::TableGetInstanceID(table,instance_no);
|
||||
}
|
||||
CIMGUI_API void igTableSortSpecsSanitize(ImGuiTable* table)
|
||||
{
|
||||
return ImGui::TableSortSpecsSanitize(table);
|
||||
@@ -4764,7 +4780,7 @@ CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int
|
||||
{
|
||||
return ImGui::TableGetColumnName(table,column_n);
|
||||
}
|
||||
CIMGUI_API ImGuiID igTableGetColumnResizeID(const ImGuiTable* table,int column_n,int instance_no)
|
||||
CIMGUI_API ImGuiID igTableGetColumnResizeID(ImGuiTable* table,int column_n,int instance_no)
|
||||
{
|
||||
return ImGui::TableGetColumnResizeID(table,column_n,instance_no);
|
||||
}
|
||||
@@ -4824,6 +4840,10 @@ CIMGUI_API ImGuiTableSettings* igTableSettingsFindByID(ImGuiID id)
|
||||
{
|
||||
return ImGui::TableSettingsFindByID(id);
|
||||
}
|
||||
CIMGUI_API ImGuiTabBar* igGetCurrentTabBar()
|
||||
{
|
||||
return ImGui::GetCurrentTabBar();
|
||||
}
|
||||
CIMGUI_API bool igBeginTabBarEx(ImGuiTabBar* tab_bar,const ImRect bb,ImGuiTabBarFlags flags,ImGuiDockNode* dock_node)
|
||||
{
|
||||
return ImGui::BeginTabBarEx(tab_bar,bb,flags,dock_node);
|
||||
@@ -4832,10 +4852,26 @@ CIMGUI_API ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar,ImGuiID tab_id
|
||||
{
|
||||
return ImGui::TabBarFindTabByID(tab_bar,tab_id);
|
||||
}
|
||||
CIMGUI_API ImGuiTabItem* igTabBarFindTabByOrder(ImGuiTabBar* tab_bar,int order)
|
||||
{
|
||||
return ImGui::TabBarFindTabByOrder(tab_bar,order);
|
||||
}
|
||||
CIMGUI_API ImGuiTabItem* igTabBarFindMostRecentlySelectedTabForActiveWindow(ImGuiTabBar* tab_bar)
|
||||
{
|
||||
return ImGui::TabBarFindMostRecentlySelectedTabForActiveWindow(tab_bar);
|
||||
}
|
||||
CIMGUI_API ImGuiTabItem* igTabBarGetCurrentTab(ImGuiTabBar* tab_bar)
|
||||
{
|
||||
return ImGui::TabBarGetCurrentTab(tab_bar);
|
||||
}
|
||||
CIMGUI_API int igTabBarGetTabOrder(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)
|
||||
{
|
||||
return ImGui::TabBarGetTabOrder(tab_bar,tab);
|
||||
}
|
||||
CIMGUI_API const char* igTabBarGetTabName(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)
|
||||
{
|
||||
return ImGui::TabBarGetTabName(tab_bar,tab);
|
||||
}
|
||||
CIMGUI_API void igTabBarAddTab(ImGuiTabBar* tab_bar,ImGuiTabItemFlags tab_flags,ImGuiWindow* window)
|
||||
{
|
||||
return ImGui::TabBarAddTab(tab_bar,tab_flags,window);
|
||||
@@ -4848,11 +4884,15 @@ CIMGUI_API void igTabBarCloseTab(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)
|
||||
{
|
||||
return ImGui::TabBarCloseTab(tab_bar,tab);
|
||||
}
|
||||
CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,int offset)
|
||||
CIMGUI_API void igTabBarQueueFocus(ImGuiTabBar* tab_bar,ImGuiTabItem* tab)
|
||||
{
|
||||
return ImGui::TabBarQueueFocus(tab_bar,tab);
|
||||
}
|
||||
CIMGUI_API void igTabBarQueueReorder(ImGuiTabBar* tab_bar,ImGuiTabItem* tab,int offset)
|
||||
{
|
||||
return ImGui::TabBarQueueReorder(tab_bar,tab,offset);
|
||||
}
|
||||
CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,const ImGuiTabItem* tab,ImVec2 mouse_pos)
|
||||
CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,ImGuiTabItem* tab,ImVec2 mouse_pos)
|
||||
{
|
||||
return ImGui::TabBarQueueReorderFromMousePos(tab_bar,tab,mouse_pos);
|
||||
}
|
||||
@@ -4968,14 +5008,18 @@ CIMGUI_API bool igArrowButtonEx(const char* str_id,ImGuiDir dir,ImVec2 size_arg,
|
||||
{
|
||||
return ImGui::ArrowButtonEx(str_id,dir,size_arg,flags);
|
||||
}
|
||||
CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)
|
||||
CIMGUI_API bool igImageButtonEx(ImGuiID id,ImTextureID texture_id,const ImVec2 size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col,ImGuiButtonFlags flags)
|
||||
{
|
||||
return ImGui::ImageButtonEx(id,texture_id,size,uv0,uv1,bg_col,tint_col);
|
||||
return ImGui::ImageButtonEx(id,texture_id,size,uv0,uv1,bg_col,tint_col,flags);
|
||||
}
|
||||
CIMGUI_API void igSeparatorEx(ImGuiSeparatorFlags flags)
|
||||
{
|
||||
return ImGui::SeparatorEx(flags);
|
||||
}
|
||||
CIMGUI_API void igSeparatorTextEx(ImGuiID id,const char* label,const char* label_end,float extra_width)
|
||||
{
|
||||
return ImGui::SeparatorTextEx(id,label,label_end,extra_width);
|
||||
}
|
||||
CIMGUI_API bool igCheckboxFlags_S64Ptr(const char* label,ImS64* flags,ImS64 flags_value)
|
||||
{
|
||||
return ImGui::CheckboxFlags(label,flags,flags_value);
|
||||
@@ -5104,9 +5148,9 @@ CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col,ImGuiColorEditFla
|
||||
{
|
||||
return ImGui::ColorPickerOptionsPopup(ref_col,flags);
|
||||
}
|
||||
CIMGUI_API int igPlotEx(ImGuiPlotType plot_type,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 frame_size)
|
||||
CIMGUI_API int igPlotEx(ImGuiPlotType plot_type,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,const ImVec2 size_arg)
|
||||
{
|
||||
return ImGui::PlotEx(plot_type,label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,frame_size);
|
||||
return ImGui::PlotEx(plot_type,label,values_getter,data,values_count,values_offset,overlay_text,scale_min,scale_max,size_arg);
|
||||
}
|
||||
CIMGUI_API void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list,int vert_start_idx,int vert_end_idx,ImVec2 gradient_p0,ImVec2 gradient_p1,ImU32 col0,ImU32 col1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user