---
name: "GraphicCompTool"
section: "3"
platform: "linux"
package: "ivtools-dev"
version: "1.1.3-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/GraphicCompTool"
---

# GraphicCompTool(3)

tool for instantiating graphical components

## NAME

GraphicCompTool - tool for instantiating graphical components

## SYNOPSIS

**#include \<Unidraw/Tools/grcomptool.h\>**

## DESCRIPTION

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.

## SEE ALSO

GraphicComp(3U), Tool(3U)
