Container

A container component.

Constructors

this
this(string name, Size initialSize, size_t layers)

Creates a new container.

this
this(string name, size_t layers)

Creates a new container.

Members

Functions

add
void add(Component child, size_t layer)

Adds a component to the container.

add
void add(Component[] components, size_t layer)

Adds an array of components to the container.

clear
void clear()

Clears the component for children.

clear
void clear(size_t layer)

Clears the components for a specific layer.

process
void process(RenderWindow window)

Processes the container during application cycles.

remove
void remove(Component child)

Removes a component from the container.

remove
void remove(string name)

Removes a component from the container.

Properties

disabled
bool disabled [@property getter]

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

disabled
bool disabled [@property setter]

Sets a boolean determining whether the container is disabled or not.

Inherited Members

From Component

graphics
Graphics graphics [@property getter]

Gets the graphics of the component.

draw
void draw(RenderWindow window)

Draws the component. Override this!

process
void process(RenderWindow window)

Processes the component during application cycles.

name
string name [@property getter]

Gets the name of the component.

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.

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.

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.

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.

innerText
dstring innerText [@property getter]

Gets the inner text of the component.

innerText
dstring innerText [@property setter]

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

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.

layer
ptrdiff_t layer [@property getter]

Gets the layer of the component.

parentWindow
Window parentWindow [@property getter]

Gets the parent window of the component.

parentContainer
Container parentContainer [@property getter]

Gets the parent container of the component.

render
void render()

Renders the component. Override this!

show
void show()

Shows the component.

hide
void hide()

Hides the component.

enable
void enable()

Enables the component.

disable
void disable()

Disables the component.

addSelector
void addSelector(string selector)

Adds a style selector.

removeSelector
void removeSelector(string selector)

Removes a style selector.

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.

renderSub
void renderSub()

Renders the sub rectangles for the graphics of the component.

processInternal
void processInternal(RenderWindow window)

Processes the component during application cycles.

updateStyles
void updateStyles()

Updates the styles of the component.

id
size_t id [@property getter]

Gets the id of the component.

layer
ptrdiff_t layer [@property setter]

Sets the layer of the component.

parentWindow
Window parentWindow [@property setter]

Sets the parent window of the component.

parentContainer
Container parentContainer [@property setter]

Sets the parent container of the component.

Meta