Rect

A style data of each sides' width.

Constructors

this
this(Scalar[] args)

Order of arguments is the same to CSS.

Members

Functions

calc
void calc(vec2 parentSize, vec2 def)

Calculates all relative values.

Manifest constants

Auto
enum Auto;

A preset of rectangle that all sides are specified as auto.

None
enum None;

A preset of rectangle that all sides are not specified.

Mixins

__anonymous
mixin AttributesUtilities
Undocumented in source.

Variables

bottom
Scalar bottom;

Bottom side.

left
Scalar left;

Left side.

right
Scalar right;

Right side.

top
Scalar top;

Top side.

Mixed In Members

From mixin AttributesUtilities

isAuto
isAuto [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isRelative
bool isRelative [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isAbsolute
isAbsolute [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isCalced
isCalced [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta