mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
add destructors for no simple constructors
This commit is contained in:
16
cimgui.cpp
16
cimgui.cpp
@@ -1442,6 +1442,10 @@ CIMGUI_API ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(const char* default_
|
||||
{
|
||||
return IM_NEW(ImGuiTextFilter)(default_filter);
|
||||
}
|
||||
CIMGUI_API void ImGuiTextFilter_destroy(ImGuiTextFilter* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self,const char* label,float width)
|
||||
{
|
||||
return self->Draw(label,width);
|
||||
@@ -1534,6 +1538,10 @@ CIMGUI_API Pair* Pair_PairInt(ImGuiID _key,int _val_i)
|
||||
{
|
||||
return IM_NEW(Pair)(_key,_val_i);
|
||||
}
|
||||
CIMGUI_API void Pair_destroy(Pair* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API Pair* Pair_PairFloat(ImGuiID _key,float _val_f)
|
||||
{
|
||||
return IM_NEW(Pair)(_key,_val_f);
|
||||
@@ -1682,6 +1690,10 @@ CIMGUI_API ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(int items_count,f
|
||||
{
|
||||
return IM_NEW(ImGuiListClipper)(items_count,items_height);
|
||||
}
|
||||
CIMGUI_API void ImGuiListClipper_destroy(ImGuiListClipper* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self)
|
||||
{
|
||||
return self->Step();
|
||||
@@ -1706,6 +1718,10 @@ CIMGUI_API ImDrawList* ImDrawList_ImDrawList(const ImDrawListSharedData* shared_
|
||||
{
|
||||
return IM_NEW(ImDrawList)(shared_data);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_destroy(ImDrawList* self)
|
||||
{
|
||||
IM_DELETE(self);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self,ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect)
|
||||
{
|
||||
return self->PushClipRect(clip_rect_min,clip_rect_max,intersect_with_current_clip_rect);
|
||||
|
Reference in New Issue
Block a user