raylib-bindings 0.5.2 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/raygui.rb CHANGED
@@ -11,7 +11,10 @@ module Raylib
11
11
 
12
12
  # Define/Macro
13
13
 
14
- RAYGUI_VERSION = "3.2"
14
+ RAYGUI_VERSION_MAJOR = 4
15
+ RAYGUI_VERSION_MINOR = 0
16
+ RAYGUI_VERSION_PATCH = 0
17
+ RAYGUI_VERSION = "4.0-dev"
15
18
  SCROLLBAR_LEFT_SIDE = 0
16
19
  SCROLLBAR_RIGHT_SIDE = 1
17
20
 
@@ -113,8 +116,11 @@ module Raylib
113
116
 
114
117
  # enum GuiTextBoxProperty
115
118
  # TextBox/TextBoxMulti/ValueBox/Spinner
116
- TEXT_INNER_PADDING = 16 # TextBox/TextBoxMulti/ValueBox/Spinner inner text padding
117
- TEXT_LINES_SPACING = 17 # TextBoxMulti lines separation
119
+ TEXT_INNER_PADDING = 16 # TextBox/TextBoxMulti/ValueBox/Spinner inner text padding
120
+ TEXT_LINES_SPACING = 17 # TextBoxMulti lines separation
121
+ TEXT_ALIGNMENT_VERTICAL = 18 # TextBoxMulti vertical alignment: 0-CENTERED, 1-UP, 2-DOWN
122
+ TEXT_MULTILINE = 19 # TextBox supports multiple lines
123
+ TEXT_WRAP_MODE = 20 # TextBox wrap mode for multiline: 0-NO_WRAP, 1-CHAR_WRAP, 2-WORD_WRAP
118
124
 
119
125
  # enum GuiSpinnerProperty
120
126
  # Spinner
@@ -357,7 +363,7 @@ module Raylib
357
363
  ICON_REG_EXP = 216
358
364
  ICON_FOLDER = 217
359
365
  ICON_FILE = 218
360
- ICON_219 = 219
366
+ ICON_SAND_TIMER = 219
361
367
  ICON_220 = 220
362
368
  ICON_221 = 221
363
369
  ICON_222 = 222
@@ -439,358 +445,405 @@ module Raylib
439
445
  def self.setup_raygui_symbols
