Handbook
Glossary
Rectangle
Vocabulary
raylib
Class description
Represents a 2D rectangle defined by a x position, y position, width, and height.
Warning
Values are all single-precision where as Factor is double precision (see
float
)
Definition
USING:
alien.c-types
classes.struct
;
IN:
raylib
STRUCT:
Rectangle
{
x
float
initial:
0.0
}
{
y
float
initial:
0.0
}
{
width
float
initial:
0.0
}
{
height
float
initial:
0.0
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
raylib
;
M:
Rectangle
clone
clone-underlying
\
Rectangle
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
raylib
;
M:
Rectangle
struct-slot-values
{
[
x>>
]
[
y>>
]
[
width>>
]
[
height>>
]
}
cleave>array
;
inline