Space

A wrapper around a space.

Constructors

this
this(Point position, Size size)

Creates a new space.

Members

Functions

center
void center(Space target)

Centers the space relative to another space.

centerX
void centerX(Space target)

Centers the x coordinate of the space relative to another space.

centerY
void centerY(Space target)

Centers the y coordinate of the space relative to another space.

intersect
bool intersect(Space target)

Checks whether the space intersects with another space.

intersect
bool intersect(Point p)

Checks whether the space intersects with a point.

moveIn
void moveIn(Space target)

Moves the space into another space.

moveTo
void moveTo(Space target)

Moves the space to another space.

moveX
void moveX(ptrdiff_t amount)
Undocumented in source. Be warned that the author may not have intended to support it.
moveY
void moveY(ptrdiff_t amount)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

height
size_t height [@property getter]

Gets the height of the space.

margin
Edge margin [@property getter]

Gets the margin of the space.

margin
Edge margin [@property setter]

Sets the margin of the space.

marginBottom
ptrdiff_t marginBottom [@property getter]

Gets the bottom margin of the space.

marginLeft
ptrdiff_t marginLeft [@property getter]

Gets the left margin of the space.

marginRight
ptrdiff_t marginRight [@property getter]

Gets the right margin of the space.

marginTop
ptrdiff_t marginTop [@property getter]

Gets the top margin of the space.

padding
Edge padding [@property getter]

Gets the padding of the space.

padding
Edge padding [@property setter]

Sets the padding of the space.

paddingBottom
ptrdiff_t paddingBottom [@property getter]

Gets the bottom padding of the space.

paddingLeft
ptrdiff_t paddingLeft [@property getter]

Gets the left padding of the space.

paddingRight
ptrdiff_t paddingRight [@property getter]

Gets the right padding of the space.

paddingTop
ptrdiff_t paddingTop [@property getter]

Gets the top padding of the space.

position
Point position [@property getter]

Gets the position of the space.

position
Point position [@property setter]

Sets the position of the space.

size
Size size [@property getter]

Gets the size of the space.

size
Size size [@property setter]

Sets the size of the space.

width
size_t width [@property getter]

Gets the width of the space.

x
ptrdiff_t x [@property getter]

Gets the x coordinate of the space.

y
ptrdiff_t y [@property getter]

Gets the y coordinate of the space.

Meta