C# Class Core2D.Editor.Tool

Defines tool contract.
Afficher le fichier Open project: Core2D/Core2D

Méthodes publiques

Méthode Description
Finalize ( BaseShape shape ) : void

Finalize edited shape.

LeftDown ( double x, double y ) : void

Handle mouse left button down events.

LeftUp ( double x, double y ) : void

Handle mouse left button up events.

Move ( BaseShape shape ) : void

Move edited shape.

Move ( double x, double y ) : void

Handle mouse move events.

Remove ( ) : void

Remove edited shape.

RightDown ( double x, double y ) : void

Handle mouse right button down events.

RightUp ( double x, double y ) : void

Handle mouse right button up events.

ToStateFour ( ) : void

Transfer tool state to ToolState.Four.

ToStateOne ( ) : void

Transfer tool state to ToolState.One.

ToStateThree ( ) : void

Transfer tool state to ToolState.Three.

ToStateTwo ( ) : void

Transfer tool state to ToolState.Two.

Method Details

Finalize() public méthode

Finalize edited shape.
public Finalize ( BaseShape shape ) : void
shape Core2D.Shape.BaseShape The shape object.
Résultat void

LeftDown() public méthode

Handle mouse left button down events.
public LeftDown ( double x, double y ) : void
x double The X coordinate of point.
y double The Y coordinate of point.
Résultat void

LeftUp() public méthode

Handle mouse left button up events.
public LeftUp ( double x, double y ) : void
x double The X coordinate of point.
y double The Y coordinate of point.
Résultat void

Move() public méthode

Move edited shape.
public Move ( BaseShape shape ) : void
shape Core2D.Shape.BaseShape The shape object.
Résultat void

Move() public méthode

Handle mouse move events.
public Move ( double x, double y ) : void
x double The X coordinate of point.
y double The Y coordinate of point.
Résultat void

Remove() public méthode

Remove edited shape.
public Remove ( ) : void
Résultat void

RightDown() public méthode

Handle mouse right button down events.
public RightDown ( double x, double y ) : void
x double The X coordinate of point.
y double The Y coordinate of point.
Résultat void

RightUp() public méthode

Handle mouse right button up events.
public RightUp ( double x, double y ) : void
x double The X coordinate of point.
y double The Y coordinate of point.
Résultat void

ToStateFour() public méthode

Transfer tool state to ToolState.Four.
public ToStateFour ( ) : void
Résultat void

ToStateOne() public méthode

Transfer tool state to ToolState.One.
public ToStateOne ( ) : void
Résultat void

ToStateThree() public méthode

Transfer tool state to ToolState.Three.
public ToStateThree ( ) : void
Résultat void

ToStateTwo() public méthode

Transfer tool state to ToolState.Two.
public ToStateTwo ( ) : void
Résultat void