Table of Contents

Class Tool

Namespace
PAC.Drawing

Defines the tools available to use and their properties.

public class Tool
Inheritance
Tool
Inherited Members

Fields

Brush

public static Tool Brush

Field Value

Tool

EyeDropper

public static Tool EyeDropper

Field Value

Tool

Fill

public static Tool Fill

Field Value

Tool

GlobalEyeDropper

public static Tool GlobalEyeDropper

Field Value

Tool

Gradient

public static Tool Gradient

Field Value

Tool

IsoBox

public static Tool IsoBox

Field Value

Tool

Line

public static Tool Line

Field Value

Tool

Move

public static Tool Move

Field Value

Tool

None

public static Tool None

Field Value

Tool

Pencil

public static Tool Pencil

Field Value

Tool

Rubber

public static Tool Rubber

Field Value

Tool

Selection

public static Tool Selection

Field Value

Tool

Shape

public static Tool Shape

Field Value

Tool

canBeCancelled

public bool canBeCancelled

Field Value

bool

tools

All implemented tools.

public static readonly Tool[] tools

Field Value

Tool[]

Properties

finishMode

What action causes a use of the tool to be ended.

public MouseTargetDeselectMode finishMode { get; }

Property Value

MouseTargetDeselectMode

name

public string name { get; }

Property Value

string

showBrushBorder

Whether the outline of the brush shape should be shown.

public bool showBrushBorder { get; }

Property Value

bool

useMovementInterpolation

When the mouse position jumps between frames: true - the tool should be applied to each coord the mouse moved through; false - just applied to the ending coord.

public bool useMovementInterpolation { get; }

Property Value

bool

Methods

StringToTool(string)

Gets the tool with that name.

public static Tool StringToTool(string toolName)

Parameters

toolName string

Returns

Tool