GraphicCompTool(3)

GraphicCompTool3

Tool for instantiating graphical components

Usage

#include <Unidraw/Tools/grcomptool.h>

Overview

A GraphicCompTool lets the user instantiate graphical components by direct manipulation. The GraphicCompTool keeps a prototypical component that defines the type of component it can instantiate.

Public operations

GraphicCompTool(ControlInfo*, GraphicComp* prototype)
GraphicCompTool()

Create a new GraphicCompTool, supplying the prototypical GraphicComp. (You should not normally call the parameterless constructor, which Creator requires.) The first constructor creates a graphical view of the prototype for internal use.

virtual Manipulator* CreateManipulator(
Viewer*, Event&, Transformer*
)
virtual void InterpretManipulator(Manipulator*)

CreateManipulator clears the editor's selection and delegates manipulator creation and interpretation to the graphical view of the prototype.

GraphicComp* GetPrototype()

Return the prototypical GraphicComp.

Releases

Unchanged in 2 releases since Debian 2.2 (Potato).

  1. 2.2–3.1

From ivtools-dev 1.1.3-4 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.