C# Class TouchCanvas.CanvasView

显示文件 Open project: xamarin/monotouch-samples

Public Methods

Method Description
CanvasView ( IntPtr handle ) : System
Clear ( ) : void
Draw ( CGRect rect ) : void
DrawTouches ( NSSet touches, UIEvent evt ) : void
EndTouches ( NSSet touches, bool cancel ) : void
UpdateEstimatedPropertiesForTouches ( NSSet touches ) : void

Private Methods

Method Description
AddActiveLineForTouch ( UITouch touch ) : TouchCanvas.Line
AddPointsOfType ( PointType type, UITouch touches, TouchCanvas.Line line ) : CGRect
CanvasView ( CGRect frame ) : System
CanvasView ( NSCoder coder ) : System
CommitLine ( TouchCanvas.Line line ) : void
FinishLine ( TouchCanvas.Line line ) : void
SetFrozenImageNeedsUpdate ( ) : void

Method Details

CanvasView() public method

public CanvasView ( IntPtr handle ) : System
handle IntPtr
return System

Clear() public method

public Clear ( ) : void
return void

Draw() public method

public Draw ( CGRect rect ) : void
rect CGRect
return void

DrawTouches() public method

public DrawTouches ( NSSet touches, UIEvent evt ) : void
touches NSSet
evt UIEvent
return void

EndTouches() public method

public EndTouches ( NSSet touches, bool cancel ) : void
touches NSSet
cancel bool
return void

UpdateEstimatedPropertiesForTouches() public method

public UpdateEstimatedPropertiesForTouches ( NSSet touches ) : void
touches NSSet
return void