raygui/core
state management, font, style, and theme loading.
Since: Phase 1
gui-enable
(gui-enable :)
enable all raygui controls (default state).
(gui-enable)
Since: Phase 1
gui-disable
(gui-disable :)
disable all raygui controls; they appear grayed out.
(gui-disable)
Since: Phase 1
gui-lock
(gui-lock :)
lock all raygui controls; they stop responding to input.
(gui-lock)
Since: Phase 1
gui-unlock
(gui-unlock :)
unlock all raygui controls.
(gui-unlock)
Since: Phase 1
gui-is-locked
(gui-is-locked :)
return 1 if raygui controls are locked, 0 otherwise.
1 if locked, 0 if not locked.
(gui-is-locked) ; => 0
Since: Phase 1
gui-set-alpha
(gui-set-alpha [alpha : float] :)
set global alpha applied to all raygui controls.
| alpha | transparency factor 0.0 (fully transparent) to 1.0 (opaque) |
(gui-set-alpha 0.5)
Since: Phase 1
gui-set-state
(gui-set-state [state : int] :)
set the global raygui state.
| state | 0 = normal, 1 = focused, 2 = pressed, 3 = disabled |
(gui-set-state 0)
Since: Phase 1
gui-get-state
(gui-get-state :)
return the current global raygui state.
0 = normal, 1 = focused, 2 = pressed, 3 = disabled
(gui-get-state) ; => 0
Since: Phase 1
gui-set-font
(gui-set-font [font : int] :)
override the font used by all raygui controls.
| font | opaque Font handle from raylib/text load-font |
(gui-set-font my-font)
Since: Phase 1
gui-get-font
(gui-get-font :)
return the current raygui font as an opaque handle.
Opaque :int Font handle.
(gui-get-font)
Since: Phase 1
gui-set-style
(gui-set-style [control : int property : int value : int] :)
set a style property for a control.
| control | control selector constant (e.g. RAYGUI_DEFAULT) | |
| property | property constant (e.g. RAYGUI_TEXT_COLOR_NORMAL) | |
| value | new integer value for the property |
(gui-set-style 0 2 0xFF0000FF)
Since: Phase 1
gui-get-style
(gui-get-style [control : int property : int] :)
get a style property value for a control.
| control | control selector constant | |
| property | property constant |
Integer property value.
(gui-get-style 0 2) ; => text color RGBA
Since: Phase 1
gui-load-style
(gui-load-style [path : cstr] :)
load a raygui style file (.rgs).
| path | file path to the .rgs style file |
(gui-load-style "dark.rgs")
Since: Phase 4
gui-load-style-default
(gui-load-style-default :)
reset to the built-in default style.
(gui-load-style-default)
Since: Phase 1