#include <screenarea.h>
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. |
|
|
|
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. |
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.