ImVector functions inclusion

This commit is contained in:
sonoro1234
2019-02-12 12:16:21 +01:00
parent 55f1afa2db
commit 0d864f94bd
13 changed files with 1846 additions and 301 deletions

View File

@@ -1427,6 +1427,122 @@ CIMGUI_API void igMemFree(void* ptr)
{
return ImGui::MemFree(ptr);
}
CIMGUI_API ImVector* ImVector_ImVector(void)
{
return IM_NEW(ImVector)();
}
CIMGUI_API void ImVector_destroy(ImVector* self)
{
IM_DELETE(self);
}
CIMGUI_API bool ImVector_empty(ImVector* self)
{
return self->empty();
}
CIMGUI_API int ImVector_size(ImVector* self)
{
return self->size();
}
CIMGUI_API int ImVector_size_in_bytes(ImVector* self)
{
return self->size_in_bytes();
}
CIMGUI_API int ImVector_capacity(ImVector* self)
{
return self->capacity();
}
CIMGUI_API void ImVector_clear(ImVector* self)
{
return self->clear();
}
CIMGUI_API const T* ImVector_begin(ImVector* self)
{
return self->begin();
}
CIMGUI_API const T* ImVector_begin(ImVector* self)
{
return self->begin();
}
CIMGUI_API const T* ImVector_end(ImVector* self)
{
return self->end();
}
CIMGUI_API const T* ImVector_end(ImVector* self)
{
return self->end();
}
CIMGUI_API const T* ImVector_front(ImVector* self)
{
return &self->front();
}
CIMGUI_API const T* ImVector_front(ImVector* self)
{
return &self->front();
}
CIMGUI_API const T* ImVector_back(ImVector* self)
{
return &self->back();
}
CIMGUI_API const T* ImVector_back(ImVector* self)
{
return &self->back();
}
CIMGUI_API void ImVector_swap(ImVector* self,ImVector_T rhs)
{
return self->swap(rhs);
}
CIMGUI_API int ImVector__grow_capacity(ImVector* self,int sz)
{
return self->_grow_capacity(sz);
}
CIMGUI_API void ImVector_resize(ImVector* self,int new_size)
{
return self->resize(new_size);
}
CIMGUI_API void ImVector_resizeT(ImVector* self,int new_size,const T v)
{
return self->resize(new_size,v);
}
CIMGUI_API void ImVector_reserve(ImVector* self,int new_capacity)
{
return self->reserve(new_capacity);
}
CIMGUI_API void ImVector_push_back(ImVector* self,const T v)
{
return self->push_back(v);
}
CIMGUI_API void ImVector_pop_back(ImVector* self)
{
return self->pop_back();
}
CIMGUI_API void ImVector_push_front(ImVector* self,const T v)
{
return self->push_front(v);
}
CIMGUI_API T* ImVector_erase(ImVector* self,const T* it)
{
return self->erase(it);
}
CIMGUI_API T* ImVector_eraseTPtr(ImVector* self,const T* it,const T* it_last)
{
return self->erase(it,it_last);
}
CIMGUI_API T* ImVector_erase_unsorted(ImVector* self,const T* it)
{
return self->erase_unsorted(it);
}
CIMGUI_API T* ImVector_insert(ImVector* self,const T* it,const T v)
{
return self->insert(it,v);
}
CIMGUI_API bool ImVector_contains(ImVector* self,const T v)
{
return self->contains(v);
}
CIMGUI_API int ImVector_index_from_ptr(ImVector* self,const T* it)
{
return self->index_from_ptr(it);
}
CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void)
{
return IM_NEW(ImGuiStyle)();

View File

@@ -502,12 +502,14 @@ enum ImGuiCond_
ImGuiCond_FirstUseEver = 1 << 2,
ImGuiCond_Appearing = 1 << 3
};
struct ImVector
typedef struct ImVector{int Size;int Capacity;void* Data;} ImVector;
typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float;
typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar;
typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig;
typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph;
typedef struct ImVector_TextRange {int Size;int Capacity;TextRange* Data;} ImVector_TextRange;
typedef struct ImVector_T {int Size;int Capacity;T* Data;} ImVector_T;
typedef struct ImVector_CustomRect {int Size;int Capacity;CustomRect* Data;} ImVector_CustomRect;
typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel;
typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char;
@@ -888,8 +890,9 @@ inline ImColor_Simple ImColorToSimple(ImColor col)
typedef ImFontAtlas::CustomRect CustomRect;
typedef ImGuiTextFilter::TextRange TextRange;
typedef ImGuiStorage::Pair Pair;
typedef ImVector<TextRange> ImVector_TextRange;
typedef ImVector<T> ImVector_T;
typedef ImVector<ImWchar> ImVector_ImWchar;
typedef ImVector<TextRange> ImVector_TextRange;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API ImVec2* ImVec2_ImVec2(void);
CIMGUI_API void ImVec2_destroy(ImVec2* self);
@@ -1237,6 +1240,35 @@ CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size);
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* igMemAlloc(size_t size);
CIMGUI_API void igMemFree(void* ptr);
CIMGUI_API ImVector* ImVector_ImVector(void);
CIMGUI_API void ImVector_destroy(ImVector* self);
CIMGUI_API bool ImVector_empty(ImVector* self);
CIMGUI_API int ImVector_size(ImVector* self);
CIMGUI_API int ImVector_size_in_bytes(ImVector* self);
CIMGUI_API int ImVector_capacity(ImVector* self);
CIMGUI_API void ImVector_clear(ImVector* self);
CIMGUI_API const T* ImVector_begin(ImVector* self);
CIMGUI_API const T* ImVector_begin(ImVector* self);
CIMGUI_API const T* ImVector_end(ImVector* self);
CIMGUI_API const T* ImVector_end(ImVector* self);
CIMGUI_API const T* ImVector_front(ImVector* self);
CIMGUI_API const T* ImVector_front(ImVector* self);
CIMGUI_API const T* ImVector_back(ImVector* self);
CIMGUI_API const T* ImVector_back(ImVector* self);
CIMGUI_API void ImVector_swap(ImVector* self,ImVector_T rhs);
CIMGUI_API int ImVector__grow_capacity(ImVector* self,int sz);
CIMGUI_API void ImVector_resize(ImVector* self,int new_size);
CIMGUI_API void ImVector_resizeT(ImVector* self,int new_size,const T v);
CIMGUI_API void ImVector_reserve(ImVector* self,int new_capacity);
CIMGUI_API void ImVector_push_back(ImVector* self,const T v);
CIMGUI_API void ImVector_pop_back(ImVector* self);
CIMGUI_API void ImVector_push_front(ImVector* self,const T v);
CIMGUI_API T* ImVector_erase(ImVector* self,const T* it);
CIMGUI_API T* ImVector_eraseTPtr(ImVector* self,const T* it,const T* it_last);
CIMGUI_API T* ImVector_erase_unsorted(ImVector* self,const T* it);
CIMGUI_API T* ImVector_insert(ImVector* self,const T* it,const T v);
CIMGUI_API bool ImVector_contains(ImVector* self,const T v);
CIMGUI_API int ImVector_index_from_ptr(ImVector* self,const T* it);
CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void);
CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self);
CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor);

