raylib-bindings 0.5.3 → 0.5.4
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.
- checksums.yaml +4 -4
- data/ChangeLog +18 -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/raygui.aarch64.so +0 -0
- data/lib/raygui.dll +0 -0
- data/lib/raygui.dylib +0 -0
- data/lib/raygui.rb +137 -135
- data/lib/raygui.x86_64.so +0 -0
- data/lib/raygui_helper.rb +28 -0
- data/lib/raygui_main.rb +871 -0
- data/lib/raylib.rb +2 -1
- data/lib/raylib_main.rb +30 -13
- data/lib/rlgl.rb +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8696a31936913a1f9d1fb43d214953f384b6f2c2ce4445a551403a265efa5a4
|
4
|
+
data.tar.gz: 1ed4a2fe768e30812be4bf989b9ba7eda2d715ab3220c1706292a194b525b62f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 879ce44f9ec304884088afcb66d5bdb12bc5e46e9238bdd4c264d46acd13ead6534baa006318a36327825653d53ba76794aa8d6d1e9cc5499fc960d3cfa88816
|
7
|
+
data.tar.gz: bee8b426167b52ca631472a68f981ff9ce3a47abff9db4acb9f5f48587fe3e1876c88b2e362ac24a84b2e174ff3321c6ee9f0644894fe15ee3a5ee247596382a
|
data/ChangeLog
CHANGED
@@ -1,3 +1,21 @@
|
|
1
|
+
2023-06-26 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/0c126af7171e51fff9f94c4f2e498f43f60d617b ) and raygui ( https://github.com/raysan5/raygui/commit/fa1c93cdcc6df2cd45f5a1d9249291465a24cd8c )
|
4
|
+
|
5
|
+
2023-06-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* lib/raygui_main.rb: Renamed from 'raygui.rb'
|
8
|
+
* lib/raygui_helper.rb: Minimal raygui wrapper to cope with raygui-4.0 API changes
|
9
|
+
|
10
|
+
2023-05-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
11
|
+
|
12
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/aad51d47048f9eb5c13bbbd65dc5cd4d37aa68e5 ) and raygui ( https://github.com/raysan5/raygui/commit/ce358972efcc9c3c85f9806104f525210da08787 )
|
13
|
+
|
14
|
+
2023-05-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
15
|
+
|
16
|
+
* example/textures_image_generation.rb: Added
|
17
|
+
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/a4a6d4da8a26d131bc3f3e643f6fe51de281d15f ) and raygui ( https://github.com/raysan5/raygui/commit/135718ee04d57493039fd7b8fb1d73b49f3ec1ea )
|
18
|
+
|
1
19
|
2023-05-14 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
20
|
|
3
21
|
* Updated with latest raylib ( https://github.com/raysan5/raylib/commit/5978358e5877b0033584334c5bf6ec7d8cf22ae8 ) and raygui ( https://github.com/raysan5/raygui/commit/aa81c167f10707ea173ea1190eda18e57d841b8f )
|
data/README.md
CHANGED
data/lib/libraylib.aarch64.so
CHANGED
Binary file
|
data/lib/libraylib.dll
CHANGED
Binary file
|
data/lib/libraylib.dylib
CHANGED
Binary file
|
data/lib/libraylib.x86_64.so
CHANGED
Binary file
|
data/lib/physac.dll
CHANGED
Binary file
|
data/lib/raygui.aarch64.so
CHANGED
Binary file
|
data/lib/raygui.dll
CHANGED
Binary file
|
data/lib/raygui.dylib
CHANGED
Binary file
|
data/lib/raygui.rb
CHANGED
@@ -11,10 +11,10 @@ module Raylib
|
|
11
11
|
|
12
12
|
# Define/Macro
|
13
13
|
|
14
|
-
RAYGUI_VERSION_MAJOR =
|
15
|
-
RAYGUI_VERSION_MINOR =
|
14
|
+
RAYGUI_VERSION_MAJOR = 4
|
15
|
+
RAYGUI_VERSION_MINOR = 0
|
16
16
|
RAYGUI_VERSION_PATCH = 0
|
17
|
-
RAYGUI_VERSION = "
|
17
|
+
RAYGUI_VERSION = "4.0-dev"
|
18
18
|
SCROLLBAR_LEFT_SIDE = 0
|
19
19
|
SCROLLBAR_RIGHT_SIDE = 1
|
20
20
|
|
@@ -513,33 +513,95 @@ module Raylib
|
|
513
513
|
# @return [int]
|
514
514
|
[:GuiGetStyle, :GuiGetStyle, [:int, :int], :int],
|
515
515
|
|
516
|
+
# @!method GuiLoadStyle(fileName)
|
517
|
+
# GuiLoadStyle : Load style file over global style variable (.rgs)
|
518
|
+
# @param fileName [const char *]
|
519
|
+
# @return [void]
|
520
|
+
[:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],
|
521
|
+
|
522
|
+
# @!method GuiLoadStyleDefault()
|
523
|
+
# GuiLoadStyleDefault : Load style default over global style
|
524
|
+
# @return [void]
|
525
|
+
[:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],
|
526
|
+
|
527
|
+
# @!method GuiEnableTooltip()
|
528
|
+
# GuiEnableTooltip : Enable gui tooltips (global state)
|
529
|
+
# @return [void]
|
530
|
+
[:GuiEnableTooltip, :GuiEnableTooltip, [], :void],
|
531
|
+
|
532
|
+
# @!method GuiDisableTooltip()
|
533
|
+
# GuiDisableTooltip : Disable gui tooltips (global state)
|
534
|
+
# @return [void]
|
535
|
+
[:GuiDisableTooltip, :GuiDisableTooltip, [], :void],
|
536
|
+
|
537
|
+
# @!method GuiSetTooltip(tooltip)
|
538
|
+
# GuiSetTooltip : Set tooltip string
|
539
|
+
# @param tooltip [const char *]
|
540
|
+
# @return [void]
|
541
|
+
[:GuiSetTooltip, :GuiSetTooltip, [:pointer], :void],
|
542
|
+
|
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 *]
|
548
|
+
[:GuiIconText, :GuiIconText, [:int, :pointer], :pointer],
|
549
|
+
|
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 *]
|
559
|
+
[:GuiGetIcons, :GuiGetIcons, [], :pointer],
|
560
|
+
|
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 **]
|
566
|
+
[:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
|
567
|
+
|
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]
|
576
|
+
[:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
|
577
|
+
|
516
578
|
# @!method GuiWindowBox(bounds, title)
|
517
579
|
# GuiWindowBox : Window Box control, shows a window that can be closed
|
518
580
|
# @param bounds [Rectangle]
|
519
581
|
# @param title [const char *]
|
520
|
-
# @return [
|
521
|
-
[:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :
|
582
|
+
# @return [int]
|
583
|
+
[:GuiWindowBox, :GuiWindowBox, [Rectangle.by_value, :pointer], :int],
|
522
584
|
|
523
585
|
# @!method GuiGroupBox(bounds, text)
|
524
586
|
# GuiGroupBox : Group Box control with text name
|
525
587
|
# @param bounds [Rectangle]
|
526
588
|
# @param text [const char *]
|
527
|
-
# @return [
|
528
|
-
[:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :
|
589
|
+
# @return [int]
|
590
|
+
[:GuiGroupBox, :GuiGroupBox, [Rectangle.by_value, :pointer], :int],
|
529
591
|
|
530
592
|
# @!method GuiLine(bounds, text)
|
531
593
|
# GuiLine : Line separator control, could contain text
|
532
594
|
# @param bounds [Rectangle]
|
533
595
|
# @param text [const char *]
|
534
|
-
# @return [
|
535
|
-
[:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :
|
596
|
+
# @return [int]
|
597
|
+
[:GuiLine, :GuiLine, [Rectangle.by_value, :pointer], :int],
|
536
598
|
|
537
599
|
# @!method GuiPanel(bounds, text)
|
538
600
|
# GuiPanel : Panel control, useful to group controls
|
539
601
|
# @param bounds [Rectangle]
|
540
602
|
# @param text [const char *]
|
541
|
-
# @return [
|
542
|
-
[:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :
|
603
|
+
# @return [int]
|
604
|
+
[:GuiPanel, :GuiPanel, [Rectangle.by_value, :pointer], :int],
|
543
605
|
|
544
606
|
# @!method GuiTabBar(bounds, text, count, active)
|
545
607
|
# GuiTabBar : Tab Bar control, returns TAB to be closed or -1
|
@@ -550,67 +612,68 @@ module Raylib
|
|
550
612
|
# @return [int]
|
551
613
|
[:GuiTabBar, :GuiTabBar, [Rectangle.by_value, :pointer, :int, :pointer], :int],
|
552
614
|
|
553
|
-
# @!method GuiScrollPanel(bounds, text, content, scroll)
|
615
|
+
# @!method GuiScrollPanel(bounds, text, content, scroll, view)
|
554
616
|
# GuiScrollPanel : Scroll Panel control
|
555
617
|
# @param bounds [Rectangle]
|
556
618
|
# @param text [const char *]
|
557
619
|
# @param content [Rectangle]
|
558
620
|
# @param scroll [Vector2 *]
|
559
|
-
# @
|
560
|
-
|
621
|
+
# @param view [Rectangle *]
|
622
|
+
# @return [int]
|
623
|
+
[:GuiScrollPanel, :GuiScrollPanel, [Rectangle.by_value, :pointer, Rectangle.by_value, :pointer, :pointer], :int],
|
561
624
|
|
562
625
|
# @!method GuiLabel(bounds, text)
|
563
626
|
# GuiLabel : Label control, shows text
|
564
627
|
# @param bounds [Rectangle]
|
565
628
|
# @param text [const char *]
|
566
|
-
# @return [
|
567
|
-
[:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :
|
629
|
+
# @return [int]
|
630
|
+
[:GuiLabel, :GuiLabel, [Rectangle.by_value, :pointer], :int],
|
568
631
|
|
569
632
|
# @!method GuiButton(bounds, text)
|
570
633
|
# GuiButton : Button control, returns true when clicked
|
571
634
|
# @param bounds [Rectangle]
|
572
635
|
# @param text [const char *]
|
573
|
-
# @return [
|
574
|
-
[:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :
|
636
|
+
# @return [int]
|
637
|
+
[:GuiButton, :GuiButton, [Rectangle.by_value, :pointer], :int],
|
575
638
|
|
576
639
|
# @!method GuiLabelButton(bounds, text)
|
577
640
|
# GuiLabelButton : Label button control, show true when clicked
|
578
641
|
# @param bounds [Rectangle]
|
579
642
|
# @param text [const char *]
|
580
|
-
# @return [
|
581
|
-
[:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :
|
643
|
+
# @return [int]
|
644
|
+
[:GuiLabelButton, :GuiLabelButton, [Rectangle.by_value, :pointer], :int],
|
582
645
|
|
583
646
|
# @!method GuiToggle(bounds, text, active)
|
584
647
|
# GuiToggle : Toggle Button control, returns true when active
|
585
648
|
# @param bounds [Rectangle]
|
586
649
|
# @param text [const char *]
|
587
|
-
# @param active [bool]
|
588
|
-
# @return [
|
589
|
-
[:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :
|
650
|
+
# @param active [bool *]
|
651
|
+
# @return [int]
|
652
|
+
[:GuiToggle, :GuiToggle, [Rectangle.by_value, :pointer, :pointer], :int],
|
590
653
|
|
591
654
|
# @!method GuiToggleGroup(bounds, text, active)
|
592
655
|
# GuiToggleGroup : Toggle Group control, returns active toggle index
|
593
656
|
# @param bounds [Rectangle]
|
594
657
|
# @param text [const char *]
|
595
|
-
# @param active [int]
|
658
|
+
# @param active [int *]
|
596
659
|
# @return [int]
|
597
|
-
[:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :
|
660
|
+
[:GuiToggleGroup, :GuiToggleGroup, [Rectangle.by_value, :pointer, :pointer], :int],
|
598
661
|
|
599
662
|
# @!method GuiCheckBox(bounds, text, checked)
|
600
663
|
# GuiCheckBox : Check Box control, returns true when active
|
601
664
|
# @param bounds [Rectangle]
|
602
665
|
# @param text [const char *]
|
603
|
-
# @param checked [bool]
|
604
|
-
# @return [
|
605
|
-
[:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :
|
666
|
+
# @param checked [bool *]
|
667
|
+
# @return [int]
|
668
|
+
[:GuiCheckBox, :GuiCheckBox, [Rectangle.by_value, :pointer, :pointer], :int],
|
606
669
|
|
607
670
|
# @!method GuiComboBox(bounds, text, active)
|
608
671
|
# GuiComboBox : Combo Box control, returns selected item index
|
609
672
|
# @param bounds [Rectangle]
|
610
673
|
# @param text [const char *]
|
611
|
-
# @param active [int]
|
674
|
+
# @param active [int *]
|
612
675
|
# @return [int]
|
613
|
-
[:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :
|
676
|
+
[:GuiComboBox, :GuiComboBox, [Rectangle.by_value, :pointer, :pointer], :int],
|
614
677
|
|
615
678
|
# @!method GuiDropdownBox(bounds, text, active, editMode)
|
616
679
|
# GuiDropdownBox : Dropdown Box control, returns selected item
|
@@ -618,8 +681,8 @@ module Raylib
|
|
618
681
|
# @param text [const char *]
|
619
682
|
# @param active [int *]
|
620
683
|
# @param editMode [bool]
|
621
|
-
# @return [
|
622
|
-
[:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :
|
684
|
+
# @return [int]
|
685
|
+
[:GuiDropdownBox, :GuiDropdownBox, [Rectangle.by_value, :pointer, :pointer, :bool], :int],
|
623
686
|
|
624
687
|
# @!method GuiSpinner(bounds, text, value, minValue, maxValue, editMode)
|
625
688
|
# GuiSpinner : Spinner control, returns selected value
|
@@ -629,8 +692,8 @@ module Raylib
|
|
629
692
|
# @param minValue [int]
|
630
693
|
# @param maxValue [int]
|
631
694
|
# @param editMode [bool]
|
632
|
-
# @return [
|
633
|
-
[:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :
|
695
|
+
# @return [int]
|
696
|
+
[:GuiSpinner, :GuiSpinner, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
|
634
697
|
|
635
698
|
# @!method GuiValueBox(bounds, text, value, minValue, maxValue, editMode)
|
636
699
|
# GuiValueBox : Value Box control, updates input text with numbers
|
@@ -640,8 +703,8 @@ module Raylib
|
|
640
703
|
# @param minValue [int]
|
641
704
|
# @param maxValue [int]
|
642
705
|
# @param editMode [bool]
|
643
|
-
# @return [
|
644
|
-
[:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :
|
706
|
+
# @return [int]
|
707
|
+
[:GuiValueBox, :GuiValueBox, [Rectangle.by_value, :pointer, :pointer, :int, :int, :bool], :int],
|
645
708
|
|
646
709
|
# @!method GuiTextBox(bounds, text, textSize, editMode)
|
647
710
|
# GuiTextBox : Text Box control, updates input text
|
@@ -649,84 +712,85 @@ module Raylib
|
|
649
712
|
# @param text [char *]
|
650
713
|
# @param textSize [int]
|
651
714
|
# @param editMode [bool]
|
652
|
-
# @return [
|
653
|
-
[:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :
|
715
|
+
# @return [int]
|
716
|
+
[:GuiTextBox, :GuiTextBox, [Rectangle.by_value, :pointer, :int, :bool], :int],
|
654
717
|
|
655
718
|
# @!method GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue)
|
656
719
|
# GuiSlider : Slider control, returns selected value
|
657
720
|
# @param bounds [Rectangle]
|
658
721
|
# @param textLeft [const char *]
|
659
722
|
# @param textRight [const char *]
|
660
|
-
# @param value [float]
|
723
|
+
# @param value [float *]
|
661
724
|
# @param minValue [float]
|
662
725
|
# @param maxValue [float]
|
663
|
-
# @return [
|
664
|
-
[:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :
|
726
|
+
# @return [int]
|
727
|
+
[:GuiSlider, :GuiSlider, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
|
665
728
|
|
666
729
|
# @!method GuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
667
730
|
# GuiSliderBar : Slider Bar control, returns selected value
|
668
731
|
# @param bounds [Rectangle]
|
669
732
|
# @param textLeft [const char *]
|
670
733
|
# @param textRight [const char *]
|
671
|
-
# @param value [float]
|
734
|
+
# @param value [float *]
|
672
735
|
# @param minValue [float]
|
673
736
|
# @param maxValue [float]
|
674
|
-
# @return [
|
675
|
-
[:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :
|
737
|
+
# @return [int]
|
738
|
+
[:GuiSliderBar, :GuiSliderBar, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
|
676
739
|
|
677
740
|
# @!method GuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
678
741
|
# GuiProgressBar : Progress Bar control, shows current progress value
|
679
742
|
# @param bounds [Rectangle]
|
680
743
|
# @param textLeft [const char *]
|
681
744
|
# @param textRight [const char *]
|
682
|
-
# @param value [float]
|
745
|
+
# @param value [float *]
|
683
746
|
# @param minValue [float]
|
684
747
|
# @param maxValue [float]
|
685
|
-
# @return [
|
686
|
-
[:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :
|
748
|
+
# @return [int]
|
749
|
+
[:GuiProgressBar, :GuiProgressBar, [Rectangle.by_value, :pointer, :pointer, :pointer, :float, :float], :int],
|
687
750
|
|
688
751
|
# @!method GuiStatusBar(bounds, text)
|
689
752
|
# GuiStatusBar : Status Bar control, shows info text
|
690
753
|
# @param bounds [Rectangle]
|
691
754
|
# @param text [const char *]
|
692
|
-
# @return [
|
693
|
-
[:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :
|
755
|
+
# @return [int]
|
756
|
+
[:GuiStatusBar, :GuiStatusBar, [Rectangle.by_value, :pointer], :int],
|
694
757
|
|
695
758
|
# @!method GuiDummyRec(bounds, text)
|
696
759
|
# GuiDummyRec : Dummy control for placeholders
|
697
760
|
# @param bounds [Rectangle]
|
698
761
|
# @param text [const char *]
|
699
|
-
# @return [
|
700
|
-
[:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :
|
762
|
+
# @return [int]
|
763
|
+
[:GuiDummyRec, :GuiDummyRec, [Rectangle.by_value, :pointer], :int],
|
701
764
|
|
702
|
-
# @!method GuiGrid(bounds, text, spacing, subdivs)
|
765
|
+
# @!method GuiGrid(bounds, text, spacing, subdivs, mouseCell)
|
703
766
|
# GuiGrid : Grid control, returns mouse cell position
|
704
767
|
# @param bounds [Rectangle]
|
705
768
|
# @param text [const char *]
|
706
769
|
# @param spacing [float]
|
707
770
|
# @param subdivs [int]
|
708
|
-
# @
|
709
|
-
|
771
|
+
# @param mouseCell [Vector2 *]
|
772
|
+
# @return [int]
|
773
|
+
[:GuiGrid, :GuiGrid, [Rectangle.by_value, :pointer, :float, :int, :pointer], :int],
|
710
774
|
|
711
775
|
# @!method GuiListView(bounds, text, scrollIndex, active)
|
712
776
|
# GuiListView : List View control, returns selected list item index
|
713
777
|
# @param bounds [Rectangle]
|
714
778
|
# @param text [const char *]
|
715
779
|
# @param scrollIndex [int *]
|
716
|
-
# @param active [int]
|
780
|
+
# @param active [int *]
|
717
781
|
# @return [int]
|
718
|
-
[:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :
|
782
|
+
[:GuiListView, :GuiListView, [Rectangle.by_value, :pointer, :pointer, :pointer], :int],
|
719
783
|
|
720
|
-
# @!method GuiListViewEx(bounds, text, count,
|
784
|
+
# @!method GuiListViewEx(bounds, text, count, scrollIndex, active, focus)
|
721
785
|
# GuiListViewEx : List View with extended parameters
|
722
786
|
# @param bounds [Rectangle]
|
723
787
|
# @param text [const char **]
|
724
788
|
# @param count [int]
|
725
|
-
# @param focus [int *]
|
726
789
|
# @param scrollIndex [int *]
|
727
|
-
# @param active [int]
|
790
|
+
# @param active [int *]
|
791
|
+
# @param focus [int *]
|
728
792
|
# @return [int]
|
729
|
-
[:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :
|
793
|
+
[:GuiListViewEx, :GuiListViewEx, [Rectangle.by_value, :pointer, :int, :pointer, :pointer, :pointer], :int],
|
730
794
|
|
731
795
|
# @!method GuiMessageBox(bounds, title, message, buttons)
|
732
796
|
# GuiMessageBox : Message Box control, displays a message
|
@@ -745,7 +809,7 @@ module Raylib
|
|
745
809
|
# @param buttons [const char *]
|
746
810
|
# @param text [char *]
|
747
811
|
# @param textMaxSize [int]
|
748
|
-
# @param secretViewActive [
|
812
|
+
# @param secretViewActive [bool *]
|
749
813
|
# @return [int]
|
750
814
|
[:GuiTextInputBox, :GuiTextInputBox, [Rectangle.by_value, :pointer, :pointer, :pointer, :pointer, :int, :pointer], :int],
|
751
815
|
|
@@ -753,95 +817,33 @@ module Raylib
|
|
753
817
|
# GuiColorPicker : Color Picker control (multiple color controls)
|
754
818
|
# @param bounds [Rectangle]
|
755
819
|
# @param text [const char *]
|
756
|
-
# @param color [Color]
|
757
|
-
# @return [
|
758
|
-
[:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer,
|
820
|
+
# @param color [Color *]
|
821
|
+
# @return [int]
|
822
|
+
[:GuiColorPicker, :GuiColorPicker, [Rectangle.by_value, :pointer, :pointer], :int],
|
759
823
|
|
760
824
|
# @!method GuiColorPanel(bounds, text, color)
|
761
825
|
# GuiColorPanel : Color Panel control
|
762
826
|
# @param bounds [Rectangle]
|
763
827
|
# @param text [const char *]
|
764
|
-
# @param color [Color]
|
765
|
-
# @return [
|
766
|
-
[:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer,
|
828
|
+
# @param color [Color *]
|
829
|
+
# @return [int]
|
830
|
+
[:GuiColorPanel, :GuiColorPanel, [Rectangle.by_value, :pointer, :pointer], :int],
|
767
831
|
|
768
832
|
# @!method GuiColorBarAlpha(bounds, text, alpha)
|
769
833
|
# GuiColorBarAlpha : Color Bar Alpha control
|
770
834
|
# @param bounds [Rectangle]
|
771
835
|
# @param text [const char *]
|
772
|
-
# @param alpha [float]
|
773
|
-
# @return [
|
774
|
-
[:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :
|
836
|
+
# @param alpha [float *]
|
837
|
+
# @return [int]
|
838
|
+
[:GuiColorBarAlpha, :GuiColorBarAlpha, [Rectangle.by_value, :pointer, :pointer], :int],
|
775
839
|
|
776
840
|
# @!method GuiColorBarHue(bounds, text, value)
|
777
841
|
# GuiColorBarHue : Color Bar Hue control
|
778
842
|
# @param bounds [Rectangle]
|
779
843
|
# @param text [const char *]
|
780
|
-
# @param value [float]
|
781
|
-
# @return [
|
782
|
-
[:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :
|
783
|
-
|
784
|
-
# @!method GuiLoadStyle(fileName)
|
785
|
-
# GuiLoadStyle : Load style file over global style variable (.rgs)
|
786
|
-
# @param fileName [const char *]
|
787
|
-
# @return [void]
|
788
|
-
[:GuiLoadStyle, :GuiLoadStyle, [:pointer], :void],
|
789
|
-
|
790
|
-
# @!method GuiLoadStyleDefault()
|
791
|
-
# GuiLoadStyleDefault : Load style default over global style
|
792
|
-
# @return [void]
|
793
|
-
[:GuiLoadStyleDefault, :GuiLoadStyleDefault, [], :void],
|
794
|
-
|
795
|
-
# @!method GuiEnableTooltip()
|
796
|
-
# GuiEnableTooltip : Enable gui tooltips (global state)
|
797
|
-
# @return [void]
|
798
|
-
[:GuiEnableTooltip, :GuiEnableTooltip, [], :void],
|
799
|
-
|
800
|
-
# @!method GuiDisableTooltip()
|
801
|
-
# GuiDisableTooltip : Disable gui tooltips (global state)
|
802
|
-
# @return [void]
|
803
|
-
[:GuiDisableTooltip, :GuiDisableTooltip, [], :void],
|
804
|
-
|
805
|
-
# @!method GuiSetTooltip(tooltip)
|
806
|
-
# GuiSetTooltip : Set tooltip string
|
807
|
-
# @param tooltip [const char *]
|
808
|
-
# @return [void]
|
809
|
-
[:GuiSetTooltip, :GuiSetTooltip, [:pointer], :void],
|
810
|
-
|
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 *]
|
816
|
-
[:GuiIconText, :GuiIconText, [:int, :pointer], :pointer],
|
817
|
-
|
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 *]
|
827
|
-
[:GuiGetIcons, :GuiGetIcons, [], :pointer],
|
828
|
-
|
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 **]
|
834
|
-
[:GuiLoadIcons, :GuiLoadIcons, [:pointer, :bool], :pointer],
|
835
|
-
|
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]
|
844
|
-
[:GuiDrawIcon, :GuiDrawIcon, [:int, :int, :int, :int, Color.by_value], :void],
|
844
|
+
# @param value [float *]
|
845
|
+
# @return [int]
|
846
|
+
[:GuiColorBarHue, :GuiColorBarHue, [Rectangle.by_value, :pointer, :pointer], :int],
|
845
847
|
]
|
846
848
|
entries.each do |entry|
|
847
849
|
attach_function entry[0], entry[1], entry[2], entry[3]
|
data/lib/raygui.x86_64.so
CHANGED
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Yet another raylib wrapper for Ruby
|
2
|
+
#
|
3
|
+
# * https://github.com/vaiorabbit/raylib-bindings
|
4
|
+
|
5
|
+
require 'ffi'
|
6
|
+
|
7
|
+
module Raylib
|
8
|
+
|
9
|
+
def RGuiButton(bounds, text)
|
10
|
+
result = GuiButton(bounds, text)
|
11
|
+
return result == 1
|
12
|
+
end
|
13
|
+
|
14
|
+
def RGuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue)
|
15
|
+
value_buf = FFI::MemoryPointer.new(:float, 1)
|
16
|
+
value_buf.put_float(0, value)
|
17
|
+
result = GuiSliderBar(bounds, textLeft, textRight, value_buf, minValue, maxValue)
|
18
|
+
return value_buf.read_float
|
19
|
+
end
|
20
|
+
|
21
|
+
def RGuiCheckBox(bounds, text, checked)
|
22
|
+
checked_buf = FFI::MemoryPointer.new(:bool, 1)
|
23
|
+
checked_buf.put(:bool, 0, checked)
|
24
|
+
result = GuiCheckBox(bounds, text, checked_buf)
|
25
|
+
return checked_buf.get(:bool, 0)
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|