Glue(3X) manual page
Table of Contents
Glue - provide space between interactors
#include <ivplus/glue.h>
Glue defines variable-size space between interactors in boxes.
HGlue is for space in a hbox and VGlue is for space in a vbox. Along its
minor axis (vertical for hglue, horizontal for vglue), glue has a natural
size of zero and infinite stretchability.
Glue uses pixels as the unit
of measurement. To specify inches or centimeters, use the constants inch,
inches, cm, or mm. For example, you can specify (1.25*inches), or (3*cm),
etc. These constants are defined during the creation of the world and based
on the resolution of the display hardware.
Glue is an abstract base class.
There are two classes derived from Glue: HGlue and VGlue.
Glue
-> Interactor
Create a new
Glue. object. Since Glue is an abstract base class, these constructors are
protected.
None.
A box doesn’t draw on its canvas for performance reasons.
If a box which contains glue is inserted directly into the world, the underlying
display will show through (since glue doesn’t draw on its canvas either).
To solve this problem, the box’s background can be set explicitly using
the Canvas::SetBackground operation, or the box can simply be inserted
into another scene which does draw on its canvas, such as a frame.
None.
No example for this abstract base class. See HGlue(3X)
and VGlue(3X)
for examples.
glue.h
Box(3X)
, HGlue(3X)
, Interactor(3X)
, Shape(3X)
, VGlue(3X)
.
Table of Contents