No matching definitions.

raygui/layout

src/raygui/layout.tur

container controls for grouping and scrolling GUI elements.

Since: Phase 2

defn

gui-window-box

(gui-window-box [r : Rect title : cstr] :)

draw a titled window frame with a close button.

rbounding Rect
titlewindow title string

1 if the close button was clicked this frame, 0 otherwise.

(when (gui-window-box (rect 50.0 50.0 300.0 250.0) "Settings")
    (set! show-settings 0))

Since: Phase 2

defn

gui-group-box

(gui-group-box [r : Rect text : cstr] :)

draw a labeled rectangle border around a group of controls.

rbounding Rect
textgroup label shown in the top border
(gui-group-box (rect 10.0 10.0 200.0 100.0) "Physics")

Since: Phase 2

defn

gui-line

(gui-line [r : Rect text : cstr] :)

draw a horizontal separator line, optionally labeled.

rbounding Rect (height determines the line y position)
textoptional label; pass "" for a plain line
(gui-line (rect 10.0 50.0 200.0 16.0) "")

Since: Phase 2

defn

gui-panel

(gui-panel [r : Rect text : cstr] :)

draw a filled panel background.

rbounding Rect
textpanel title (shown in header bar if non-empty)
(gui-panel (rect 10.0 10.0 300.0 200.0) "Inspector")

Since: Phase 2

defn

gui-tab-bar

(gui-tab-bar [r : Rect text : cstr count : int active : int] :)

draw a tab bar; returns the currently active tab index.

rbounding Rect for the entire tab bar
textsemicolon-separated tab labels ("File;Edit;View")
countnumber of tabs
activeindex of the active tab

Index of the active tab after this frame.

(set! tab (gui-tab-bar (rect 10.0 10.0 400.0 30.0) "File;Edit;View" 3 tab))

Since: Phase 2

defn

gui-scroll-panel

(gui-scroll-panel [r : Rect text : cstr content : Rect scroll : int] :)

draw a scroll panel; returns packed scroll vector as int.

rbounding Rect of the scroll container
textoptional panel title
contentRect describing the total scrollable content size
scrollcurrent scroll position (packed int, 0 for initial)

New packed scroll vector after this frame.

(set! scroll (gui-scroll-panel (rect 10.0 10.0 300.0 400.0)
                                 "Props" content-rect scroll))

Since: Phase 2

defn

gui-dummy-rec

(gui-dummy-rec [r : Rect text : cstr] :)

draw a placeholder rectangle (for layout prototyping).

rbounding Rect
textplaceholder label
(gui-dummy-rec (rect 10.0 10.0 200.0 60.0) "TODO")

Since: Phase 2

defn

gui-status-bar

(gui-status-bar [r : Rect text : cstr] :)

draw a status bar along the bottom of a window.

rbounding Rect (typically a thin full-width strip)
textstatus message text
(gui-status-bar (rect 0.0 580.0 800.0 20.0) "Ready")

Since: Phase 2