structs and enums show C ImVector type

This commit is contained in:
sonoro1234
2018-10-20 17:32:03 +02:00
parent 5656bf7c73
commit b600ea9fab
3 changed files with 22 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
--------------------------------------------------------------------------
--script for auto_funcs.h and auto_funcs.cpp generation
--expects Lua 5.1 or luajit
--expects LuaJIT
--------------------------------------------------------------------------
assert(_VERSION=='Lua 5.1',"Must use LuaJIT")
assert(bit,"Must use LuaJIT")
@@ -997,7 +997,7 @@ local function gen_structs_and_enums_table(cdefs)
--if template_type then typen = typen:match("(.+)/%*") end
local template_type = typen:match("ImVector_(.+)")
if template_type then
typen = "ImVector"
--typen = "ImVector"
template_type = template_type:gsub("_"," ")
template_type = template_type:gsub("Ptr","%*")
end

File diff suppressed because one or more lines are too long

View File

@@ -1208,7 +1208,7 @@ defs["structs"]["GlyphRangesBuilder"] = {}
defs["structs"]["GlyphRangesBuilder"][1] = {}
defs["structs"]["GlyphRangesBuilder"][1]["name"] = "UsedChars"
defs["structs"]["GlyphRangesBuilder"][1]["template_type"] = "unsigned char"
defs["structs"]["GlyphRangesBuilder"][1]["type"] = "ImVector"
defs["structs"]["GlyphRangesBuilder"][1]["type"] = "ImVector_unsigned_char"
defs["structs"]["ImColor"] = {}
defs["structs"]["ImColor"][1] = {}
defs["structs"]["ImColor"][1]["name"] = "Value"
@@ -1217,11 +1217,11 @@ defs["structs"]["ImDrawChannel"] = {}
defs["structs"]["ImDrawChannel"][1] = {}
defs["structs"]["ImDrawChannel"][1]["name"] = "CmdBuffer"
defs["structs"]["ImDrawChannel"][1]["template_type"] = "ImDrawCmd"
defs["structs"]["ImDrawChannel"][1]["type"] = "ImVector"
defs["structs"]["ImDrawChannel"][1]["type"] = "ImVector_ImDrawCmd"
defs["structs"]["ImDrawChannel"][2] = {}
defs["structs"]["ImDrawChannel"][2]["name"] = "IdxBuffer"
defs["structs"]["ImDrawChannel"][2]["template_type"] = "ImDrawIdx"
defs["structs"]["ImDrawChannel"][2]["type"] = "ImVector"
defs["structs"]["ImDrawChannel"][2]["type"] = "ImVector_ImDrawIdx"
defs["structs"]["ImDrawCmd"] = {}
defs["structs"]["ImDrawCmd"][1] = {}
defs["structs"]["ImDrawCmd"][1]["name"] = "ElemCount"
@@ -1264,15 +1264,15 @@ defs["structs"]["ImDrawList"] = {}
defs["structs"]["ImDrawList"][1] = {}
defs["structs"]["ImDrawList"][1]["name"] = "CmdBuffer"
defs["structs"]["ImDrawList"][1]["template_type"] = "ImDrawCmd"
defs["structs"]["ImDrawList"][1]["type"] = "ImVector"
defs["structs"]["ImDrawList"][1]["type"] = "ImVector_ImDrawCmd"
defs["structs"]["ImDrawList"][2] = {}
defs["structs"]["ImDrawList"][2]["name"] = "IdxBuffer"
defs["structs"]["ImDrawList"][2]["template_type"] = "ImDrawIdx"
defs["structs"]["ImDrawList"][2]["type"] = "ImVector"
defs["structs"]["ImDrawList"][2]["type"] = "ImVector_ImDrawIdx"
defs["structs"]["ImDrawList"][3] = {}
defs["structs"]["ImDrawList"][3]["name"] = "VtxBuffer"
defs["structs"]["ImDrawList"][3]["template_type"] = "ImDrawVert"
defs["structs"]["ImDrawList"][3]["type"] = "ImVector"
defs["structs"]["ImDrawList"][3]["type"] = "ImVector_ImDrawVert"
defs["structs"]["ImDrawList"][4] = {}
defs["structs"]["ImDrawList"][4]["name"] = "Flags"
defs["structs"]["ImDrawList"][4]["type"] = "ImDrawListFlags"
@@ -1294,15 +1294,15 @@ defs["structs"]["ImDrawList"][9]["type"] = "ImDrawIdx*"
defs["structs"]["ImDrawList"][10] = {}
defs["structs"]["ImDrawList"][10]["name"] = "_ClipRectStack"
defs["structs"]["ImDrawList"][10]["template_type"] = "ImVec4"
defs["structs"]["ImDrawList"][10]["type"] = "ImVector"
defs["structs"]["ImDrawList"][10]["type"] = "ImVector_ImVec4"
defs["structs"]["ImDrawList"][11] = {}
defs["structs"]["ImDrawList"][11]["name"] = "_TextureIdStack"
defs["structs"]["ImDrawList"][11]["template_type"] = "ImTextureID"
defs["structs"]["ImDrawList"][11]["type"] = "ImVector"
defs["structs"]["ImDrawList"][11]["type"] = "ImVector_ImTextureID"
defs["structs"]["ImDrawList"][12] = {}
defs["structs"]["ImDrawList"][12]["name"] = "_Path"
defs["structs"]["ImDrawList"][12]["template_type"] = "ImVec2"
defs["structs"]["ImDrawList"][12]["type"] = "ImVector"
defs["structs"]["ImDrawList"][12]["type"] = "ImVector_ImVec2"
defs["structs"]["ImDrawList"][13] = {}
defs["structs"]["ImDrawList"][13]["name"] = "_ChannelsCurrent"
defs["structs"]["ImDrawList"][13]["type"] = "int"
@@ -1312,7 +1312,7 @@ defs["structs"]["ImDrawList"][14]["type"] = "int"
defs["structs"]["ImDrawList"][15] = {}
defs["structs"]["ImDrawList"][15]["name"] = "_Channels"
defs["structs"]["ImDrawList"][15]["template_type"] = "ImDrawChannel"
defs["structs"]["ImDrawList"][15]["type"] = "ImVector"
defs["structs"]["ImDrawList"][15]["type"] = "ImVector_ImDrawChannel"
defs["structs"]["ImDrawVert"] = {}
defs["structs"]["ImDrawVert"][1] = {}
defs["structs"]["ImDrawVert"][1]["name"] = "pos"
@@ -1336,15 +1336,15 @@ defs["structs"]["ImFont"][3]["type"] = "ImVec2"
defs["structs"]["ImFont"][4] = {}
defs["structs"]["ImFont"][4]["name"] = "Glyphs"
defs["structs"]["ImFont"][4]["template_type"] = "ImFontGlyph"
defs["structs"]["ImFont"][4]["type"] = "ImVector"
defs["structs"]["ImFont"][4]["type"] = "ImVector_ImFontGlyph"
defs["structs"]["ImFont"][5] = {}
defs["structs"]["ImFont"][5]["name"] = "IndexAdvanceX"
defs["structs"]["ImFont"][5]["template_type"] = "float"
defs["structs"]["ImFont"][5]["type"] = "ImVector"
defs["structs"]["ImFont"][5]["type"] = "ImVector_float"
defs["structs"]["ImFont"][6] = {}
defs["structs"]["ImFont"][6]["name"] = "IndexLookup"
defs["structs"]["ImFont"][6]["template_type"] = "unsigned short"
defs["structs"]["ImFont"][6]["type"] = "ImVector"
defs["structs"]["ImFont"][6]["type"] = "ImVector_unsigned_short"
defs["structs"]["ImFont"][7] = {}
defs["structs"]["ImFont"][7]["name"] = "FallbackGlyph"
defs["structs"]["ImFont"][7]["type"] = "const ImFontGlyph*"
@@ -1412,15 +1412,15 @@ defs["structs"]["ImFontAtlas"][11]["type"] = "ImVec2"
defs["structs"]["ImFontAtlas"][12] = {}
defs["structs"]["ImFontAtlas"][12]["name"] = "Fonts"
defs["structs"]["ImFontAtlas"][12]["template_type"] = "ImFont*"
defs["structs"]["ImFontAtlas"][12]["type"] = "ImVector"
defs["structs"]["ImFontAtlas"][12]["type"] = "ImVector_ImFontPtr"
defs["structs"]["ImFontAtlas"][13] = {}
defs["structs"]["ImFontAtlas"][13]["name"] = "CustomRects"
defs["structs"]["ImFontAtlas"][13]["template_type"] = "CustomRect"
defs["structs"]["ImFontAtlas"][13]["type"] = "ImVector"
defs["structs"]["ImFontAtlas"][13]["type"] = "ImVector_CustomRect"
defs["structs"]["ImFontAtlas"][14] = {}
defs["structs"]["ImFontAtlas"][14]["name"] = "ConfigData"
defs["structs"]["ImFontAtlas"][14]["template_type"] = "ImFontConfig"
defs["structs"]["ImFontAtlas"][14]["type"] = "ImVector"
defs["structs"]["ImFontAtlas"][14]["type"] = "ImVector_ImFontConfig"
defs["structs"]["ImFontAtlas"][15] = {}
defs["structs"]["ImFontAtlas"][15]["name"] = "CustomRectIds[1]"
defs["structs"]["ImFontAtlas"][15]["size"] = 1
@@ -1848,7 +1848,7 @@ defs["structs"]["ImGuiStorage"] = {}
defs["structs"]["ImGuiStorage"][1] = {}
defs["structs"]["ImGuiStorage"][1]["name"] = "Data"
defs["structs"]["ImGuiStorage"][1]["template_type"] = "Pair"
defs["structs"]["ImGuiStorage"][1]["type"] = "ImVector"
defs["structs"]["ImGuiStorage"][1]["type"] = "ImVector_Pair"
defs["structs"]["ImGuiStyle"] = {}
defs["structs"]["ImGuiStyle"][1] = {}
defs["structs"]["ImGuiStyle"][1]["name"] = "Alpha"
@@ -1945,7 +1945,7 @@ defs["structs"]["ImGuiTextBuffer"] = {}
defs["structs"]["ImGuiTextBuffer"][1] = {}
defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf"
defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char"
defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector"
defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_char"
defs["structs"]["ImGuiTextFilter"] = {}
defs["structs"]["ImGuiTextFilter"][1] = {}
defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]"
@@ -1954,7 +1954,7 @@ defs["structs"]["ImGuiTextFilter"][1]["type"] = "char"
defs["structs"]["ImGuiTextFilter"][2] = {}
defs["structs"]["ImGuiTextFilter"][2]["name"] = "Filters"
defs["structs"]["ImGuiTextFilter"][2]["template_type"] = "TextRange"
defs["structs"]["ImGuiTextFilter"][2]["type"] = "ImVector"
defs["structs"]["ImGuiTextFilter"][2]["type"] = "ImVector_TextRange"
defs["structs"]["ImGuiTextFilter"][3] = {}
defs["structs"]["ImGuiTextFilter"][3]["name"] = "CountGrep"
defs["structs"]["ImGuiTextFilter"][3]["type"] = "int"