View File

@@ -660,6 +660,7 @@ function M.Parser()
elseif it.re_name == "struct_re" then
local nsp = it.item:match("%b{}"):sub(2,-2)
local stname = it.item:match("struct%s+(%S+)")
--if stname=="ImVector" then print"ImVector" end
local nspparr,itemsnsp = parseItems(nsp)
for insp,itnsp in ipairs(nspparr) do
if itnsp.re_name == "function_re" or itnsp.re_name == "functionD_re" then

View File

@@ -10,13 +10,13 @@
:: impl_definitions.lua for implementation function definitions
:: set your PATH if necessary for LuaJIT or Lua5.1 or luajit with: (for example)
:: set PATH=%PATH%;C:\luaGL;C:\mingw32\bin;
set PATH=%PATH%;C:\luaGL;C:\mingw32\bin;
:: set PATH=%PATH%;C:\luaGL;C:\i686-7.2.0-release-posix-dwarf-rt_v5-rev1\mingw32\bin;
:: set PATH=%PATH%;C:\luaGL\sources\luajit-master\luajit-master\bin\mingw32;C:\mingw32\bin;
::process files
:: arg[1] compiler name gcc, clang, cl or nocompiler
:: arg[2..n] name of implementations to generate
luajit ./generator.lua clang glfw opengl3 opengl2 sdl
luajit ./generator.lua gcc glfw opengl3 opengl2 sdl
::leave console open
cmd /k

View File

@@ -602,7 +602,7 @@ local function func_parser()
and not line:match(functype_re)
then
--if line:match(functype_re) then print("ft",line) end
if stname~="ImVector"
if stname~="ImVectorNO"
--and stname~="GlyphRangesBuilder" and stname~="CustomRect" and stname~="TextRange" and stname~="Pair"
and not line:match("operator") then
@@ -993,7 +993,7 @@ local function gen_structs_and_enums_table(cdefs)
end
if line=="" or line:match("^{") then
break
elseif structnames[#structnames] ~="ImVector" then --avoid ImVector
elseif structnames[#structnames] ~="ImVectorNO" then --avoid ImVector
--local functype_re = "^%s*[%w%s%*]+(%(%*)[%w_]+(%)%([^%(%)]*%))"
local functype_re = "^%s*[%w%s%*]+%(%*[%w_]+%)%([^%(%)]*%)"
local functype_reex = "^(%s*[%w%s%*]+%(%*)([%w_]+)(%)%([^%(%)]*%))"
@@ -1111,7 +1111,7 @@ local function gen_structs_and_enums(cdefs,templates)
local structbegin = line:match(struct_re)
if structbegin then
structnames[#structnames + 1] = structbegin
if #structnames < 2 and structbegin~= "ImVector" then --not inner and not ImVector
if #structnames < 2 and structbegin~= "ImVectorNO" then --not inner and not ImVector
table.insert(outtab,linecom.."\n")
break
end

View File

@@ -230,6 +230,7 @@ local function func_header_generate(FP)
table.insert(outtab,"#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
for _,t in ipairs(FP.funcdefs) do
if t.stname=="ImVector" then print(t.cimguiname) end
if t.cimguiname then
local cimf = FP.defsT[t.cimguiname]
local def = cimf[t.signature]
@@ -244,6 +245,7 @@ local function func_header_generate(FP)
elseif def.destructor then
table.insert(outtab,"CIMGUI_API void "..def.ov_cimguiname..def.args..";"..addcoment.."\n")
else --not constructor
if t.stname=="ImVector" then print("2",t.cimguiname) end
if def.stname == "" then --ImGui namespace or top level
table.insert(outtab,"CIMGUI_API "..def.ret.." ".. def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n")
else

View File

@@ -1427,6 +1427,122 @@ CIMGUI_API void igMemFree(void* ptr)
{
return ImGui::MemFree(ptr);
}
CIMGUI_API ImVector* ImVector_ImVector(void)
{
return IM_NEW(ImVector)();
}
CIMGUI_API void ImVector_destroy(ImVector* self)
{
IM_DELETE(self);
}
CIMGUI_API bool ImVector_empty(ImVector* self)
{
return self->empty();
}
CIMGUI_API int ImVector_size(ImVector* self)
{
return self->size();
}
CIMGUI_API int ImVector_size_in_bytes(ImVector* self)
{
return self->size_in_bytes();
}
CIMGUI_API int ImVector_capacity(ImVector* self)
{
return self->capacity();
}
CIMGUI_API void ImVector_clear(ImVector* self)
{
return self->clear();
}
CIMGUI_API const T* ImVector_begin(ImVector* self)
{
return self->begin();
}
CIMGUI_API const T* ImVector_begin(ImVector* self)
{
return self->begin();
}
CIMGUI_API const T* ImVector_end(ImVector* self)
{
return self->end();
}
CIMGUI_API const T* ImVector_end(ImVector* self)
{
return self->end();
}
CIMGUI_API const T* ImVector_front(ImVector* self)
{
return &self->front();
}
CIMGUI_API const T* ImVector_front(ImVector* self)
{
return &self->front();
}
CIMGUI_API const T* ImVector_back(ImVector* self)
{
return &self->back();
}
CIMGUI_API const T* ImVector_back(ImVector* self)
{
return &self->back();
}
CIMGUI_API void ImVector_swap(ImVector* self,ImVector_T rhs)
{
return self->swap(rhs);
}
CIMGUI_API int ImVector__grow_capacity(ImVector* self,int sz)
{
return self->_grow_capacity(sz);
}
CIMGUI_API void ImVector_resize(ImVector* self,int new_size)
{
return self->resize(new_size);
}
CIMGUI_API void ImVector_resizeT(ImVector* self,int new_size,const T v)
{
return self->resize(new_size,v);
}
CIMGUI_API void ImVector_reserve(ImVector* self,int new_capacity)
{
return self->reserve(new_capacity);
}
CIMGUI_API void ImVector_push_back(ImVector* self,const T v)
{
return self->push_back(v);
}
CIMGUI_API void ImVector_pop_back(ImVector* self)
{
return self->pop_back();
}
CIMGUI_API void ImVector_push_front(ImVector* self,const T v)
{
return self->push_front(v);
}
CIMGUI_API T* ImVector_erase(ImVector* self,const T* it)
{
return self->erase(it);
}
CIMGUI_API T* ImVector_eraseTPtr(ImVector* self,const T* it,const T* it_last)
{
return self->erase(it,it_last);
}
CIMGUI_API T* ImVector_erase_unsorted(ImVector* self,const T* it)
{
return self->erase_unsorted(it);
}
CIMGUI_API T* ImVector_insert(ImVector* self,const T* it,const T v)
{
return self->insert(it,v);
}
CIMGUI_API bool ImVector_contains(ImVector* self,const T v)
{
return self->contains(v);
}
CIMGUI_API int ImVector_index_from_ptr(ImVector* self,const T* it)
{
return self->index_from_ptr(it);
}
CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void)
{
return IM_NEW(ImGuiStyle)();

View File

@@ -502,12 +502,14 @@ enum ImGuiCond_
ImGuiCond_FirstUseEver = 1 << 2,
ImGuiCond_Appearing = 1 << 3
};
struct ImVector
typedef struct ImVector{int Size;int Capacity;void* Data;} ImVector;
typedef struct ImVector_float {int Size;int Capacity;float* Data;} ImVector_float;
typedef struct ImVector_ImWchar {int Size;int Capacity;ImWchar* Data;} ImVector_ImWchar;
typedef struct ImVector_ImFontConfig {int Size;int Capacity;ImFontConfig* Data;} ImVector_ImFontConfig;
typedef struct ImVector_ImFontGlyph {int Size;int Capacity;ImFontGlyph* Data;} ImVector_ImFontGlyph;
typedef struct ImVector_TextRange {int Size;int Capacity;TextRange* Data;} ImVector_TextRange;
typedef struct ImVector_T {int Size;int Capacity;T* Data;} ImVector_T;
typedef struct ImVector_CustomRect {int Size;int Capacity;CustomRect* Data;} ImVector_CustomRect;
typedef struct ImVector_ImDrawChannel {int Size;int Capacity;ImDrawChannel* Data;} ImVector_ImDrawChannel;
typedef struct ImVector_char {int Size;int Capacity;char* Data;} ImVector_char;
@@ -888,8 +890,9 @@ inline ImColor_Simple ImColorToSimple(ImColor col)
typedef ImFontAtlas::CustomRect CustomRect;
typedef ImGuiTextFilter::TextRange TextRange;
typedef ImGuiStorage::Pair Pair;
typedef ImVector<TextRange> ImVector_TextRange;
typedef ImVector<T> ImVector_T;
typedef ImVector<ImWchar> ImVector_ImWchar;
typedef ImVector<TextRange> ImVector_TextRange;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API ImVec2* ImVec2_ImVec2(void);
CIMGUI_API void ImVec2_destroy(ImVec2* self);
@@ -1237,6 +1240,35 @@ CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size);
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* igMemAlloc(size_t size);
CIMGUI_API void igMemFree(void* ptr);
CIMGUI_API ImVector* ImVector_ImVector(void);
CIMGUI_API void ImVector_destroy(ImVector* self);
CIMGUI_API bool ImVector_empty(ImVector* self);
CIMGUI_API int ImVector_size(ImVector* self);
CIMGUI_API int ImVector_size_in_bytes(ImVector* self);
CIMGUI_API int ImVector_capacity(ImVector* self);
CIMGUI_API void ImVector_clear(ImVector* self);
CIMGUI_API const T* ImVector_begin(ImVector* self);
CIMGUI_API const T* ImVector_begin(ImVector* self);
CIMGUI_API const T* ImVector_end(ImVector* self);
CIMGUI_API const T* ImVector_end(ImVector* self);
CIMGUI_API const T* ImVector_front(ImVector* self);
CIMGUI_API const T* ImVector_front(ImVector* self);
CIMGUI_API const T* ImVector_back(ImVector* self);
CIMGUI_API const T* ImVector_back(ImVector* self);
CIMGUI_API void ImVector_swap(ImVector* self,ImVector_T rhs);
CIMGUI_API int ImVector__grow_capacity(ImVector* self,int sz);
CIMGUI_API void ImVector_resize(ImVector* self,int new_size);
CIMGUI_API void ImVector_resizeT(ImVector* self,int new_size,const T v);
CIMGUI_API void ImVector_reserve(ImVector* self,int new_capacity);
CIMGUI_API void ImVector_push_back(ImVector* self,const T v);
CIMGUI_API void ImVector_pop_back(ImVector* self);
CIMGUI_API void ImVector_push_front(ImVector* self,const T v);
CIMGUI_API T* ImVector_erase(ImVector* self,const T* it);
CIMGUI_API T* ImVector_eraseTPtr(ImVector* self,const T* it,const T* it_last);
CIMGUI_API T* ImVector_erase_unsorted(ImVector* self,const T* it);
CIMGUI_API T* ImVector_insert(ImVector* self,const T* it,const T v);
CIMGUI_API bool ImVector_contains(ImVector* self,const T v);
CIMGUI_API int ImVector_index_from_ptr(ImVector* self,const T* it);
CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void);
CIMGUI_API void ImGuiStyle_destroy(ImGuiStyle* self);
CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self,float scale_factor);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,12 @@ igCombo 3
ImVec4_ImVec4 2
1 nil ImVec4_ImVec4 ()
2 nil ImVec4_ImVec4Float (float,float,float,float)
TextRange_TextRange 2
1 nil TextRange_TextRange ()
2 nil TextRange_TextRangeStr (const char*,const char*)
igTreePush 2
1 void igTreePushStr (const char*)
2 void igTreePushPtr (const void*)
igValue 4
1 void igValueBool (const char*,bool)
2 void igValueInt (const char*,int)
@@ -14,18 +20,21 @@ igValue 4
igPushStyleVar 2
1 void igPushStyleVarFloat (ImGuiStyleVar,float)
2 void igPushStyleVarVec2 (ImGuiStyleVar,const ImVec2)
ImVector_end 2
1 T* ImVector_end ()
2 const T* ImVector_end ()
igIsRectVisible 2
1 bool igIsRectVisible (const ImVec2)
2 bool igIsRectVisibleVec2 (const ImVec2,const ImVec2)
igRadioButton 2
1 bool igRadioButtonBool (const char*,bool)
2 bool igRadioButtonIntPtr (const char*,int*,int)
igTreePush 2
1 void igTreePushStr (const char*)
2 void igTreePushPtr (const void*)
igSetWindowSize 2
1 void igSetWindowSizeVec2 (const ImVec2,ImGuiCond)
2 void igSetWindowSizeStr (const char*,const ImVec2,ImGuiCond)
igPushStyleColor 2
1 void igPushStyleColorU32 (ImGuiCol,ImU32)
2 void igPushStyleColor (ImGuiCol,const ImVec4)
igSetWindowCollapsed 2
1 void igSetWindowCollapsedBool (bool,ImGuiCond)
2 void igSetWindowCollapsedStr (const char*,bool,ImGuiCond)
@@ -35,25 +44,28 @@ igPlotLines 2
ImVec2_ImVec2 2
1 nil ImVec2_ImVec2 ()
2 nil ImVec2_ImVec2Float (float,float)
ImVector_back 2
1 T* ImVector_back ()
2 const T* ImVector_back ()
igPlotHistogram 2
1 void igPlotHistogramFloatPtr (const char*,const float*,int,int,const char*,float,float,ImVec2,int)
2 void igPlotHistogramFnPtr (const char*,float(*)(void*,int),void*,int,int,const char*,float,float,ImVec2)
igTreeNodeExV 2
1 bool igTreeNodeExVStr (const char*,ImGuiTreeNodeFlags,const char*,va_list)
2 bool igTreeNodeExVPtr (const void*,ImGuiTreeNodeFlags,const char*,va_list)
igPushStyleColor 2
1 void igPushStyleColorU32 (ImGuiCol,ImU32)
2 void igPushStyleColor (ImGuiCol,const ImVec4)
igGetID 3
1 ImGuiID igGetIDStr (const char*)
2 ImGuiID igGetIDRange (const char*,const char*)
3 ImGuiID igGetIDPtr (const void*)
igBeginChild 2
1 bool igBeginChild (const char*,const ImVec2,bool,ImGuiWindowFlags)
2 bool igBeginChildID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags)
ImDrawList_AddText 2
1 void ImDrawList_AddText (const ImVec2,ImU32,const char*,const char*)
2 void ImDrawList_AddTextFontPtr (const ImFont*,float,const ImVec2,ImU32,const char*,const char*,float,const ImVec4*)
ImVector_begin 2
1 T* ImVector_begin ()
2 const T* ImVector_begin ()
igBeginChild 2
1 bool igBeginChild (const char*,const ImVec2,bool,ImGuiWindowFlags)
2 bool igBeginChildID (ImGuiID,const ImVec2,bool,ImGuiWindowFlags)
igSelectable 2
1 bool igSelectable (const char*,bool,ImGuiSelectableFlags,const ImVec2)
2 bool igSelectableBoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2)
@@ -69,9 +81,15 @@ Pair_Pair 3
1 nil Pair_PairInt (ImGuiID,int)
2 nil Pair_PairFloat (ImGuiID,float)
3 nil Pair_PairPtr (ImGuiID,void*)
TextRange_TextRange 2
1 nil TextRange_TextRange ()
2 nil TextRange_TextRangeStr (const char*,const char*)
ImVector_erase 2
1 T* ImVector_erase (const T*)
2 T* ImVector_eraseTPtr (const T*,const T*)
ImVector_resize 2
1 void ImVector_resize (int)
2 void ImVector_resizeT (int,const T)
ImVector_front 2
1 T* ImVector_front ()
2 const T* ImVector_front ()
ImColor_ImColor 5
1 nil ImColor_ImColor ()
2 nil ImColor_ImColorInt (int,int,int,int)
@@ -108,4 +126,4 @@ igTreeNode 3
igTreeNodeV 2
1 bool igTreeNodeVStr (const char*,const char*,va_list)
2 bool igTreeNodeVPtr (const void*,const char*,va_list)
77 overloaded
89 overloaded

