Help coding raygui.h wrapper file

Hi folks.
I was trying to port a raylib c example to odin and I found that the GuiValueBoxFloat proc is missing in the raygui.odin file. I’m hoping someone that knows how will help me add it to odin. I’m a newbe to both programming and Odin I don’t know how to do it.

Here is the raygui.h function that it wraps.

RAYGUIAPI int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode); // Value box control for float values

Thanks in advance to any help received. :slight_smile:

1 Like

My recommendation would be to look at the source for raygui.odin and look at how GuiValueBox (the integer version) is bound. It should be fairly easy to copy-paste-modify that existing binding for GuiValueBoxFloat.

Thanks for the reply. Yes but it’s more involved than I know how to deal with. Here are some of the things from ComboBox.
// ComboBox
GuiComboBoxProperty :: enum c.int {
COMBO_BUTTON_WIDTH = 16, // ComboBox right button width
COMBO_BUTTON_SPACING, // ComboBox button separation
}
There is also an enum: // Gui controls
and more. I was hoping someone who knows more than me would tackle the job. :slight_smile: