Hi,
I changed the API a bit to use the "private" (static) functions in my other headers.
(Add RAYGUIAPI to the "Module specific Functions")
Make Module specific Functions public
I had a problem when using raygui in my custom GUI-Elements Header file, I couldn't use functions like GuiDrawRectangle or the (global) variable guiAlpha.
_(This only could work when I use raygui with #define RAYGUI_IMPLEMENTATION, like in the custom_sliders.c example, but my GUI components are split in different header- and cpp-files)_
add more getters
add GuiGetFade
add GuiSliderIsDragging
Little Fixes
change clicked to result in the RAYGUI_NO_ICONS case.
#if defined(RAYGUI_NO_ICONS)
result = GuiButton(closeButtonRec, "x");
#else
result = GuiButton(closeButtonRec, GuiIconText(ICON_CROSS_SMALL, NULL));
#endif
Cast (void*) to (unsigned char*), got some pedantic C++ errors.
Hi, I changed the API a bit to use the "private" (static) functions in my other headers. (Add
RAYGUIAPI
to the "Module specific Functions")Make Module specific Functions public
I had a problem when using raygui in my custom GUI-Elements Header file, I couldn't use functions like
GuiDrawRectangle
or the (global) variableguiAlpha
. _(This only could work when I use raygui with#define RAYGUI_IMPLEMENTATION
, like in the custom_sliders.c example, but my GUI components are split in different header- and cpp-files)_add more getters
GuiGetFade
GuiSliderIsDragging
Little Fixes
change
clicked
toresult
in theRAYGUI_NO_ICONS
case.Cast
(void*)
to(unsigned char*)
, got some pedantic C++ errors.