raylib-bindings 0.5.1 → 0.5.3

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 = 3
15
+ RAYGUI_VERSION_MINOR = 6
16
+ RAYGUI_VERSION_PATCH = 0
17
+ RAYGUI_VERSION = "3.6"
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,403 @@ 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]
516
+ # @!method GuiWindowBox(bounds, title)
517
+ # GuiWindowBox : Window Box control, shows a window that can be closed
518
+ # @param bounds [Rectangle]
519
+ # @param title [const char *]
520
+ # @return [bool]
502
521
  [:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :bool],
503
522
 
504
- # GuiGroupBox : Group Box control with text name
505
- # @param bounds [Rectangle]
506
- # @param text [const char *]
507
- # @return [void]
523
+ # @!method GuiGroupBox(bounds, text)
524
+ # GuiGroupBox : Group Box control with text name
525
+ # @param bounds [Rectangle]
526
+ # @param text [const char *]
527
+ # @return [void]
508
528
  [:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :void],
509
529
 
510
- # GuiLine : Line separator control, could contain text
511
- # @param bounds [Rectangle]
512
- # @param text [const char *]
513
- # @return [void]
530
+ # @!method GuiLine(bounds, text)
531
+ # GuiLine : Line separator control, could contain text
532
+ # @param bounds [Rectangle]
533
+ # @param text [const char *]
534
+ # @return [void]
514
535
  [:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :void],
515
536
 
516
- # GuiPanel : Panel control, useful to group controls
517
- # @param bounds [Rectangle]
518
- # @param text [const char *]
519
- # @return [void]
537
+ # @!method GuiPanel(bounds, text)
538
+ # GuiPanel : Panel control, useful to group controls
539
+ # @param bounds [Rectangle]
540
+ # @param text [const char *]
541
+ # @return [void]
520
542
  [:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :void],
521
543
 
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]
544
+ # @!method GuiTabBar(bounds, text, count, active)
545
+ # GuiTabBar : Tab Bar control, returns TAB to be closed or -1
546
+ # @param bounds [Rectangle]
547
+ # @param text [const char **]
548
+ # @param count [int]
549
+ # @param active [int *]
550
+ # @return [int]
528
551
  [:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],
529
552
 
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]
553
+ # @!method GuiScrollPanel(bounds, text, content, scroll)
554
+ # GuiScrollPanel : Scroll Panel control
555
+ # @param bounds [Rectangle]
556
+ # @param text [const char *]
557
+ # @param content [Rectangle]
558
+ # @param scroll [Vector2 *]
559
+ # @return [Rectangle]
536
560
  [:GuiScrollPanel, :GuiScrollPanel, [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer], Rectangle.by_value],
537
561
 
538
- # GuiLabel : Label control, shows text
539
- # @param bounds [Rectangle]
540
- # @param text [const char *]
541
- # @return [void]
562
+ # @!method GuiLabel(bounds, text)
563
+ # GuiLabel : Label control, shows text
564
+ # @param bounds [Rectangle]
565
+ # @param text [const char *]
566
+ # @return [void]
542
567
  [:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :void],
543
568
 
544
- # GuiButton : Button control, returns true when clicked
545
- # @param bounds [Rectangle]
546
- # @param text [const char *]
547
- # @return [bool]
569
+ # @!method GuiButton(bounds, text)
570
+ # GuiButton : Button control, returns true when clicked
571
+ # @param bounds [Rectangle]
572
+ # @param text [const char *]
573
+ # @return [bool]
548
574
  [:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :bool],
549
575
 
550
- # GuiLabelButton : Label button control, show true when clicked
551
- # @param bounds [Rectangle]
552
- # @param text [const char *]
553
- # @return [bool]
576
+ # @!method GuiLabelButton(bounds, text)
577
+ # GuiLabelButton : Label button control, show true when clicked
578
+ # @param bounds [Rectangle]
579
+ # @param text [const char *]
580
+ # @return [bool]
554
581
  [:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :bool],
555
582
 
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]
583
+ # @!method GuiToggle(bounds, text, active)
584
+ # GuiToggle : Toggle Button control, returns true when active
585
+ # @param bounds [Rectangle]
586
+ # @param text [const char *]
587
+ # @param active [bool]
588
+ # @return [bool]
561
589
  [:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :bool], :bool],
