ifm::layout::Container Class Reference

Inheritance diagram for ifm::layout::Container:

ifm::layout::Component ifm::layout::TabbedContainer

List of all members.


Detailed Description

Layout object representing a Container.

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="")
Containercopy () const
const ComponentListget_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

ContainerDatam_data

Classes

class  ContainerData


Member Typedef Documentation


Constructor & Destructor Documentation

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]


Member Function Documentation

void ifm::layout::Container::add ( Component component  ) 

Adds a Component as a child of this Container.

It will be placed after any existing children.

Note:
Takes ownership of the pointer, do not delete it.

Container * ifm::layout::Container::copy (  )  const [virtual]

Returns:
A copy of this Container layout.

Implements ifm::layout::Component.

Reimplemented in ifm::layout::TabbedContainer.

const Container::ComponentList & ifm::layout::Container::get_children (  )  const

Returns the list of child Components.

int ifm::layout::Container::get_id (  )  const

Returns:
The ID for this Container.

std::string ifm::layout::Component::get_name (  )  const [inherited]

Returns:
The name of the component.

ALIGNMENT ifm::layout::Container::get_orientation (  )  const

Returns:
The orientation for this Container.

component_type ifm::layout::Component::get_type (  )  const [inherited]

Returns:
The type of the Component.

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.


Member Data Documentation

Reimplemented from ifm::layout::Component.

Reimplemented in ifm::layout::TabbedContainer.


doxygen Get IFM - Interface Management System at SourceForge.net. Fast, secure and Free Open Source software downloads