440
446
  entries = [
441
447
 
442
- # GuiEnable : Enable gui controls (global state)
443
- # @return [void]
448
+ # @!method GuiEnable()
449
+ # GuiEnable : Enable gui controls (global state)
450
+ # @return [void]
444
451
  [:GuiEnable, :GuiEnable, [], :void],
445
452
 
446
- # GuiDisable : Disable gui controls (global state)
447
- # @return [void]
453
+ # @!method GuiDisable()
454
+ # GuiDisable : Disable gui controls (global state)
455
+ # @return [void]
448
456
  [:GuiDisable, :GuiDisable, [], :void],
449
457
 
450
- # GuiLock : Lock gui controls (global state)
451
- # @return [void]
458
+ # @!method GuiLock()
459
+ # GuiLock : Lock gui controls (global state)
460
+ # @return [void]
452
461
  [:GuiLock, :GuiLock, [], :void],
453
462
 
454
- # GuiUnlock : Unlock gui controls (global state)
455
- # @return [void]
463
+ # @!method GuiUnlock()
464
+ # GuiUnlock : Unlock gui controls (global state)
465
+ # @return [void]
456
466
  [:GuiUnlock, :GuiUnlock, [], :void],
457
467
 
458
- # GuiIsLocked : Check if gui is locked (global state)
459
- # @return [bool]
468
+ # @!method GuiIsLocked()
469
+ # GuiIsLocked : Check if gui is locked (global state)
470
+ # @return [bool]
460
471
  [:GuiIsLocked, :GuiIsLocked, [], :bool],
461
472
 
462
- # GuiFade : Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
463
- # @param alpha [float]
464
- # @return [void]
473
+ # @!method GuiFade(alpha)
474
+ # GuiFade : Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f
475
+ # @param alpha [float]
476
+ # @return [void]
465
477
  [:GuiFade, :GuiFade, [:float], :void],
466
478
 
467
- # GuiSetState : Set gui state (global state)
468
- # @param state [int]
469
- # @return [void]
479
+ # @!method GuiSetState(state)
480
+ # GuiSetState : Set gui state (global state)
481
+ # @param state [int]
482
+ # @return [void]
470
483
  [:GuiSetState, :GuiSetState, [:int], :void],
471
484
 
472
- # GuiGetState : Get gui state (global state)
473
- # @return [int]
485
+ # @!method GuiGetState()
486
+ # GuiGetState : Get gui state (global state)
487
+ # @return [int]
474
488
  [:GuiGetState, :GuiGetState, [], :int],
475
489
 
476
- # GuiSetFont : Set gui custom font (global state)
477
- # @param font [Font]
478
- # @return [void]
490
+ # @!method GuiSetFont(font)
491
+ # GuiSetFont : Set gui custom font (global state)
492
+ # @param font [Font]
493
+ # @return [void]
479
494
  [:GuiSetFont, :GuiSetFont, [Font.by_value], :void],
480
495
 
481
- # GuiGetFont : Get gui custom font (global state)
482
- # @return [Font]
496
+ # @!method GuiGetFont()
497
+ # GuiGetFont : Get gui custom font (global state)
498
+ # @return [Font]
483
499
  [:GuiGetFont, :GuiGetFont, [], Font.by_value],
484
500
 
485
- # GuiSetStyle : Set one style property
486
- # @param control [int]
487
- # @param property [int]
488
- # @param value [int]
489
- # @return [void]
501
+ # @!method GuiSetStyle(control, property, value)
502
+ # GuiSetStyle : Set one style property
503
+ # @param control [int]
504
+ # @param property [int]
505
+ # @param value [int]
506
+ # @return [void]
490
507
  [:GuiSetStyle, :GuiSetStyle, [:int, :int, :int], :void],
491
508
 
492
- # GuiGetStyle : Get one style property
493
- # @param control [int]
494
- # @param property [int]
495
- # @return [int]
509
+ # @!method GuiGetStyle(control, property)
510
+ # GuiGetStyle : Get one style property
511
+ # @param control [int]
512
+ # @param property [int]
513
+ # @return [int]
496
514
  [:GuiGetStyle, :GuiGetStyle, [:int, :int], :int],
497
515
 
498
- # GuiWindowBox : Window Box control, shows a window that can be closed
499
- # @param bounds [Rectangle]
500
- # @param title [const char *]
501
- # @return [bool]
502
- [:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :bool],
503
-
504
- # GuiGroupBox : Group Box control with text name
505
- # @param bounds [Rectangle]
506
- # @param text [const char *]
507
- # @return [void]
508
- [:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :void],
509
-
510
- # GuiLine : Line separator control, could contain text
511
- # @param bounds [Rectangle]
512
- # @param text [const char *]
513
- # @return [void]
514
- [:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :void],
515
-
516
- # GuiPanel : Panel control, useful to group controls
517
- # @param bounds [Rectangle]
518
- # @param text [const char *]
519
- # @return [void]
520
- [:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :void],
521
-
522
- # GuiTabBar : Tab Bar control, returns TAB to be closed or -1
523
- # @param bounds [Rectangle]
524
- # @param text [const char **]
525
- # @param count [int]
526
- # @param active [int *]
527
- # @return [int]
528
- [:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],
529
-
530
- # GuiScrollPanel : Scroll Panel control
531
- # @param bounds [Rectangle]
532
- # @param text [const char *]
533
- # @param content [Rectangle]
534
- # @param scroll [Vector2 *]
535
- # @return [Rectangle]
536
- [:GuiScrollPanel, :GuiScrollPanel, [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer], Rectangle.by_value],
537
-
538
- # GuiLabel : Label control, shows text
539
- # @param bounds [Rectangle]
540
- # @param text [const char *]
541
- # @return [void]
542
- [:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :void],
543
-
544
- # GuiButton : Button control, returns true when clicked
545
- # @param bounds [Rectangle]
546
- # @param text [const char *]
547
- # @return [bool]
548
- [:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :bool],
549
-
550
- # GuiLabelButton : Label button control, show true when clicked
551
- # @param bounds [Rectangle]
552
- # @param text [const char *]
553
- # @return [bool]
554
- [:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :bool],
555
-
556
- # GuiToggle : Toggle Button control, returns true when active
557
- # @param bounds [Rectangle]
558
- # @param text [const char *]
559
- # @param active [bool]
560
- # @return [bool]
561
- [:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :bool], :bool],
562
-
563
- # GuiToggleGroup : Toggle Group control, returns active toggle index
564
- # @param bounds [Rectangle]
565
- # @param text [const char *]
566
- # @param active [int]
567
- # @return [int]
568
- [:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :int], :int],
569
-
570
- # GuiCheckBox : Check Box control, returns true when active
571
- # @param bounds [Rectangle]
572
- # @param text [const char *]
573
- # @param checked [bool]
574
- # @return [bool]
575
- [:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :bool], :bool],
576
-
577
- # GuiComboBox : Combo Box control, returns selected item index
578
- # @param bounds [Rectangle]
579
- # @param text [const char *]
580
- # @param active [int]
581
- # @return [int]
582
- [:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :int], :int],
583
-
584
- # GuiDropdownBox : Dropdown Box control, returns selected item
585
- # @param bounds [Rectangle]
586
- # @param text [const char *]
587
- # @param active [int *]
588
- # @param editMode [bool]
589
- # @return [bool]
590
- [:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :bool],
591
-
592
- # GuiSpinner : Spinner control, returns selected value
593
- # @param bounds [Rectangle]
594
- # @param text [const char *]
595
- # @param value [int *]
596
- # @param minValue [int]
597
- # @param maxValue [int]
598
- # @param editMode [bool]
599
- # @return [bool]
600
- [:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :bool],
601
-
602
- # GuiValueBox : Value Box control, updates input text with numbers
603
- # @param bounds [Rectangle]
604
- # @param text [const char *]
605
- # @param value [int *]
606
- # @param minValue [int]
607
- # @param maxValue [int]
608
- # @param editMode [bool]
609
- # @return [bool]
610
- [:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :bool],
611
-
612
- # GuiTextBox : Text Box control, updates input text
613
- # @param bounds [Rectangle]
614
- # @param text [char *]
615
- # @param textSize [int]
616
- # @param editMode [bool]
617
- # @return [bool]
618
- [:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :bool],
619
-
620
- # GuiTextBoxMulti : Text Box control with multiple lines
621
- # @param bounds [Rectangle]
622
- # @param text [char *]
623
- # @param textSize [int]
624
- # @param editMode [bool]
625
- # @return [bool]
626
- [:GuiTextBoxMulti, :GuiTextBoxMulti, [Rectangle.by_value, :pointer, :int, :bool], :bool],
627
-
628
- # GuiSlider : Slider control, returns selected value
629
- # @param bounds [Rectangle]
630
- # @param textLeft [const char *]
631
- # @param textRight [const char *]
632
- # @param value [float]
633
- # @param minValue [float]
634
- # @param maxValue [float]
635
- # @return [float]
636
- [:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],
637
-
638
- # GuiSliderBar : Slider Bar control, returns selected value
639
- # @param bounds [Rectangle]
640
- # @param textLeft [const char *]
641
- # @param textRight [const char *]
642
- # @param value [float]
643
- # @param minValue [float]
644
- # @param maxValue [float]
645
- # @return [float]
646
- [:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],
647
-
648
- # GuiProgressBar : Progress Bar control, shows current progress value
649
- # @param bounds [Rectangle]
650
- # @param textLeft [const char *]
651
- # @param textRight [const char *]
652
- # @param value [float]
653
- # @param minValue [float]
654
- # @param maxValue [float]
655
- # @return [float]
656
- [:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],
657
-
658
- # GuiStatusBar : Status Bar control, shows info text
659
- # @param bounds [Rectangle]
660
- # @param text [const char *]
661
- # @return [void]
662
- [:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :void],
663
-
664
- # GuiDummyRec : Dummy control for placeholders
665
- # @param bounds [Rectangle]
666
- # @param text [const char *]
667
- # @return [void]
668
- [:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :void],
669
-
670
- # GuiGrid : Grid control, returns mouse cell position
671
- # @param bounds [Rectangle]
672
- # @param text [const char *]
673
- # @param spacing [float]
674
- # @param subdivs [int]
675
- # @return [Vector2]
676
- [:GuiGrid, :GuiGrid, [Rectangle.by_value, :pointer, :float, :int], Vector2.by_value],
677
-
678
- # GuiListView : List View control, returns selected list item index
679
- # @param bounds [Rectangle]
680
- # @param text [const char *]
681
- # @param scrollIndex [int *]
682
- # @param active [int]
683
- # @return [int]
684
- [:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :int], :int],
685
-
686
- # GuiListViewEx : List View with extended parameters
687
- # @param bounds [Rectangle]
688
- # @param text [const char **]
689
- # @param count [int]
690
- # @param focus [int *]
691
- # @param scrollIndex [int *]
692
- # @param active [int]
693
- # @return [int]
694
- [:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :int], :int],
695
-
696
- # GuiMessageBox : Message Box control, displays a message
697
- # @param bounds [Rectangle]
698
- # @param title [const char *]
699
- # @param message [const char *]
700
- # @param buttons [const char *]
701
- # @return [int]
702
- [:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
703
-
704
- # GuiTextInputBox : Text Input Box control, ask for text, supports secret
705
- # @param bounds [Rectangle]
706
- # @param title [const char *]
707
- # @param message [const char *]
708
- # @param buttons [const char *]
709
- # @param text [char *]
710
- # @param textMaxSize [int]
711
- # @param secretViewActive [int *]
712
- # @return [int]
713
- [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
714
-
715
- # GuiColorPicker : Color Picker control (multiple color controls)
716
- # @param bounds [Rectangle]
717
- # @param text [const char *]
718
- # @param color [Color]
719
- # @return [Color]
720
- [:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer, Color.by_value], Color.by_value],
721
-
722
- # GuiColorPanel : Color Panel control
723
- # @param bounds [Rectangle]
724
- # @param text [const char *]
725
- # @param color [Color]
726
- # @return [Color]
727
- [:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer, Color.by_value], Color.by_value],
728
-
729
- # GuiColorBarAlpha : Color Bar Alpha control
730
- # @param bounds [Rectangle]
731
- # @param text [const char *]
732
- # @param alpha [float]
733
- # @return [float]
734
- [:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :float], :float],
735
-
736
- # GuiColorBarHue : Color Bar Hue control
737
- # @param bounds [Rectangle]
738
- # @param text [const char *]
739
- # @param value [float]
740
- # @return [float]
741
- [:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :float], :float],
742
-
743
- # GuiLoadStyle : Load style file over global style variable (.rgs)
744
- # @param fileName [const char *]
745
- # @return [void]
516
+ # @!method GuiLoadStyle(fileName)
517
+ # GuiLoadStyle : Load style file over global style variable (.rgs)
518
+ # @param fileName [const char *]
519
+ # @return [void]
746
520
  [:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],