562
590
 
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]
591
+ # @!method GuiToggleGroup(bounds, text, active)
592
+ # GuiToggleGroup : Toggle Group control, returns active toggle index
593
+ # @param bounds [Rectangle]
594
+ # @param text [const char *]
595
+ # @param active [int]
596
+ # @return [int]
568
597
  [:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :int], :int],
569
598
 
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]
599
+ # @!method GuiCheckBox(bounds, text, checked)
600
+ # GuiCheckBox : Check Box control, returns true when active
601
+ # @param bounds [Rectangle]
602
+ # @param text [const char *]
603
+ # @param checked [bool]
604
+ # @return [bool]
575
605
  [:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :bool], :bool],
576
606
 
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]
607
+ # @!method GuiComboBox(bounds, text, active)
608
+ # GuiComboBox : Combo Box control, returns selected item index
609
+ # @param bounds [Rectangle]
610
+ # @param text [const char *]
611
+ # @param active [int]
612
+ # @return [int]
582
613
  [:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :int], :int],
583
614
 
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]
615
+ # @!method GuiDropdownBox(bounds, text, active, editMode)
616
+ # GuiDropdownBox : Dropdown Box control, returns selected item
617
+ # @param bounds [Rectangle]
618
+ # @param text [const char *]
619
+ # @param active [int *]
620
+ # @param editMode [bool]
621
+ # @return [bool]
590
622
  [:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :bool],
591
623
 
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]
624
+ # @!method GuiSpinner(bounds, text, value, minValue, maxValue, editMode)
625
+ # GuiSpinner : Spinner control, returns selected value
626
+ # @param bounds [Rectangle]
627
+ # @param text [const char *]
628
+ # @param value [int *]
629
+ # @param minValue [int]
630
+ # @param maxValue [int]
631
+ # @param editMode [bool]
632
+ # @return [bool]
600
633
  [:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :bool],
601
634
 
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]
635
+ # @!method GuiValueBox(bounds, text, value, minValue, maxValue, editMode)
636
+ # GuiValueBox : Value Box control, updates input text with numbers
637
+ # @param bounds [Rectangle]
638
+ # @param text [const char *]
639
+ # @param value [int *]
640
+ # @param minValue [int]
641
+ # @param maxValue [int]
642
+ # @param editMode [bool]
643
+ # @return [bool]
610
644
  [:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :bool],
611
645
 
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]
646
+ # @!method GuiTextBox(bounds, text, textSize, editMode)
647
+ # GuiTextBox : Text Box control, updates input text
648
+ # @param bounds [Rectangle]
649
+ # @param text [char *]
650
+ # @param textSize [int]
651
+ # @param editMode [bool]
652
+ # @return [bool]
618
653
  [:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :bool],
619
654
 
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]
655
+ # @!method GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue)
656
+ # GuiSlider : Slider control, returns selected value
657
+ # @param bounds [Rectangle]
658
+ # @param textLeft [const char *]
659
+ # @param textRight [const char *]
660
+ # @param value [float]
661
+ # @param minValue [float]
662
+ # @param maxValue [float]
663
+ # @return [float]
636
664
  [:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],
637
665
 
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]
666
+ # @!method GuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
667
+ # GuiSliderBar : Slider Bar control, returns selected value
668
+ # @param bounds [Rectangle]
669
+ # @param textLeft [const char *]
670
+ # @param textRight [const char *]
671
+ # @param value [float]
672
+ # @param minValue [float]
673
+ # @param maxValue [float]
674
+ # @return [float]
646
675
  [:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],
647
676
 
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]
677
+ # @!method GuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue)
678
+ # GuiProgressBar : Progress Bar control, shows current progress value
679
+ # @param bounds [Rectangle]
680
+ # @param textLeft [const char *]
681
+ # @param textRight [const char *]
682
+ # @param value [float]
683
+ # @param minValue [float]
684
+ # @param maxValue [float]
685
+ # @return [float]
656
686
  [:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :float, :float, :float], :float],
657
687
 
658
- # GuiStatusBar : Status Bar control, shows info text
659
- # @param bounds [Rectangle]
660
- # @param text [const char *]
661
- # @return [void]
688
+ # @!method GuiStatusBar(bounds, text)
689
+ # GuiStatusBar : Status Bar control, shows info text
690
+ # @param bounds [Rectangle]
691
+ # @param text [const char *]
692
+ # @return [void]
662
693
  [:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :void],
663
694
 
