Open Wieku opened 3 days ago
I've just noticed that imgui.CurrentContext().Style() returns a struct, not pointer, but style getters require a pointer, but setters don't:
imgui.CurrentContext().Style()
https://github.com/AllenDang/cimgui-go/blob/c39c7e5756aed4af83b92429ffbc7e4390227f1a/imgui/cimgui_funcs.go#L29328-L29341
It works fine if I do this:
cStyle := imgui.CurrentContext().Style() bSize := (&cStyle).WindowBorderSize()
But given that Style struct already holds a pointer I don't think there's a need for getter receivers to require a pointer as well. Unless I'm missing something :p
@Wieku I think you should use imgui.CurrentStyle instead as it returns pointr
imgui.CurrentStyle
I've just noticed that
imgui.CurrentContext().Style()
returns a struct, not pointer, but style getters require a pointer, but setters don't:https://github.com/AllenDang/cimgui-go/blob/c39c7e5756aed4af83b92429ffbc7e4390227f1a/imgui/cimgui_funcs.go#L29328-L29341
It works fine if I do this:
But given that Style struct already holds a pointer I don't think there's a need for getter receivers to require a pointer as well. Unless I'm missing something :p