AllenDang / cimgui-go

Auto generated Go wrapper for Dear ImGui via cimgui
MIT License
332 stars 51 forks source link

DockNode->ChildNodes missing #270

Closed ptxmac closed 6 months ago

ptxmac commented 6 months ago

See https://github.com/cimgui/cimgui/blob/docking_inter/generator/output/structs_and_enums.json#L6953 I assume this is because of general missing support for arrays?

gucio321 commented 6 months ago
[cimgui-go (0) ]$ make cimgui &> /tmp/cache.txt;cat /tmp/cache.txt |grep ChildNodes
2024-03-11 12:08:09 [DEBG]: Unknown argument type "ImGuiDockNode*[2]" in function ImGuiDockNode_SetChildNodes
2024-03-11 12:08:09 [FAIL]: (gengo_funcs.go:69):    not generated: ImGuiDockNode_SetChildNodes(ImGuiDockNode *ImGuiDockNodePtr, ImGuiDockNode* v)
2024-03-11 12:08:09 [DEBG]: Unknown return type "ImGuiDockNode*[2]" in function ImGuiDockNode_GetChildNodes

You're right. I have to say that our generator still lacks many features e.g. this one.

gucio321 commented 6 months ago

I've added something in https://github.com/AllenDang/cimgui-go/pull/272

gucio321 commented 6 months ago

but it still needs return_type

gucio321 commented 6 months ago

fixed in #274

gucio321 commented 6 months ago

fixed in #274