The child alignment of the container is determined automatically based on where the container ultimately appears in the layout.
Public Types | |
typedef std::list< Component * > | ComponentList |
Public Member Functions | |
void | add (Component *component) |
Adds a Component as a child of this Container. | |
Container (const Container &other) | |
Container (int id=ID_NONE, const std::string &name="") | |
Container * | copy () const |
const ComponentList & | get_children () const |
int | get_id () const |
std::string | get_name () const |
ALIGNMENT | get_orientation () const |
component_type | get_type () const |
void | set_name (const std::string &name) |
void | set_orientation (ALIGNMENT orientation) |
Protected Member Functions | |
Container (ContainerData *data) | |
Private Attributes | |
ContainerData * | m_data |
Classes | |
class | ContainerData |
typedef std::list<Component*> ifm::layout::Container::ComponentList |
ifm::layout::Container::Container | ( | int | id = ID_NONE , |
|
const std::string & | name = "" | |||
) | [explicit] |
ifm::layout::Container::Container | ( | const Container & | other | ) |
ifm::layout::Container::Container | ( | ContainerData * | data | ) | [protected] |
void ifm::layout::Container::add | ( | Component * | component | ) |
Container * ifm::layout::Container::copy | ( | ) | const [virtual] |
const Container::ComponentList & ifm::layout::Container::get_children | ( | ) | const |
Returns the list of child Components.
int ifm::layout::Container::get_id | ( | ) | const |
std::string ifm::layout::Component::get_name | ( | ) | const [inherited] |
ALIGNMENT ifm::layout::Container::get_orientation | ( | ) | const |
component_type ifm::layout::Component::get_type | ( | ) | const [inherited] |
void ifm::layout::Component::set_name | ( | const std::string & | name | ) | [inherited] |
Sets the name of this component.
void ifm::layout::Container::set_orientation | ( | ALIGNMENT | orientation | ) |
Sets the orientation for this Container.
ContainerData* ifm::layout::Container::m_data [private] |