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

wftk::Table Class Reference

an automatically expanding table More...

#include <table.h>

Inheritance diagram for wftk::Table:

wftk::ScreenArea List of all members.

Public Member Functions

bool pack (ScreenArea *, unsigned x, unsigned y, unsigned w=1, unsigned h=1)
 returns true if packing succeeded, false on overlap

void insertRow (unsigned index)
 widgets spanning this row are stretched across it, all other cells start empty

void insertColumn (unsigned index)
 widgets spanning this column are stretched across it, all other cells start empty

void remove (ScreenArea *)
 remove a widget

void clear ()
 remove all widgets

ScreenAreachild (unsigned x, unsigned y) const
 returns the child which owns this cell, if any

PackingInfo::Expander getRowPackingInfo (unsigned) const
 get prefered, minimum sizes for a row

PackingInfo::Expander getColumnPackingInfo (unsigned) const
 get prefered, minimum sizes for a column


Protected Member Functions

virtual void handleResize (Uint16 w, Uint16 h)
 Calculate new shape for shaped widgets, call to setShape() after a resize.

virtual void setPackingInfo ()
 recalculate the object's prefered size


Detailed Description

an automatically expanding table


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

Generated Thu Mar 18 20:06:05 2004.
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.