C# Class PurplePen.RectangleSelectMode

Inheritance: BaseMode
Show file Open project: petergolde/PurplePen

Public Methods

Method Description
CanCancel ( ) : bool
EndMode ( ) : void
GetHighlights ( Pane pane ) : IMapViewerHighlight[]
GetMouseCursor ( Pane pane, PointF location, float pixelSize ) : Cursor
LeftButtonDown ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : MapViewer.DragAction
LeftButtonDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
LeftButtonEndDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
RectangleSelectMode ( Controller controller, RectangleF rect, IDisposable disposeOnEndMode ) : System

Private Methods

Method Description
HitTestDraggable ( PointF location, float pixelSize ) : bool
HitTestHandle ( PointF location, float pixelSize, PointF &handleLocation, Cursor &handleCursor ) : bool

Method Details

CanCancel() public method

public CanCancel ( ) : bool
return bool

EndMode() public method

public EndMode ( ) : void
return void

GetHighlights() public method

public GetHighlights ( Pane pane ) : IMapViewerHighlight[]
pane Pane
return IMapViewerHighlight[]

GetMouseCursor() public method

public GetMouseCursor ( Pane pane, PointF location, float pixelSize ) : Cursor
pane Pane
location PointF
pixelSize float
return Cursor

LeftButtonDown() public method

public LeftButtonDown ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : MapViewer.DragAction
pane Pane
location PointF
pixelSize float
displayUpdateNeeded bool
return MapViewer.DragAction

LeftButtonDrag() public method

public LeftButtonDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location PointF
locationStart PointF
pixelSize float
displayUpdateNeeded bool
return void

LeftButtonEndDrag() public method

public LeftButtonEndDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location PointF
locationStart PointF
pixelSize float
displayUpdateNeeded bool
return void

RectangleSelectMode() public method

public RectangleSelectMode ( Controller controller, RectangleF rect, IDisposable disposeOnEndMode ) : System
controller Controller
rect RectangleF
disposeOnEndMode IDisposable
return System