Reviewed controls

This commit is contained in:
raysan5
2022-02-05 19:45:20 +01:00
parent f00fa5ff23
commit 90ef00a474

View File

@ -10,11 +10,11 @@
* Controls provided: * Controls provided:
* *
* # Container/separators Controls * # Container/separators Controls
* - WindowBox * - WindowBox --> StatusBar, Panel
* - GroupBox * - GroupBox --> Line
* - Line * - Line
* - Panel * - Panel --> StatusBar
* - ScrollPanel * - ScrollPanel --> StatusBar
* *
* # Basic Controls * # Basic Controls
* - Label * - Label
@ -33,7 +33,6 @@
* - SliderBar --> Slider * - SliderBar --> Slider
* - ProgressBar * - ProgressBar
* - StatusBar * - StatusBar
* - ScrollBar // TODO: Really? Do we need it? We have GuiScrollPanel()
* - DummyRec * - DummyRec
* - Grid * - Grid
* *
@ -112,7 +111,8 @@
* *
* *
* VERSIONS HISTORY: * VERSIONS HISTORY:
* 3.2 (xx-Feb-2022) REDESIGNED: GuiPanel() to support text parameter * 3.2 (xx-Feb-2022) REMOVED: GuiScrollBar(), only internal
* REDESIGNED: GuiPanel() to support text parameter
* REDESIGNED: GuiScrollPanel() to support text parameter * REDESIGNED: GuiScrollPanel() to support text parameter
* REDESIGNED: GuiColorPicker() to support text parameter * REDESIGNED: GuiColorPicker() to support text parameter
* REDESIGNED: GuiColorPanel() to support text parameter * REDESIGNED: GuiColorPanel() to support text parameter
@ -333,7 +333,9 @@ typedef enum {
// Gui controls // Gui controls
typedef enum { typedef enum {
DEFAULT = 0, // Generic control -> populates to all controls when set // Default -> populates to all controls when set
DEFAULT = 0,
// Basic controls
LABEL, // Used also for: LABELBUTTON LABEL, // Used also for: LABELBUTTON
BUTTON, BUTTON,
TOGGLE, // Used also for: TOGGLEGROUP TOGGLE, // Used also for: TOGGLEGROUP
@ -344,7 +346,7 @@ typedef enum {
DROPDOWNBOX, DROPDOWNBOX,
TEXTBOX, // Used also for: TEXTBOXMULTI TEXTBOX, // Used also for: TEXTBOXMULTI
VALUEBOX, VALUEBOX,
SPINNER, SPINNER, // Uses: BUTTON, VALUEBOX
LISTVIEW, LISTVIEW,
COLORPICKER, COLORPICKER,
SCROLLBAR, SCROLLBAR,
@ -387,7 +389,7 @@ typedef enum {
// Label // Label
//typedef enum { } GuiLabelProperty; //typedef enum { } GuiLabelProperty;
// Button // Button/Spinner
//typedef enum { } GuiButtonProperty; //typedef enum { } GuiButtonProperty;
// Toggle/ToggleGroup // Toggle/ToggleGroup
@ -470,6 +472,9 @@ typedef enum {
HUEBAR_SELECTOR_OVERFLOW // Right hue bar selector overflow HUEBAR_SELECTOR_OVERFLOW // Right hue bar selector overflow
} GuiColorPickerProperty; } GuiColorPickerProperty;
#define SCROLLBAR_LEFT_SIDE 0
#define SCROLLBAR_RIGHT_SIDE 1
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
// Global Variables Definition // Global Variables Definition
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
@ -2151,8 +2156,6 @@ bool GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, in
GuiSetStyle(BUTTON, BORDER_WIDTH, GuiGetStyle(SPINNER, BORDER_WIDTH)); GuiSetStyle(BUTTON, BORDER_WIDTH, GuiGetStyle(SPINNER, BORDER_WIDTH));
GuiSetStyle(BUTTON, TEXT_ALIGNMENT, GUI_TEXT_ALIGN_CENTER); GuiSetStyle(BUTTON, TEXT_ALIGNMENT, GUI_TEXT_ALIGN_CENTER);
GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlign); GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlign);
GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth); GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth);