raylib 5.0.0.4__cp39-cp39-manylinux2014_x86_64.whl → 5.5.0.0.dev3__cp39-cp39-manylinux2014_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of raylib might be problematic. Click here for more details.

raylib/raygui.h.modified CHANGED
@@ -1,6 +1,6 @@
1
1
  /*******************************************************************************************
2
2
  *
3
- * raygui v4.0 - A simple and easy-to-use immediate-mode gui library
3
+ * raygui v4.5-dev - A simple and easy-to-use immediate-mode gui library
4
4
  *
5
5
  * DESCRIPTION:
6
6
  * raygui is a tools-dev-focused immediate-mode-gui library based on raylib but also
@@ -26,7 +26,7 @@
26
26
  * NOTES:
27
27
  * - WARNING: GuiLoadStyle() and GuiLoadStyle{Custom}() functions, allocate memory for
28
28
  * font atlas recs and glyphs, freeing that memory is (usually) up to the user,
29
- * no unload function is explicitly provided... but note that GuiLoadStyleDefaulf() unloads
29
+ * no unload function is explicitly provided... but note that GuiLoadStyleDefault() unloads
30
30
  * by default any previously loaded font (texture, recs, glyphs).
31
31
  * - Global UI alpha (guiAlpha) is applied inside GuiDrawRectangle() and GuiDrawText() functions
32
32
  *
@@ -136,11 +136,29 @@
136
136
  *
137
137
  * #define RAYGUI_DEBUG_RECS_BOUNDS
138
138
  * Draw control bounds rectangles for debug
139
- *
139
+ *
140
140
  * #define RAYGUI_DEBUG_TEXT_BOUNDS
141
141
  * Draw text bounds rectangles for debug
142
142
  *
143
143
  * VERSIONS HISTORY:
144
+ * 4.5-dev (Sep-2024) Current dev version...
145
+ * ADDED: guiControlExclusiveMode and guiControlExclusiveRec for exclusive modes
146
+ * ADDED: GuiValueBoxFloat()
147
+ * ADDED: GuiDropdonwBox() properties: DROPDOWN_ARROW_HIDDEN, DROPDOWN_ROLL_UP
148
+ * ADDED: GuiListView() property: LIST_ITEMS_BORDER_WIDTH
149
+ * ADDED: Multiple new icons
150
+ * REVIEWED: GuiTabBar(), close tab with mouse middle button
151
+ * REVIEWED: GuiScrollPanel(), scroll speed proportional to content
152
+ * REVIEWED: GuiDropdownBox(), support roll up and hidden arrow
153
+ * REVIEWED: GuiTextBox(), cursor position initialization
154
+ * REVIEWED: GuiSliderPro(), control value change check
155
+ * REVIEWED: GuiGrid(), simplified implementation
156
+ * REVIEWED: GuiIconText(), increase buffer size and reviewed padding
157
+ * REVIEWED: GuiDrawText(), improved wrap mode drawing
158
+ * REVIEWED: GuiScrollBar(), minor tweaks
159
+ * REVIEWED: Functions descriptions, removed wrong return value reference
160
+ * REDESIGNED: GuiColorPanel(), improved HSV <-> RGBA convertion
161
+ *
144
162
  * 4.0 (12-Sep-2023) ADDED: GuiToggleSlider()
145
163
  * ADDED: GuiColorPickerHSV() and GuiColorPanelHSV()
146
164
  * ADDED: Multiple new icons, mostly compiler related
@@ -246,7 +264,7 @@
246
264
  * 0.8 (27-Aug-2015) Initial release. Implemented by Kevin Gato, Daniel Nicolás and Ramon Santamaria.
247
265
  *
248
266
  * DEPENDENCIES:
249
- * raylib 4.6-dev Inputs reading (keyboard/mouse), shapes drawing, font loading and text drawing
267
+ * raylib 5.0 - Inputs reading (keyboard/mouse), shapes drawing, font loading and text drawing
250
268
  *
251
269
  * STANDALONE MODE:
252
270
  * By default raygui depends on raylib mostly for the inputs and the drawing functionality but that dependency can be disabled
@@ -291,7 +309,7 @@
291
309
  *
292
310
  * LICENSE: zlib/libpng
293
311
  *
294
- * Copyright (c) 2014-2023 Ramon Santamaria (@raysan5)
312
+ * Copyright (c) 2014-2024 Ramon Santamaria (@raysan5)
295
313
  *
296
314
  * This software is provided "as-is", without any express or implied warranty. In no event
297
315
  * will the authors be held liable for any damages arising from the use of this software.
@@ -431,11 +449,11 @@ typedef enum {
431
449
  TEXT_ALIGNMENT_VERTICAL, // Text vertical alignment inside text bounds (after border and padding)
432
450
  TEXT_WRAP_MODE // Text wrap-mode inside text bounds
433
451
  //TEXT_DECORATION // Text decoration: 0-None, 1-Underline, 2-Line-through, 3-Overline
434
- //TEXT_DECORATION_THICK // Text decoration line thikness
452
+ //TEXT_DECORATION_THICK // Text decoration line thickness
435
453
  } GuiDefaultProperty;
436
454
  // Other possible text properties:
437
455
  // TEXT_WEIGHT // Normal, Italic, Bold -> Requires specific font change
438
- // TEXT_INDENT // Text indentation -> Now using TEXT_PADDING...
456
+ // TEXT_INDENT // Text indentation -> Now using TEXT_PADDING...
439
457
  // Label
440
458
  //typedef enum { } GuiLabelProperty;
441
459
  // Button/Spinner
@@ -474,7 +492,9 @@ typedef enum {
474
492
  // DropdownBox
475
493
  typedef enum {
476
494
  ARROW_PADDING = 16, // DropdownBox arrow separation from border and items
477
- DROPDOWN_ITEMS_SPACING // DropdownBox items separation
495
+ DROPDOWN_ITEMS_SPACING, // DropdownBox items separation
496
+ DROPDOWN_ARROW_HIDDEN, // DropdownBox arrow hidden
497
+ DROPDOWN_ROLL_UP // DropdownBox roll up flag (default rolls down)
478
498
  } GuiDropdownBoxProperty;
479
499
  // TextBox/TextBoxMulti/ValueBox/Spinner
480
500
  typedef enum {
@@ -491,6 +511,7 @@ typedef enum {
491
511
  LIST_ITEMS_SPACING, // ListView items separation
492
512
  SCROLLBAR_WIDTH, // ListView scrollbar size (usually width)
493
513
  SCROLLBAR_SIDE, // ListView scrollbar side (0-SCROLLBAR_LEFT_SIDE, 1-SCROLLBAR_RIGHT_SIDE)
514
+ LIST_ITEMS_BORDER_WIDTH // ListView items border width
494
515
  } GuiListViewProperty;
495
516
  // ColorPicker
496
517
  typedef enum {
@@ -545,26 +566,27 @@ typedef enum {
545
566
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiTabBar(Rectangle bounds, const char **text, int count, int *active); // Tab Bar control, returns TAB to be closed or -1
546
567
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view); // Scroll Panel control
547
568
  // Basic controls set
548
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiLabel(Rectangle bounds, const char *text); // Label control, shows text
569
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiLabel(Rectangle bounds, const char *text); // Label control
549
570
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiButton(Rectangle bounds, const char *text); // Button control, returns true when clicked
550
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiLabelButton(Rectangle bounds, const char *text); // Label button control, show true when clicked
551
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiToggle(Rectangle bounds, const char *text, bool *active); // Toggle Button control, returns true when active
552
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiToggleGroup(Rectangle bounds, const char *text, int *active); // Toggle Group control, returns active toggle index
553
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiToggleSlider(Rectangle bounds, const char *text, int *active); // Toggle Slider control, returns true when clicked
571
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiLabelButton(Rectangle bounds, const char *text); // Label button control, returns true when clicked
572
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiToggle(Rectangle bounds, const char *text, bool *active); // Toggle Button control
573
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiToggleGroup(Rectangle bounds, const char *text, int *active); // Toggle Group control
574
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiToggleSlider(Rectangle bounds, const char *text, int *active); // Toggle Slider control
554
575
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiCheckBox(Rectangle bounds, const char *text, bool *checked); // Check Box control, returns true when active
555
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiComboBox(Rectangle bounds, const char *text, int *active); // Combo Box control, returns selected item index
556
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode); // Dropdown Box control, returns selected item
557
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode); // Spinner control, returns selected value
576
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiComboBox(Rectangle bounds, const char *text, int *active); // Combo Box control
577
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode); // Dropdown Box control
578
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode); // Spinner control
558
579
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode); // Value Box control, updates input text with numbers
580
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode); // Value box control for float values
559
581
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode); // Text Box control, updates input text
560
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Slider control, returns selected value
561
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Slider Bar control, returns selected value
562
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Progress Bar control, shows current progress value
582
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Slider control
583
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Slider Bar control
584
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue); // Progress Bar control
563
585
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiStatusBar(Rectangle bounds, const char *text); // Status Bar control, shows info text
564
586
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiDummyRec(Rectangle bounds, const char *text); // Dummy control for placeholders
565
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell); // Grid control, returns mouse cell position
587
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell); // Grid control
566
588
  // Advance controls set
567
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active); // List View control, returns selected list item index
589
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active); // List View control
568
590
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus); // List View with extended parameters
569
591
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons); // Message Box control, displays a message
570
592
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive); // Text Input Box control, ask for text, supports secret
@@ -573,7 +595,7 @@ typedef enum {
573
595
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha); // Color Bar Alpha control
574
596
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiColorBarHue(Rectangle bounds, const char *text, float *value); // Color Bar Hue control
575
597
  /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv); // Color Picker control that avoids conversion to RGB on each call (multiple color controls)
576
- /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv); // Color Panel control that returns HSV color value, used by GuiColorPickerHSV()
598
+ /* Functions defined as 'extern' by default (implicit specifiers)*/ int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv); // Color Panel control that updates Hue-Saturation-Value color value, used by GuiColorPickerHSV()
577
599
  //----------------------------------------------------------------------------------------------------------
578
600
  //----------------------------------------------------------------------------------
579
601
  // Icons enumeration
@@ -799,15 +821,15 @@ typedef enum {
799
821
  ICON_FOLDER = 217,
800
822
  ICON_FILE = 218,
801
823
  ICON_SAND_TIMER = 219,
802
- ICON_220 = 220,
803
- ICON_221 = 221,
804
- ICON_222 = 222,
805
- ICON_223 = 223,
806
- ICON_224 = 224,
807
- ICON_225 = 225,
808
- ICON_226 = 226,
809
- ICON_227 = 227,
810
- ICON_228 = 228,
824
+ ICON_WARNING = 220,
825
+ ICON_HELP_BOX = 221,
826
+ ICON_INFO_BOX = 222,
827
+ ICON_PRIORITY = 223,
828
+ ICON_LAYERS_ISO = 224,
829
+ ICON_LAYERS2 = 225,
830
+ ICON_MLAYERS = 226,
831
+ ICON_MAPS = 227,
832
+ ICON_HOT = 228,
811
833
  ICON_229 = 229,
812
834
  ICON_230 = 230,
813
835
  ICON_231 = 231,