Component

A component, which is the base for all controls and elements.

Constructors

this
this(string name, Size initialSize)

Creates a new component.

this
this(string name)

Creates a new component.

Members

Functions

addSelector
void addSelector(string selector)

Adds a style selector.

disable
void disable()

Disables the component.

draw
void draw(RenderWindow window)

Draws the component. Override this!

enable
void enable()

Enables the component.

hide
void hide()

Hides the component.

intersect
bool intersect(Point p)

Checks whether the component intersects with a point.

intersect
bool intersect(Space target)

Checks whether the component intersects with another space.

process
void process(RenderWindow window)

Processes the component during application cycles.

processInternal
void processInternal(RenderWindow window)

Processes the component during application cycles.

removeSelector
void removeSelector(string selector)

Removes a style selector.

render
void render()

Renders the component. Override this!

renderSub
void renderSub()

Renders the sub rectangles for the graphics of the component.

show
void show()

Shows the component.

updateStyles
void updateStyles()

Updates the styles of the component.

Properties

disabled
bool disabled [@property getter]

Gets a boolean determining whether the component is disabled or not.

disabled
bool disabled [@property setter]

Sets a boolean determining whether the component is disabled.

enabled
bool enabled [@property getter]

Gets a boolean determining whether the component is enabled or not.

enabled
bool enabled [@property setter]

Sets a boolean determining whether the component is enabled or not.

graphics
Graphics graphics [@property getter]

Gets the graphics of the component.

hidden
bool hidden [@property getter]

Gets a boolean determining whether the component is hidden or not.

hidden
bool hidden [@property setter]

Sets a boolean determining whether the component is hidden or not.

id
size_t id [@property getter]

Gets the id of the component.

innerText
dstring innerText [@property getter]

Gets the inner text of the component.

innerText
dstring innerText [@property setter]

Sets the inner text of the component.

layer
ptrdiff_t layer [@property getter]

Gets the layer of the component.

layer
ptrdiff_t layer [@property setter]

Sets the layer of the component.

name
string name [@property getter]

Gets the name of the component.

outerText
dstring outerText [@property getter]

Gets the outer text of the component.

outerText
dstring outerText [@property setter]

Sets the outer text of the component.

parentContainer
Container parentContainer [@property getter]

Gets the parent container of the component.

parentContainer
Container parentContainer [@property setter]

Sets the parent container of the component.

parentWindow
Window parentWindow [@property getter]

Gets the parent window of the component.

parentWindow
Window parentWindow [@property setter]

Sets the parent window of the component.

position
Point position [@property getter]

Ges the position of the component.

position
Point position [@property setter]

Sets the position of the component.

size
Size size [@property getter]

Gets the size of the component.

size
Size size [@property setter]

Sets the size of the component.

visible
bool visible [@property getter]

Gets a boolean determining whether the component is visible or not.

visible
bool visible [@property setter]

Sets a boolean determining whether the component is visible or not.

Inherited Members

From Space

position
Point position [@property getter]

Gets the position of the space.

position
Point position [@property setter]

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

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.

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.

marginTop
ptrdiff_t marginTop [@property getter]

Gets the top margin of the space.

marginRight
ptrdiff_t marginRight [@property getter]

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

padding
Edge padding [@property getter]

Gets the padding of the space.

padding
Edge padding [@property setter]

Sets the padding of the space.

paddingTop
ptrdiff_t paddingTop [@property getter]

Gets the top padding of the space.

paddingRight
ptrdiff_t paddingRight [@property getter]

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

moveTo
void moveTo(Space target)

Moves the space to another space.

moveIn
void moveIn(Space target)

Moves the space into 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.

center
void center(Space target)

Centers the space relative to another space.

intersect
bool intersect(Point p)

Checks whether the space intersects with a point.

intersect
bool intersect(Space target)

Checks whether the space intersects with another space.

Meta