poison.ui.container
Source
Module for a container.
Authors:
Jacob Jensen
License:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSE
Imports
std.algorithm : filter
std.array : array
public dsfml.graphics : RenderWindow
poison.ui.component
poison.core : Size, Point, ActionArgs, executeUI
public:
protected:
public this(string name, Size initialSize, size_t layers);
Creates a new container.
Parameters:
name The name of the container.
initialSize The initial size of the container.
layers The layers of the container.
public this(string name, size_t layers);
Creates a new container.
Parameters:
name The name of the container.
layers The layers of the container.
public @property override bool disabled();
Gets a boolean determining whether the container is disabled or not.
public @property override void disabled(bool isDisabled);
Sets a boolean determining whether the container is disabled or not.
public void add(Component child, size_t layer);
Adds a component to the container.
Parameters:
child The child component to add.
layer The layer to add the component to.
public void add(Component[] components, size_t layer);
Adds an array of components to the container.
Parameters:
components The child components to add.
layer The layer to add the components to.
public void remove(Component child);
Removes a component from the container.
Parameters:
child The child component to remove.
public void remove(string name);
Removes a component from the container.
Parameters:
name The name of the component.
public void clear();
Clears the component for children.
public void clear(size_t layer);
Clears the components for a specific layer.
Parameters:
layer The layer to clear.
protected override void process(RenderWindow window);
Processes the container during application cycles.
Parameters:
window The render window to process.
Generated by venom - Poison Engine's Documentation Generator
Module for a container.
Authors:
Jacob JensenLicense:
https://github.com/PoisonEngine/poison-ui/blob/master/LICENSEImports
std.algorithm : filterstd.array : array
public dsfml.graphics : RenderWindow
poison.ui.component
poison.core : Size, Point, ActionArgs, executeUI
public this(string name, Size initialSize, size_t layers);
Creates a new container.
Parameters:
name | The name of the container. |
initialSize | The initial size of the container. |
layers | The layers of the container. |
public this(string name, size_t layers);
Creates a new container.
Parameters:
name | The name of the container. |
layers | The layers of the container. |
public @property override bool disabled();
Gets a boolean determining whether the container is disabled or not.
public @property override void disabled(bool isDisabled);
Sets a boolean determining whether the container is disabled or not.
public void add(Component child, size_t layer);
Adds a component to the container.
Parameters:
child | The child component to add. |
layer | The layer to add the component to. |
public void add(Component[] components, size_t layer);
Adds an array of components to the container.
Parameters:
components | The child components to add. |
layer | The layer to add the components to. |
public void remove(Component child);
Removes a component from the container.
Parameters:
child | The child component to remove. |
public void remove(string name);
Removes a component from the container.
Parameters:
name | The name of the component. |
public void clear();
Clears the component for children.
public void clear(size_t layer);
Clears the components for a specific layer.
Parameters:
layer | The layer to clear. |
protected override void process(RenderWindow window);
Processes the container during application cycles.
Parameters:
window | The render window to process. |