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

wftk::ScreenArea::PackingInfo::Expander Struct Reference

The per-axis packing info. More...

#include <screenarea.h>

List of all members.

Public Types

enum  { FILL = 100, SUBTRACT = 5 }

Public Member Functions

 Expander ()
 default values
void extend (const Expander &)
 expand a container dimension by adding an object on the end
void contain (const Expander &)
 make sure a object fits in this dimension's packing info

Public Attributes

Uint16 pref
 the object's prefered size
Uint16 min
 the object's minimum size
bool expand
 true if an object can expand past its prefered size
unsigned char filler
 Excess space in a container is assigned to children based on their 'filler weight', with the children with the highest weight splitting the space evenly.


Detailed Description

The per-axis packing info.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
FILL  nice default value for filler (set to 100)
SUBTRACT  amount containers should subtract from a child's filler value (set to 5)


Member Data Documentation

unsigned char wftk::ScreenArea::PackingInfo::Expander::filler
 

Excess space in a container is assigned to children based on their 'filler weight', with the children with the highest weight splitting the space evenly.

If the highest weight is zero, the space is split among the children weighted by their prefered sizes. If 'expand' is false, this field is ignored. Containers inherit the highest filler weight from among their children, reduced by five.


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

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.