664
- # GuiDummyRec : Dummy control for placeholders
665
- # @param bounds [Rectangle]
666
- # @param text [const char *]
667
- # @return [void]
695
+ # @!method GuiDummyRec(bounds, text)
696
+ # GuiDummyRec : Dummy control for placeholders
697
+ # @param bounds [Rectangle]
698
+ # @param text [const char *]
699
+ # @return [void]
668
700
  [:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :void],
669
701
 
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]
702
+ # @!method GuiGrid(bounds, text, spacing, subdivs)
703
+ # GuiGrid : Grid control, returns mouse cell position
704
+ # @param bounds [Rectangle]
705
+ # @param text [const char *]
706
+ # @param spacing [float]
707
+ # @param subdivs [int]
708
+ # @return [Vector2]
676
709
  [:GuiGrid, :GuiGrid, [Rectangle.by_value, :pointer, :float, :int], Vector2.by_value],
677
710
 
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]
711
+ # @!method GuiListView(bounds, text, scrollIndex, active)
712
+ # GuiListView : List View control, returns selected list item index
713
+ # @param bounds [Rectangle]
714
+ # @param text [const char *]
715
+ # @param scrollIndex [int *]
716
+ # @param active [int]
717
+ # @return [int]
684
718
  [:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :int], :int],
685
719
 
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]
720
+ # @!method GuiListViewEx(bounds, text, count, focus, scrollIndex, active)
721
+ # GuiListViewEx : List View with extended parameters
722
+ # @param bounds [Rectangle]
723
+ # @param text [const char **]
724
+ # @param count [int]
725
+ # @param focus [int *]
726
+ # @param scrollIndex [int *]
727
+ # @param active [int]
728
+ # @return [int]
694
729
  [:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :int], :int],
695
730
 
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]
731
+ # @!method GuiMessageBox(bounds, title, message, buttons)
732
+ # GuiMessageBox : Message Box control, displays a message
733
+ # @param bounds [Rectangle]
734
+ # @param title [const char *]
735
+ # @param message [const char *]
736
+ # @param buttons [const char *]
737
+ # @return [int]
702
738
  [:GuiMessageBox, :GuiMessageBox, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
703
739
 
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]
740
+ # @!method GuiTextInputBox(bounds, title, message, buttons, text, textMaxSize, secretViewActive)
741
+ # GuiTextInputBox : Text Input Box control, ask for text, supports secret
742
+ # @param bounds [Rectangle]
743
+ # @param title [const char *]
744
+ # @param message [const char *]
745
+ # @param buttons [const char *]
746
+ # @param text [char *]
747
+ # @param textMaxSize [int]
748
+ # @param secretViewActive [int *]
749
+ # @return [int]
713
750
  [:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
714
751
 
715
- # GuiColorPicker : Color Picker control (multiple color controls)
716
- # @param bounds [Rectangle]
717
- # @param text [const char *]
718
- # @param color [Color]
719
- # @return [Color]
752
+ # @!method GuiColorPicker(bounds, text, color)
753
+ # GuiColorPicker : Color Picker control (multiple color controls)
754
+ # @param bounds [Rectangle]
755
+ # @param text [const char *]
756
+ # @param color [Color]
757
+ # @return [Color]
720
758
  [:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer, Color.by_value], Color.by_value],
721
759
 
722
- # GuiColorPanel : Color Panel control
723
- # @param bounds [Rectangle]
724
- # @param text [const char *]
725
- # @param color [Color]
726
- # @return [Color]
760
+ # @!method GuiColorPanel(bounds, text, color)
761
+ # GuiColorPanel : Color Panel control
762
+ # @param bounds [Rectangle]
763
+ # @param text [const char *]
764
+ # @param color [Color]
765
+ # @return [Color]
727
766
  [:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer, Color.by_value], Color.by_value],
728
767
 
729
- # GuiColorBarAlpha : Color Bar Alpha control
730
- # @param bounds [Rectangle]
731
- # @param text [const char *]
732
- # @param alpha [float]
733
- # @return [float]
768
+ # @!method GuiColorBarAlpha(bounds, text, alpha)
769
+ # GuiColorBarAlpha : Color Bar Alpha control
770
+ # @param bounds [Rectangle]
771
+ # @param text [const char *]
772
+ # @param alpha [float]
773
+ # @return [float]
734
774
  [:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :float], :float],
735
775
 
