raylib-zig icon indicating copy to clipboard operation
raylib-zig copied to clipboard

guiSetStyle api using wrong types

Open JRMurr opened this issue 1 year ago • 5 comments

In #125 I think the proposed api is wrong.

The first param should be rg.GuiControl and the second param is slightly weird.

It can be rg.GuiControlProperty or rg.GuiDefaultProperty. I'm newish to zig still so not sure the best way to handle merging these two enums together, maybe we have two different wrapper funcs for this?

fn guiSetStyle(control: rg.GuiControl, property: rg.GuiControlProperty, value: i32) void
fn guiSetStyleDefualt(control: rg.GuiControl, property: rg.GuiDefaultProperty, value: i32) void

JRMurr avatar Aug 11 '24 15:08 JRMurr