raylib-bindings 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README.md +1 -1
- data/lib/libraylib.aarch64.so +0 -0
- data/lib/libraylib.dll +0 -0
- data/lib/libraylib.dylib +0 -0
- data/lib/libraylib.x86_64.so +0 -0
- data/lib/physac.dll +0 -0
- data/lib/physac.rb +86 -67
- data/lib/raygui.aarch64.so +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.rb +304 -253
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raylib_main.rb +2656 -2136
- data/lib/raymath.rb +557 -445
- data/lib/rcamera.rb +62 -50
- data/lib/rlgl.rb +677 -532
- metadata +2 -2
data/lib/raygui.rb
CHANGED
@@ -11,7 +11,10 @@ module Raylib
|
|
11
11
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
|
-
|
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
|
117
|
-
TEXT_LINES_SPACING = 17
|
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
|
-
|
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
|
443
|
-
#
|
448
|
+
# @!method GuiEnable()
|
449
|
+
# GuiEnable : Enable gui controls (global state)
|
450
|
+
# @return [void]
|
444
451
|
[:GuiEnable, :GuiEnable, [], :void],
|
445
452
|
|
446
|
-
# GuiDisable
|
447
|
-
#
|
453
|
+
# @!method GuiDisable()
|
454
|
+
# GuiDisable : Disable gui controls (global state)
|
455
|
+
# @return [void]
|
448
456
|
[:GuiDisable, :GuiDisable, [], :void],
|
449
457
|
|
450
|
-
# GuiLock
|
451
|
-
#
|
458
|
+
# @!method GuiLock()
|
459
|
+
# GuiLock : Lock gui controls (global state)
|
460
|
+
# @return [void]
|
452
461
|
[:GuiLock, :GuiLock, [], :void],
|
453
462
|
|
454
|
-
# GuiUnlock
|
455
|
-
#
|
463
|
+
# @!method GuiUnlock()
|
464
|
+
# GuiUnlock : Unlock gui controls (global state)
|
465
|
+
# @return [void]
|
456
466
|
[:GuiUnlock, :GuiUnlock, [], :void],
|
457
467
|
|
458
|
-
# GuiIsLocked
|
459
|
-
#
|
468
|
+
# @!method GuiIsLocked()
|
469
|
+
# GuiIsLocked : Check if gui is locked (global state)
|
470
|
+
# @return [bool]
|
460
471
|
[:GuiIsLocked, :GuiIsLocked, [], :bool],
|
461
472
|
|
462
|
-
# GuiFade
|
463
|
-
#
|
464
|
-
#
|
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
|
468
|
-
#
|
469
|
-
#
|
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
|
473
|
-
#
|
485
|
+
# @!method GuiGetState()
|
486
|
+
# GuiGetState : Get gui state (global state)
|
487
|
+
# @return [int]
|
474
488
|
[:GuiGetState, :GuiGetState, [], :int],
|
475
489
|
|
476
|
-
# GuiSetFont
|
477
|
-
#
|
478
|
-
#
|
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
|
482
|
-
#
|
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
|
486
|
-
#
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
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
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
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
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
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
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
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
|
511
|
-
#
|
512
|
-
#
|
513
|
-
#
|
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
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
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
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
526
|
-
#
|
527
|
-
#
|
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
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
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
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
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
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
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
|
551
|
-
#
|
552
|
-
#
|
553
|
-
#
|
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
|
557
|
-
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
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
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
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
|
571
|
-
#
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
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
|
578
|
-
#
|
579
|
-
#
|
580
|
-
#
|
581
|
-
#
|
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
|
585
|
-
#
|
586
|
-
#
|
587
|
-
#
|
588
|
-
#
|
589
|
-
#
|
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
|
593
|
-
#
|
594
|
-
#
|
595
|
-
#
|
596
|
-
#
|
597
|
-
#
|
598
|
-
#
|
599
|
-
#
|
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
|
603
|
-
#
|
604
|
-
#
|
605
|
-
#
|
606
|
-
#
|
607
|
-
#
|
608
|
-
#
|
609
|
-
#
|
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
|
613
|
-
#
|
614
|
-
#
|
615
|
-
#
|
616
|
-
#
|
617
|
-
#
|
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
|
-
#
|
621
|
-
#
|
622
|
-
#
|
623
|
-
#
|
624
|
-
#
|
625
|
-
#
|
626
|
-
|
627
|
-
|
628
|
-
#
|
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
|
639
|
-
#
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
644
|
-
#
|
645
|
-
#
|
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
|
649
|
-
#
|
650
|
-
#
|
651
|
-
#
|
652
|
-
#
|
653
|
-
#
|
654
|
-
#
|
655
|
-
#
|
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
|
659
|
-
#
|
660
|
-
#
|
661
|
-
#
|
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
|
665
|
-
#
|
666
|
-
#
|
667
|
-
#
|
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
|
671
|
-
#
|
672
|
-
#
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
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
|
679
|
-
#
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
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
|
687
|
-
#
|
688
|
-
#
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
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
|
697
|
-
#
|
698
|
-
#
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
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
|
705
|
-
#
|
706
|
-
#
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
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
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
719
|
-
#
|
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
|
723
|
-
#
|
724
|
-
#
|
725
|
-
#
|
726
|
-
#
|
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
|
730
|
-
#
|
731
|
-
#
|
732
|
-
#
|
733
|
-
#
|
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
|
737
|
-
#
|
738
|
-
#
|
739
|
-
#
|
740
|
-
#
|
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
|
744
|
-
#
|
745
|
-
#
|
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
|
749
|
-
#
|
790
|
+
# @!method GuiLoadStyleDefault()
|
791
|
+
# GuiLoadStyleDefault : Load style default over global style
|
792
|
+
# @return [void]
|
750
793
|
[:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],
|
751
794
|
|
752
|
-
# GuiEnableTooltip
|
753
|
-
#
|
795
|
+
# @!method GuiEnableTooltip()
|
796
|
+
# GuiEnableTooltip : Enable gui tooltips (global state)
|
797
|
+
# @return [void]
|
754
798
|
[:GuiEnableTooltip, :GuiEnableTooltip, [], :void],
|
755
799
|
|
756
|
-
# GuiDisableTooltip
|
757
|
-
#
|
800
|
+
# @!method GuiDisableTooltip()
|
801
|
+
# GuiDisableTooltip : Disable gui tooltips (global state)
|
802
|
+
# @return [void]
|
758
803
|
[:GuiDisableTooltip, :GuiDisableTooltip, [], :void],
|
759
804
|
|
760
|
-
# GuiSetTooltip
|
761
|
-
#
|
762
|
-
#
|
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
|
766
|
-
#
|
767
|
-
#
|
768
|
-
#
|
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
|
-
#
|
772
|
-
#
|
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
|
776
|
-
#
|
777
|
-
#
|
778
|
-
#
|
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
|
-
#
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
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]
|