Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

wftk::SingleContainer Class Reference

A container which can hold a single child. More...

#include <singlecontainer.h>

Inheritance diagram for wftk::SingleContainer:

wftk::Widget wftk::ScreenArea wftk::Button wftk::CornerContainer wftk::Dialog wftk::ListBox wftk::RootWindow wftk::PushButton wftk::BorderedDialog wftk::FixedDialog wftk::FullScreenDialog wftk::ToggleButton wftk::MessageDialog wftk::ProgressDialog wftk::QuestionBox List of all members.

Public Member Functions

 SingleContainer (unsigned top_pad, unsigned bottom_pad, unsigned left_pad, unsigned right_pad)
 Constructor. Arguments set padding (in pixels) of container sides.
void pack (ScreenArea *child)
 set the child of this container
void clear ()
 clear the child
void setPadding (unsigned top_pad, unsigned bottom_pad, unsigned left_pad, unsigned right_pad)
 set the border padding of this container
ScreenAreachild () const
 get this container's child
unsigned topPad () const
 Accessor.
unsigned bottomPad () const
 Accessor.
unsigned leftPad () const
 Accessor.
unsigned rightPad () const
 Accessor.

Protected Member Functions

virtual void setPackingInfo ()
 recalculate the object's prefered size
virtual void handleResize (Uint16 w, Uint16 h)
 Calculate new shape for shaped widgets, call to setShape() after a resize.

Detailed Description

A container which can hold a single child.


The documentation for this class was generated from the following file:

Generated Tue Apr 12 22:48:56 2005.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.