View File

@@ -2739,7 +2739,32 @@
"type": "float"
}
],
"ImVector": [],
"ImVector": [
{
"name": "Size",
"type": "int"
},
{
"name": "Capacity",
"type": "int"
},
{
"name": "Data",
"type": "T*"
},
{
"name": "value_type",
"type": "typedef T"
},
{
"name": "iterator",
"type": "typedef value_type*"
},
{
"name": "const_iterator",
"type": "typedef const value_type*"
}
],
"Pair": [
{
"name": "key",

View File

@@ -2121,6 +2121,24 @@ defs["structs"]["ImVec4"][4] = {}
defs["structs"]["ImVec4"][4]["name"] = "w"
defs["structs"]["ImVec4"][4]["type"] = "float"
defs["structs"]["ImVector"] = {}
defs["structs"]["ImVector"][1] = {}
defs["structs"]["ImVector"][1]["name"] = "Size"
defs["structs"]["ImVector"][1]["type"] = "int"
defs["structs"]["ImVector"][2] = {}
defs["structs"]["ImVector"][2]["name"] = "Capacity"
defs["structs"]["ImVector"][2]["type"] = "int"
defs["structs"]["ImVector"][3] = {}
defs["structs"]["ImVector"][3]["name"] = "Data"
defs["structs"]["ImVector"][3]["type"] = "T*"
defs["structs"]["ImVector"][4] = {}
defs["structs"]["ImVector"][4]["name"] = "value_type"
defs["structs"]["ImVector"][4]["type"] = "typedef T"
defs["structs"]["ImVector"][5] = {}
defs["structs"]["ImVector"][5]["name"] = "iterator"
defs["structs"]["ImVector"][5]["type"] = "typedef value_type*"
defs["structs"]["ImVector"][6] = {}
defs["structs"]["ImVector"][6]["name"] = "const_iterator"
defs["structs"]["ImVector"][6]["type"] = "typedef const value_type*"
defs["structs"]["Pair"] = {}
defs["structs"]["Pair"][1] = {}
defs["structs"]["Pair"][1]["name"] = "key"