[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    Glue(3X) manual page Table of Contents

Name

Glue - provide space between interactors

Synopsis

#include <ivplus/glue.h>

Description

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.

Class Hierarchy

Glue -> Interactor

Constructors

Glue()

Glue(const char* instanceName)

Create a new Glue. object. Since Glue is an abstract base class, these constructors are protected.

Public Operations

None.

Protected Operations

Redraw(IntCoord, IntCoord, IntCoord, IntCoord)

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.

X Resources

None.

Examples

No example for this abstract base class. See HGlue(3X) and VGlue(3X) for examples.

Files


glue.h

See Also

Box(3X) , HGlue(3X) , Interactor(3X) , Shape(3X) , VGlue(3X) .


Table of Contents