No matching definitions.

raygui/core

src/raygui/core.tur

state management, font, style, and theme loading.

Since: Phase 1

defn

gui-enable

(gui-enable :)

enable all raygui controls (default state).

(gui-enable)

Since: Phase 1

defn

gui-disable

(gui-disable :)

disable all raygui controls; they appear grayed out.

(gui-disable)

Since: Phase 1

defn

gui-lock

(gui-lock :)

lock all raygui controls; they stop responding to input.

(gui-lock)

Since: Phase 1

defn

gui-unlock

(gui-unlock :)

unlock all raygui controls.

(gui-unlock)

Since: Phase 1

defn

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

defn

gui-set-alpha

(gui-set-alpha [alpha : float] :)

set global alpha applied to all raygui controls.

alphatransparency factor 0.0 (fully transparent) to 1.0 (opaque)
(gui-set-alpha 0.5)

Since: Phase 1

defn

gui-set-state

(gui-set-state [state : int] :)

set the global raygui state.

state0 = normal, 1 = focused, 2 = pressed, 3 = disabled
(gui-set-state 0)

Since: Phase 1

defn

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

defn

gui-set-font

(gui-set-font [font : int] :)

override the font used by all raygui controls.

fontopaque Font handle from raylib/text load-font
(gui-set-font my-font)

Since: Phase 1

defn

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

defn

gui-set-style

(gui-set-style [control : int property : int value : int] :)

set a style property for a control.

controlcontrol selector constant (e.g. RAYGUI_DEFAULT)
propertyproperty constant (e.g. RAYGUI_TEXT_COLOR_NORMAL)
valuenew integer value for the property
(gui-set-style 0 2 0xFF0000FF)

Since: Phase 1

defn

gui-get-style

(gui-get-style [control : int property : int] :)

get a style property value for a control.

controlcontrol selector constant
propertyproperty constant

Integer property value.

(gui-get-style 0 2)  ; => text color RGBA

Since: Phase 1

defn

gui-load-style

(gui-load-style [path : cstr] :)

load a raygui style file (.rgs).

pathfile path to the .rgs style file
(gui-load-style "dark.rgs")

Since: Phase 4

defn

gui-load-style-default

(gui-load-style-default :)

reset to the built-in default style.

(gui-load-style-default)

Since: Phase 1