ifm::layout::Layout Class Reference

List of all members.


Detailed Description

Represents an interface Layout.

Layouts are constructed from Container, TabbedContainer, and Panel building blocks. Panels hold actual child widgets, Containers hold other Components, and TabbedContainers are a special Container which displays a tab for each of its children instead of arranging its children either vertically or horizontally.

Public Types

typedef std::list< Container * > ContainerList

Public Member Functions

void add (Panel *panel, ALIGNMENT where)
 Adds a child widget to the Layout.
void add (Container *container, ALIGNMENT where)
 Adds a Container to the Layout.
Layout * copy () const
const ContainerList & get_containers () const
 Layout (const Layout &other)
 Layout ()
 ~Layout ()

Private Attributes

std::auto_ptr< LayoutData > m_data

Classes

class  LayoutData


Member Typedef Documentation


Constructor & Destructor Documentation

ifm::layout::Layout::Layout (  ) 

ifm::layout::Layout::Layout ( const Layout &  other  ) 

ifm::layout::Layout::~Layout (  ) 


Member Function Documentation

void ifm::layout::Layout::add ( Panel *  panel,
ALIGNMENT  where 
)

Adds a child widget to the Layout.

void ifm::layout::Layout::add ( Container *  container,
ALIGNMENT  where 
)

Adds a Container to the Layout.

Parameters:
where Which side of the Layout the Container will appear on. NONE and TABBED are invalid values.
Note:
Takes ownership of the pointer, do not delete it.

Layout * ifm::layout::Layout::copy (  )  const

Returns:
A copy of this Layout.

const Layout::ContainerList & ifm::layout::Layout::get_containers (  )  const

Returns:
the list of top level Containers for the Layout.


Member Data Documentation

std::auto_ptr<LayoutData> ifm::layout::Layout::m_data [private]


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