From 9d1e48bfe61289fd86397e53a588e0d57760b258 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 11 Mar 2020 12:27:20 +0100 Subject: [PATCH] Expose internal GuiColor*() controls #74 --- src/raygui.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 5030ca0..cfb8eac 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -471,7 +471,10 @@ RAYGUIDEF int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, RAYGUIDEF int GuiListViewEx(Rectangle bounds, const char **text, int count, int *focus, int *scrollIndex, int active); // List View with extended parameters RAYGUIDEF int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons); // Message Box control, displays a message RAYGUIDEF int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text); // Text Input Box control, ask for text -RAYGUIDEF Color GuiColorPicker(Rectangle bounds, Color color); // Color Picker control +RAYGUIDEF Color GuiColorPicker(Rectangle bounds, Color color); // Color Picker control (multiple color controls) +RAYGUIDEF Color GuiColorPanel(Rectangle bounds, Color color); // Color Panel control +RAYGUIDEF float GuiColorBarAlpha(Rectangle bounds, float alpha); // Color Bar Alpha control +RAYGUIDEF float GuiColorBarHue(Rectangle bounds, float value); // Color Bar Hue control // Styles loading functions RAYGUIDEF void GuiLoadStyle(const char *fileName); // Load style file (.rgs) @@ -2782,7 +2785,7 @@ float GuiColorBarHue(Rectangle bounds, float hue) // Color Picker control // NOTE: It's divided in multiple controls: -// Color GuiColorPanel() - Color select panel +// Color GuiColorPanel(Rectangle bounds, Color color) // float GuiColorBarAlpha(Rectangle bounds, float alpha) // float GuiColorBarHue(Rectangle bounds, float value) // NOTE: bounds define GuiColorPanel() size