736
- # GuiColorBarHue : Color Bar Hue control
737
- # @param bounds [Rectangle]
738
- # @param text [const char *]
739
- # @param value [float]
740
- # @return [float]
776
+ # @!method GuiColorBarHue(bounds, text, value)
777
+ # GuiColorBarHue : Color Bar Hue control
778
+ # @param bounds [Rectangle]
779
+ # @param text [const char *]
780
+ # @param value [float]
781
+ # @return [float]
741
782
  [:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :float], :float],
742
783
 
743
- # GuiLoadStyle : Load style file over global style variable (.rgs)
744
- # @param fileName [const char *]
745
- # @return [void]
784
+ # @!method GuiLoadStyle(fileName)
785
+ # GuiLoadStyle : Load style file over global style variable (.rgs)
786
+ # @param fileName [const char *]
787
+ # @return [void]
746
788
  [:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],
747
789
 
748
- # GuiLoadStyleDefault : Load style default over global style
749
- # @return [void]
790
+ # @!method GuiLoadStyleDefault()
791
+ # GuiLoadStyleDefault : Load style default over global style
792
+ # @return [void]
750
793
  [:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],
751
794
 
752
- # GuiEnableTooltip : Enable gui tooltips (global state)
753
- # @return [void]
795
+ # @!method GuiEnableTooltip()
796
+ # GuiEnableTooltip : Enable gui tooltips (global state)
797
+ # @return [void]
754
798
  [:GuiEnableTooltip, :GuiEnableTooltip, [], :void],
755
799
 
756
- # GuiDisableTooltip : Disable gui tooltips (global state)
757
- # @return [void]
800
+ # @!method GuiDisableTooltip()
801
+ # GuiDisableTooltip : Disable gui tooltips (global state)
802
+ # @return [void]
758
803
  [:GuiDisableTooltip, :GuiDisableTooltip, [], :void],
759
804
 
760
- # GuiSetTooltip : Set tooltip string
761
- # @param tooltip [const char *]
762
- # @return [void]
805
+ # @!method GuiSetTooltip(tooltip)
806
+ # GuiSetTooltip : Set tooltip string
807
+ # @param tooltip [const char *]
808
+ # @return [void]
763
809
  [:GuiSetTooltip, :GuiSetTooltip, [:pointer], :void],
764
810
 
765
- # GuiIconText : Get text with icon id prepended (if supported)
766
- # @param iconId [int]
767
- # @param text [const char *]
768
- # @return [const char *]
811
+ # @!method GuiIconText(iconId, text)
812
+ # GuiIconText : Get text with icon id prepended (if supported)
813
+ # @param iconId [int]
814
+ # @param text [const char *]
815
+ # @return [const char *]
769
816
  [:GuiIconText, :GuiIconText, [:int, :pointer], :pointer],
770
817
 
771
- # GuiGetIcons : Get raygui icons data pointer
772
- # @return [unsigned int *]
818
+ # @!method GuiSetIconScale(scale)
819
+ # GuiSetIconScale : Set default icon drawing size
820
+ # @param scale [int]
821
+ # @return [void]
822
+ [:GuiSetIconScale, :GuiSetIconScale, [:int], :void],
823
+
824
+ # @!method GuiGetIcons()
825
+ # GuiGetIcons : Get raygui icons data pointer
826
+ # @return [unsigned int *]
773
827
  [:GuiGetIcons, :GuiGetIcons, [], :pointer],
774
828
 
775
- # GuiLoadIcons : Load raygui icons file (.rgi) into internal icons data
776
- # @param fileName [const char *]
777
- # @param loadIconsName [bool]
778
- # @return [char **]
829
+ # @!method GuiLoadIcons(fileName, loadIconsName)
830
+ # GuiLoadIcons : Load raygui icons file (.rgi) into internal icons data
831
+ # @param fileName [const char *]
832
+ # @param loadIconsName [bool]
833
+ # @return [char **]
779
834
  [:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
780
835
 
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]
836
+ # @!method GuiDrawIcon(iconId, posX, posY, pixelSize, color)
837
+ # GuiDrawIcon : Draw icon using pixel size at specified position
838
+ # @param iconId [int]
839
+ # @param posX [int]
840
+ # @param posY [int]
841
+ # @param pixelSize [int]
842
+ # @param color [Color]
843
+ # @return [void]
788
844
  [:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
789
-
790
- # GuiSetIconScale : Set icon drawing size
791
- # @param scale [int]
792
- # @return [void]
793
- [:GuiSetIconScale, :GuiSetIconScale, [:int], :void],
794
845
  ]
795
846
  entries.each do |entry|
796
847
  attach_function entry[0], entry[1], entry[2], entry[3]