raygui/rect
src/raygui/rect.tur
axis-aligned bounding box used by all raygui controls.
Since: Phase 1
defstruct
Rect
(defstruct Rect [])
axis-aligned bounding box for a GUI control.
Parameters
| x | left edge in pixels | |
| y | top edge in pixels | |
| width | pixel width | |
| height | pixel height |
Since: Phase 1
defn
rect
(rect [x : float y : float w : float h : float] :)
construct a Rect.
Parameters
| x | left edge in pixels | |
| y | top edge in pixels | |
| w | pixel width | |
| h | pixel height |
Returns
A Rect value usable as the first argument of any raygui control.
Example
(rect 10.0 10.0 120.0 30.0) ; => Rect
Since: Phase 1