Scroll to navigation

UControl(3U) InterViews Reference Manual UControl(3U)

NAME

UControl, UControlInteractor - base classes for menu and buttoninterfaces that work with ControlInfo objects

SYNOPSIS

#include <Unidraw/uctrl.h>

DESCRIPTION

UControl is an abstract class that augments InterViews' Control baseclass to deal with Unidraw's ControlInfo objects, which define akeyboard equivalent for the control. UControlInteractor is anabstract base class for interactors that base their appearance on theinformation in a ControlInfo object. UControl subclasses can useUControlInteractor subclasses to define their appearance.

Unidraw-based applications needn't use UControls andUControlInteractors to help define their look and feel if Unidraw'skeyboard equivalent mechanism is not needed.

UCONTROLPUBLICOPERATIONS

Assign and retrieve the UControl's ControlInfo object.

UCONTROLPROTECTEDOPERATIONS

UControl provides protected constructors that let subclassesinitialize the ControlInfo object and optionally specify theirinstance name.

UCONTROLINTERACTORPUBLICOPERATIONS

Assign and retrieve the UControlInteractor's ControlInfo object.
The UControlInteractor's appearance is defined by a Graphic object,which it builds from information in its ControlInfo object. Bydefault, UControlInteractor highlights itself by drawing this graphicwith its foreground and background colors reversed.

UCONTROLINTERACTORPROTECTEDOPERATIONS

UControlInteractor defines two protected constructors. One takes theControlInfo object to use as an argument. This constructor alsoinitializes the UControlInteractor's _label protected member by calling InitLabel (described below) with the ControlInfo object. The parameterless constructor initializes _label to nil. Both constructors initialize the UControlInteractor's _picture protected member to point to an instance of a Picture object, which defines the UControlInteractor's appearance.
Invert reverses _picture's colors without drawing it.
Create a graphic from the information stored in a ControlInfo objectthat defines the UControlInteractor's appearance. This operationcreates a GraphicView of the ControlInfo's GraphicComp and returns acopy of the view's graphic.

SEEALSO

Control(3I), ControlInfo(3U), Graphic(3U), GraphicComp(3U),GraphicView(3U), KeyMap(3U)

20 November 1990 Unidraw