C# Class Xamarin.Canvas.Android.Canvas

Inheritance: Android.Views.ViewGroup, ICanvas, ICanvasEngine
显示文件 Open project: Clancey/Canvas Class Usage Examples

Public Methods

Method Description
Canvas ( Android.Content.Context context ) : System
Destroy ( ) : void
FocusNode ( Node node ) : void
ImageSize ( string file ) : Size
InputNodeAt ( Node rootNode, double x, double y ) : Node
RenderScene ( Node rootNode ) : void
SetBackground ( System.Color color ) : void
SetCursor ( CursorType type ) : void
ShowMenu ( Node node, int rootX, int rootY, uint button ) : void
TextExtents ( string text, TextOptions options ) : Size

Protected Methods

Method Description
OnLayout ( bool changed, int l, int t, int r, int b ) : void

Private Methods

Method Description
AddChild ( Node node ) : void
RemoveChild ( Node node ) : void
ViewForNode ( Node node ) : NodeView

Method Details

Canvas() public method

public Canvas ( Android.Content.Context context ) : System
context Android.Content.Context
return System

Destroy() public method

public Destroy ( ) : void
return void

FocusNode() public method

public FocusNode ( Node node ) : void
node Node
return void

ImageSize() public method

public ImageSize ( string file ) : Size
file string
return Size

InputNodeAt() public method

public InputNodeAt ( Node rootNode, double x, double y ) : Node
rootNode Node
x double
y double
return Node

OnLayout() protected method

protected OnLayout ( bool changed, int l, int t, int r, int b ) : void
changed bool
l int
t int
r int
b int
return void

RenderScene() public method

public RenderScene ( Node rootNode ) : void
rootNode Node
return void

SetBackground() public method

public SetBackground ( System.Color color ) : void
color System.Color
return void

SetCursor() public method

public SetCursor ( CursorType type ) : void
type CursorType
return void

ShowMenu() public method

public ShowMenu ( Node node, int rootX, int rootY, uint button ) : void
node Node
rootX int
rootY int
button uint
return void

TextExtents() public method

public TextExtents ( string text, TextOptions options ) : Size
text string
options TextOptions
return Size