AllenDang / giu

Cross platform rapid GUI framework for golang based on Dear ImGui.
MIT License
2.16k stars 128 forks source link

[bug] StyleVarID Missing #709

Closed damntourists closed 9 months ago

damntourists commented 9 months ago

What happend?

Hi there,

Just looking over https://github.com/AllenDang/cimgui-go/blob/main/cimgui_enums.go#L1536C26-L1536C26 and I see that the enum 17 is missing from here https://github.com/AllenDang/giu/blob/master/StyleIDs_string2enum.go#L191 (skips over 17) which corresponds to StyleVarCellPadding. Is there a different way to assign this value now?

Code example

main.go ```golang // put your code here! ```

To Reproduce

  1. Run my demo
  2. will see the crash...

Version

master

OS

ubuntu

damntourists commented 9 months ago

Actually, it seems like a number of style settings are missing.. I can't seem to find any ways to set the following which were present before the migration to cimgui:

gui.Style.SetWindowMenuButtonPosition()
gui.Style.SetColumnsMinSpacing()
gui.Style.SetTabBorderSize()
gui.Style.SetTabMinWidthForCloseButton()
gui.Style.SetColorButtonPosition()

I see them defined in cimgui like: extern void wrap_ImGuiStyle_SetTabMinWidthForCloseButton(ImGuiStyle *ImGuiStylePtr, float v); but not sure how to access them in go. Is there any info on how to use these wrap_* functions?

damntourists commented 9 months ago

Ignore my previous comment. I had the wrong version of giu installed which was pulling in cimgui and imgui which caused a bunch of issues.