Looking up www.vectaport.com Contacting www.vectaport.com Reading...
Box, HBox, VBox - tile interactors in a box
#include <InterViews/box.h>
Read (8% of 3K)
A box is a scene of interactors that are tiled side-by-
side in the available space. Interactors are placed left-
to-right in a horizontal box, and top-to-bottom in a ver-
tical box.
A box will try to stretch or shrink the interactors inside
it to fit the available space. The natural size of a box
is the sum of its elements along the major axis, and the
maximum along its minor axis. A box's stretchability
(shrinkability) is the sum oRead (26% of 3K)
f its elements along itsRead (27% of 3K)
major
axis and the minimum of its elements along its minor axis.
HBox(...)
VBox(...)
Create a new box. Zero to seven interactors may be
passed as arguments; the interactors are inserted
into the box.
void Align(Alignment)
Set the alignment mode that the box uses to place
elements along the minor axis. The default align-
Read (45% of 3K)
ment for an hbox is BRead (46% of 3K)
ottom; other choices are Top
and Center. The default alignment for a vbox is
Left; other choices are Right and Center.
void Insert(Interactor*)
Append an interactor to the box. Components of an
hbox (vbox) will appear left-to-right (top-to-bot-
tom) in the order in which they are inserted.
void Change(Interactor*)
Notify the box that Read (65% of 3K)
the given interactor's shape
has changed. If change propagation is true, the
box will modify its own shape to reflect the change
and notify its parent. Regardless of propagation,
the box will recompute the positions of the compo-
nent interactors and update any that have changed.
void Remove(Interactor*)
Take an element of out a box. Remove does not
cause any immediate chRead (83% of 3K)
ange to the other components
in the box; the Change operation must be called
after one or more Removes to update the component
positions.
Glue(3I), Interactor(3I), Scene(3I), Shape(3I)