BrushVarView, CompNameVarView, FileNameVarView, Font-
VarView, GravityVarView, MagnifVarView, ModifStatus-
VarView, NameVarView, PatternVarView - various state vari-
able view subclasses
SYNOPSIS
#include <Unidraw/stateviews.h>
DESCRIPTION
Unidraw predefines several state variable view subclasses
for the the state variable subjects it predefines, as
described below.
PUBLIC OPERATIONS
BrushVarView(BrushVar*, ColorVar* = nil)
FontVarView(FontVar*, Alignment = Center)
PatternVarView(PatternVar*, ColorVar* = nil)
Views of graphics state state variable subjects.
BrushVarView displays a short line drawn in the
subject's brush and in a color specified by the
given ColorVar (black if no ColorVar is supplied).
The BrushVarView displays ``None'' if the Brush-
Var's brush is invisible. Similarly, Pattern-
VarView displays a filled rectangle drawn in the
subject's pattern and in a color specified by the
given ColorVar (black if no ColorVar is supplied).
The PatternVarView displays ``None'' if the Pat-
ternVar's pattern is invisible. FontVarView dis-
plays the name of its subject's font, aligned as
specified in its canvas.
GravityVarView(GravityVar*, Alignment = Center)
Displays either ``gravity on'' or a blank, depend-
ing on whether the subject indicates that gravity
is on or not.
MagnifVarView(MagnifVar*, Alignment = Center)
Displays ``mag xx'', where x is the current modifi-
cation factor recorded in the subject.
ModifStateVarView(ModifStateVar*, Alignment = Center)
Displays either an asterisk or a blank, depending
on whether the subject records that its component
is modified.
NameVarView(
NameVar*, Alignment = Center, const char* sample = nil
)
FileNameVarView(
NameVar*, Alignment = Center,
boolean relative = true, const char* sample = nil
CompNameVarView*, Alignment = Center,
boolean relative = true, const char* sample = nil
)
Display the subject's string aligned as specified
with respect to the canvas. Each constructor takes
an optional sample string that defines the view's
natural size. FileNameVarView provides a special-
ized view of a NameVar for displaying file names.
It adds a relative argument for displaying the file
name either as a relative or full path. Comp-
NameVarView provides similar functionality for
CompNameVar subjects, except it precedes its sub-
ject's component's name with ``[part of]'' for com-
ponents that have a named parent but that are not
named themselves.
SEE ALSO
statevars(3U), StateVarView(3U)
Man(1) output converted with
man2html