C# Class Core2D.Editor.Tool

Defines tool contract.
Exibir arquivo Open project: Core2D/Core2D

Public Methods

Method 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 method

Finalize edited shape.
public Finalize ( BaseShape shape ) : void
shape Core2D.Shape.BaseShape The shape object.
return void

LeftDown() public method

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.
return void

LeftUp() public method

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.
return void

Move() public method

Move edited shape.
public Move ( BaseShape shape ) : void
shape Core2D.Shape.BaseShape The shape object.
return void

Move() public method

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.
return void

Remove() public method

Remove edited shape.
public Remove ( ) : void
return void

RightDown() public method

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.
return void

RightUp() public method

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.
return void

ToStateFour() public method

Transfer tool state to ToolState.Four.
public ToStateFour ( ) : void
return void

ToStateOne() public method

Transfer tool state to ToolState.One.
public ToStateOne ( ) : void
return void

ToStateThree() public method

Transfer tool state to ToolState.Three.
public ToStateThree ( ) : void
return void

ToStateTwo() public method

Transfer tool state to ToolState.Two.
public ToStateTwo ( ) : void
return void