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

bottomMargin
ptrdiff_t bottomMargin [@property getter]

Gets the bottom margin of the space.

height
size_t height [@property getter]

Gets the height of the space.

leftMargin
ptrdiff_t leftMargin [@property getter]

Gets the left margin 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.

padding
Edge padding [@property getter]

Gets the padding of the space.

padding
Edge padding [@property setter]

Sets the 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.

rightMargin
ptrdiff_t rightMargin [@property getter]

Gets the right margin 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.

topMargin
ptrdiff_t topMargin [@property getter]

Gets the top margin 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