747
521
 
748
- # GuiLoadStyleDefault : Load style default over global style
749
- # @return [void]
522
+ # @!method GuiLoadStyleDefault()
523
+ # GuiLoadStyleDefault : Load style default over global style
524
+ # @return [void]
750
525
  [:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],
751
526
 
752
- # GuiEnableTooltip : Enable gui tooltips (global state)
753
- # @return [void]
527
+ # @!method GuiEnableTooltip()
528
+ # GuiEnableTooltip : Enable gui tooltips (global state)
529
+ # @return [void]
754
530
  [:GuiEnableTooltip, :GuiEnableTooltip, [], :void],
755
531
 
756
- # GuiDisableTooltip : Disable gui tooltips (global state)
757
- # @return [void]
532
+ # @!method GuiDisableTooltip()
533
+ # GuiDisableTooltip : Disable gui tooltips (global state)
534
+ # @return [void]
758
535
  [:GuiDisableTooltip, :GuiDisableTooltip, [], :void],
759
536
 
760
- # GuiSetTooltip : Set tooltip string
761
- # @param tooltip [const char *]
762
- # @return [void]
537
+ # @!method GuiSetTooltip(tooltip)
538
+ # GuiSetTooltip : Set tooltip string
539
+ # @param tooltip [const char *]
540
+ # @return [void]
763
541
  [:GuiSetTooltip, :GuiSetTooltip, [:pointer], :void],
764
542
 
765
- # GuiIconText : Get text with icon id prepended (if supported)
766
- # @param iconId [int]
767
- # @param text [const char *]
768
- # @return [const char *]
543
+ # @!method GuiIconText(iconId, text)
544
+ # GuiIconText : Get text with icon id prepended (if supported)
545
+ # @param iconId [int]
546
+ # @param text [const char *]
547
+ # @return [const char *]
769
548
  [:GuiIconText, :GuiIconText, [:int, :pointer], :pointer],
770
549
 
771
- # GuiGetIcons : Get raygui icons data pointer
772
- # @return [unsigned int *]
550
+ # @!method GuiSetIconScale(scale)
551
+ # GuiSetIconScale : Set default icon drawing size
552
+ # @param scale [int]
553
+ # @return [void]
554
+ [:GuiSetIconScale, :GuiSetIconScale, [:int], :void],
555
+
556
+ # @!method GuiGetIcons()
557
+ # GuiGetIcons : Get raygui icons data pointer
558
+ # @return [unsigned int *]
773
559
  [:GuiGetIcons, :GuiGetIcons, [], :pointer],
774
560
 
775
- # GuiLoadIcons : Load raygui icons file (.rgi) into internal icons data
776
- # @param fileName [const char *]
777
- # @param loadIconsName [bool]
778
- # @return [char **]
561
+ # @!method GuiLoadIcons(fileName, loadIconsName)
562
+ # GuiLoadIcons : Load raygui icons file (.rgi) into internal icons data
563
+ # @param fileName [const char *]
564
+ # @param loadIconsName [bool]
565
+ # @return [char **]
779
566
  [:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
780
567
 
781
- # GuiDrawIcon
782
- # @param iconId [int]
783
- # @param posX [int]
784
- # @param posY [int]
785
- # @param pixelSize [int]
786
- # @param color [Color]
787
- # @return [void]
568
+ # @!method GuiDrawIcon(iconId, posX, posY, pixelSize, color)
569
+ # GuiDrawIcon : Draw icon using pixel size at specified position
570
+ # @param iconId [int]
571
+ # @param posX [int]
572
+ # @param posY [int]
573
+ # @param pixelSize [int]
574
+ # @param color [Color]
575
+ # @return [void]
788
576
  [:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
789
577
 
790
- # GuiSetIconScale : Set icon drawing size
791
- # @param scale [int]
792
- # @return [void]
793
- [:GuiSetIconScale, :GuiSetIconScale, [:int], :void],
578
+ # @!method GuiWindowBox(bounds, title)
579
+ # GuiWindowBox : Window Box control, shows a window that can be closed
580
+ # @param bounds [Rectangle]
581
+ # @param title [const char *]
582
+ # @return [int]
583
+ [:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :int],
584
+
585
+ # @!method GuiGroupBox(bounds, text)
586
+ # GuiGroupBox : Group Box control with text name
587
+ # @param bounds [Rectangle]
588
+ # @param text [const char *]
589
+ # @return [int]
590
+ [:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :int],
591
+
592
+ # @!method GuiLine(bounds, text)
593
+ # GuiLine : Line separator control, could contain text
594
+ # @param bounds [Rectangle]
595
+ # @param text [const char *]
596
+ # @return [int]
597
+ [:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :int],
598
+
599
+ # @!method GuiPanel(bounds, text)
600
+ # GuiPanel : Panel control, useful to group controls
601
+ # @param bounds [Rectangle]
602
+ # @param text [const char *]
603
+ # @return [int]
604
+ [:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :int],
605
+
606
+ # @!method GuiTabBar(bounds, text, count, active)
607
+ # GuiTabBar : Tab Bar control, returns TAB to be closed or -1
608
+ # @param bounds [Rectangle]
609
+ # @param text [const char **]
610
+ # @param count [int]
611
+ # @param active [int *]
612
+ # @return [int]
613
+ [:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],
614
+
615
+ # @!method GuiScrollPanel(bounds, text, content, scroll, view)
616
+ # GuiScrollPanel : Scroll Panel control
617
+ # @param bounds [Rectangle]
618
+ # @param text [const char *]
619
+ # @param content [Rectangle]
620
+ # @param scroll [Vector2 *]
621
+ # @param view [Rectangle *]
622
+ # @return [int]
623
+ [:GuiScrollPanel, :GuiScrollPanel, [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer, :pointer], :int],
624
+
625
+ # @!method GuiLabel(bounds, text)
626
+ # GuiLabel : Label control, shows text
627
+ # @param bounds [Rectangle]
628
+ # @param text [const char *]
629
+ # @return [int]
630
+ [:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :int],
631
+
632
+ # @!method GuiButton(bounds, text)
633
+ # GuiButton : Button control, returns true when clicked
634
+ # @param bounds [Rectangle]
635
+ # @param text [const char *]
636
+ # @return [int]
637
+ [:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :int],
638
+
639
+ # @!method GuiLabelButton(bounds, text)
640
+ # GuiLabelButton : Label button control, show true when clicked
641
+ # @param bounds [Rectangle]
642
+ # @param text [const char *]
643
+ # @return [int]
644
+ [:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :int],
645
+
646
+ # @!method GuiToggle(bounds, text, active)
647
+ # GuiToggle : Toggle Button control, returns true when active
648
+ # @param bounds [Rectangle]
649
+ # @param text [const char *]
650
+ # @param active [bool *]
651
+ # @return [int]
652
+ [:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :pointer], :int],
653
+
654
+ # @!method GuiToggleGroup(bounds, text, active)
655
+ # GuiToggleGroup : Toggle Group control, returns active toggle index
656
+ # @param bounds [Rectangle]
657
+ # @param text [const char *]
658
+ # @param active [int *]
659
+ # @return [int]
660
+ [:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :pointer], :int],
661
+
662
+ # @!method GuiCheckBox(bounds, text, checked)
663
+ # GuiCheckBox : Check Box control, returns true when active
664
+ # @param bounds [Rectangle]
665
+ # @param text [const char *]
666
+ # @param checked [bool *]
667
+ # @return [int]
668
+ [:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :pointer], :int],
669
+
670
+ # @!method GuiComboBox(bounds, text, active)
671
+ # GuiComboBox : Combo Box control, returns selected item index
672
+ # @param bounds [Rectangle]
673
+ # @param text [const char *]
674
+ # @param active [int *]
675
+ # @return [int]
676
+ [:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :pointer], :int],
677
+
678
+ # @!method GuiDropdownBox(bounds, text, active, editMode)
679
+ # GuiDropdownBox : Dropdown Box control, returns selected item
680
+ # @param bounds [Rectangle]
681
+ # @param text [const char *]
682
+ # @param active [int *]
683
+ # @param editMode [bool]
684
+ # @return [int]
685
+ [:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :int],
686
+
687
+ # @!method GuiSpinner(bounds, text, value, minValue, maxValue, editMode)
688
+ # GuiSpinner : Spinner control, returns selected value
689
+ # @param bounds [Rectangle]
690
+ # @param text [const char *]
691
+ # @param value [int *]
692
+ # @param minValue [int]
693
+ # @param maxValue [int]
694
+ # @param editMode [bool]
695
+ # @return [int]
696
+ [:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
697
+
698
+ # @!method GuiValueBox(bounds, text, value, minValue, maxValue, editMode)
699
+ # GuiValueBox : Value Box control, updates input text with numbers
700
+ # @param bounds [Rectangle]
701
+ # @param text [const char *]
702
+ # @param value [int *]
703
+ # @param minValue [int]
704
+ # @param maxValue [int]
705
+ # @param editMode [bool]
706
+ # @return [int]
707
+ [:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
708
+
709
+ # @!method GuiTextBox(bounds, text, textSize, editMode)
710
+ # GuiTextBox : Text Box control, updates input text
711
+ # @param bounds [Rectangle]
712
+ # @param text [char *]
713
+ # @param textSize [int]
714
+ # @param editMode [bool]
715
+ # @return [int]
716
+ [:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :int],
717
+
718
+ # @!method GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue)
719
+ # GuiSlider : Slider control, returns selected value
720
+ # @param bounds [Rectangle]
721
+ # @param textLeft [const char *]
722
+ # @param textRight [const char *]
723
+ # @param value [float *]
724
+ # @param minValue [float]
725
+ # @param maxValue [float]
726
+ # @return [int]
727
+ [:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
728
+
729
+ # @!method GuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
730
+ # GuiSliderBar : Slider Bar control, returns selected value
731
+ # @param bounds [Rectangle]
732
+ # @param textLeft [const char *]
733
+ # @param textRight [const char *]
734
+ # @param value [float *]
735
+ # @param minValue [float]
736
+ # @param maxValue [float]
737
+ # @return [int]
738
+ [:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
739
+
740
+ # @!method GuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue)
741
+ # GuiProgressBar : Progress Bar control, shows current progress value
742
+ # @param bounds [Rectangle]
743
+ # @param textLeft [const char *]
744
+ # @param textRight [const char *]
745
+ # @param value [float *]
746
+ # @param minValue [float]
747
+ # @param maxValue [float]
748
+ # @return [int]
749
+ [:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
750
+
751
+ # @!method GuiStatusBar(bounds, text)
752
+ # GuiStatusBar : Status Bar control, shows info text
753
+ # @param bounds [Rectangle]
754
+ # @param text [const char *]
755
+ # @return [int]
756
+ [:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :int],
757
+
758
+ # @!method GuiDummyRec(bounds, text)
759
+ # GuiDummyRec : Dummy control for placeholders
760
+ # @param bounds [Rectangle]
761
+ # @param text [const char *]
762
+ # @return [int]
763
+ [:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :int],
764
+
765
+ # @!method GuiGrid(bounds, text, spacing, subdivs, mouseCell)
766
+ # GuiGrid : Grid control, returns mouse cell position
767
+ # @param bounds [Rectangle]
768
+ # @param text [const char *]
769
+ # @param spacing [float]
770
+ # @param subdivs [int]
771
+ # @param mouseCell [Vector2 *]
772
+ # @return [int]
773
+ [:GuiGrid, :GuiGrid, [Rectangle.by_value, :pointer, :float, :int, :pointer], :int],
774
+
775
+ # @!method GuiListView(bounds, text, scrollIndex, active)
776
+ # GuiListView : List View control, returns selected list item index
777
+ # @param bounds [Rectangle]
778
+ # @param text [const char *]
779
+ # @param scrollIndex [int *]
780
+ # @param active [int *]
781
+ # @return [int]
782
+ [:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
783
+
784
+ # @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
785
+ # GuiListViewEx : List View with extended parameters
786
+ # @param bounds [Rectangle]
787
+ # @param text [const char **]
788
+ # @param count [int]
789
+ # @param scrollIndex [int *]
790
+ # @param active [int *]
791
+ # @param focus [int *]
792
+ # @return [int]
793
+ [:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
794
+
795
+ # @!method GuiMessageBox(bounds, title, message, buttons)
796
+ # GuiMessageBox : Message Box control, displays a message
797
+ # @param bounds [Rectangle]
798
+ # @param title [const char *]
799
+ # @param message [const char *]
800
+ # @param buttons [const char *]
801
+ # @return [int]
802
+ [:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
803
+
804
+ # @!method GuiTextInputBox(bounds, title, message, buttons, text, textMaxSize, secretViewActive)
805
+ # GuiTextInputBox : Text Input Box control, ask for text, supports secret
806
+ # @param bounds [Rectangle]
807
+ # @param title [const char *]
808
+ # @param message [const char *]
809
+ # @param buttons [const char *]
810
+ # @param text [char *]
811
+ # @param textMaxSize [int]
812
+ # @param secretViewActive [bool *]
813
+ # @return [int]
814
+ [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
815
+
816
+ # @!method GuiColorPicker(bounds, text, color)
817
+ # GuiColorPicker : Color Picker control (multiple color controls)
818
+ # @param bounds [Rectangle]
819
+ # @param text [const char *]
820
+ # @param color [Color *]
821
+ # @return [int]
822
+ [:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer, :pointer], :int],
823
+
824
+ # @!method GuiColorPanel(bounds, text, color)
825
+ # GuiColorPanel : Color Panel control
826
+ # @param bounds [Rectangle]
827
+ # @param text [const char *]
828
+ # @param color [Color *]
829
+ # @return [int]
830
+ [:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer, :pointer], :int],
831
+
832
+ # @!method GuiColorBarAlpha(bounds, text, alpha)
833
+ # GuiColorBarAlpha : Color Bar Alpha control
834
+ # @param bounds [Rectangle]
835
+ # @param text [const char *]
836
+ # @param alpha [float *]
837
+ # @return [int]
838
+ [:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :pointer], :int],
839
+
840
+ # @!method GuiColorBarHue(bounds, text, value)
841
+ # GuiColorBarHue : Color Bar Hue control
842
+ # @param bounds [Rectangle]
843
+ # @param text [const char *]
844
+ # @param value [float *]
845
+ # @return [int]
846
+ [:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :pointer], :int],
794
847
  ]
795
848
  entries.each do |entry|
796
849
  attach_function entry[0], entry[1], entry[2], entry[3]