diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-01-03 18:32:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-03 18:32:45 +0000 |
| commit | 5961d4b31680aa4fc628b85fb49b6f936b3b925f (patch) | |
| tree | 7c30bbb18e730ee4727218eee158eafb5d44d845 /vendor/raylib/raygui.odin | |
| parent | b59c80d6fd892b0408440e2858782a27c6b28cd1 (diff) | |
| parent | a9166f52f8dfaa6e644eaa334aa4d3e81ede968f (diff) | |
Merge pull request #2983 from perogycook/raylib5dev-2024-01
Raylib5 bindings with fixes
Diffstat (limited to 'vendor/raylib/raygui.odin')
| -rw-r--r-- | vendor/raylib/raygui.odin | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/vendor/raylib/raygui.odin b/vendor/raylib/raygui.odin index 80c6cb265..31b5f66e4 100644 --- a/vendor/raylib/raygui.odin +++ b/vendor/raylib/raygui.odin @@ -23,7 +23,9 @@ when ODIN_OS == .Windows { } else when ODIN_OS == .Darwin { when ODIN_ARCH == .arm64 { when RAYGUI_SHARED { - // #panic("Cannot link libraygui.450.dylib: not in the vendor collection") + foreign import lib { + "macos-arm64/libraygui.dylib", + } } else { foreign import lib { "macos-arm64/libraygui.a", @@ -34,7 +36,9 @@ when ODIN_OS == .Windows { } } else { when RAYGUI_SHARED { - // #panic("Cannot link libraygui.450.dylib: not in the vendor collection") + foreign import lib { + "macos/libraygui.dylib", + } } else { foreign import lib { "macos/libraygui.a", @@ -72,6 +76,18 @@ GuiTextAlignment :: enum c.int { TEXT_ALIGN_RIGHT, } +GuiTextAlignmentVertical :: enum c.int { + TEXT_ALIGN_TOP = 0, + TEXT_ALIGN_MIDDLE, + TEXT_ALIGN_BOTTOM, +} + +GuiTextWrapMode :: enum c.int { + TEXT_WRAP_NONE = 0, + TEXT_WRAP_CHAR, + TEXT_WRAP_WORD, +} + // Gui controls GuiControl :: enum c.int { // Default -> populates to all controls when set @@ -284,6 +300,7 @@ foreign lib { GuiLabelButton :: proc(bounds: Rectangle, text: cstring) -> bool --- // Label button control, show true when clicked GuiToggle :: proc(bounds: Rectangle, text: cstring, active: ^bool) -> c.int --- // Toggle Button control, returns true when active GuiToggleGroup :: proc(bounds: Rectangle, text: cstring, active: ^c.int) -> c.int --- // Toggle Group control, returns active toggle index + GuiToggleSlider :: proc(bounds: Rectangle, text: cstring, active: ^c.int) -> c.int --- GuiCheckBox :: proc(bounds: Rectangle, text: cstring, checked: ^bool) -> bool --- // Check Box control, returns true when active GuiComboBox :: proc(bounds: Rectangle, text: cstring, active: ^c.int) -> c.int --- // Combo Box control, returns selected item index @@ -573,4 +590,4 @@ GuiIconName :: enum c.int { ICON_253 = 253, ICON_254 = 254, ICON_255 = 255, -}
\ No newline at end of file +} |