Activating tools

 

You can activate tools through the C API. Tools are used to draw and modify vector objects. An active edit layer must be present in the document window to select a tool.

To request and set an active edit layer:

· Use the IN_GetActiveLayer and IN_SetActiveLayer functions.

To set the active tool:

· Use the IN_SetTool function.

The selected tool is activated, and an action may occur. For a list of the tools that you can set as active, and their effects, see Tool values.

You can also request which tool is selected by using the IN_GetTool function.

See also

Defining tools

Modifying vector objects