Not-Nik / raylib-zig

Manually tweaked, auto-generated raylib bindings for zig. https://github.com/raysan5/raylib
MIT License
703 stars 123 forks source link

guiSetStyle should use respective enums as the type for control and property #125

Closed MykBamberg closed 4 months ago

MykBamberg commented 4 months ago

The current declaration for guiSetStyle is

fn guiSetStyle(control: i32, property: i32, value: i32) void

I am proposing to change it to

fn guiSetStyle(control: rg.GuiState, property: rg.GuiControlProperty, value: i32) void

This would ensure that the input is within the acceptable range and reduce ambiguity.