C# 클래스 Xwt.Canvas

상속: Xwt.Widget
파일 보기 프로젝트 열기: TheBrainTech/xwt 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddChild ( Xwt.Widget w ) : void

Adds a child widget.

The widget is placed in the canvas area, at the position (0,0) using the preferred size of the widget

AddChild ( Xwt.Widget widget, Xwt.Rectangle bounds ) : void

Adds a child widget.

The widget is placed in the canvas area, in the specified coordinates and using the specified size

AddChild ( Xwt.Widget w, double x, double y ) : void

Adds a child widget.

The widget is placed in the canvas area, at the specified coordinates, using the preferred size of the widget

Canvas ( ) : System
Clear ( ) : void

Removes all children of the Canvas

GetChildBounds ( Xwt.Widget widget ) : Xwt.Rectangle

Gets the bounds of a child widget

QueueDraw ( ) : void

Invalidates and forces the redraw of the whole area of the widget

QueueDraw ( Xwt.Rectangle rect ) : void

Invalidates and forces the redraw of a rectangular area of the widget

RemoveChild ( Xwt.Widget widget ) : void

Removes a child widget

SetChildBounds ( Xwt.Widget widget, Xwt.Rectangle bounds ) : void

Sets the position and size of a child widget

보호된 메소드들

메소드 설명
CreateBackendHost ( ) : BackendHost
Dispose ( bool disposing ) : void
OnDraw ( Xwt.Drawing.Context ctx, Xwt.Rectangle dirtyRect ) : void

Called when the widget needs to be redrawn

메소드 상세

AddChild() 공개 메소드

Adds a child widget.
The widget is placed in the canvas area, at the position (0,0) using the preferred size of the widget
public AddChild ( Xwt.Widget w ) : void
w Xwt.Widget /// The widget ///
리턴 void

AddChild() 공개 메소드

Adds a child widget.
The widget is placed in the canvas area, in the specified coordinates and using the specified size
public AddChild ( Xwt.Widget widget, Xwt.Rectangle bounds ) : void
widget Xwt.Widget /// The widget ///
bounds Xwt.Rectangle /// Position and size of the child widget, in container coordinates ///
리턴 void

AddChild() 공개 메소드

Adds a child widget.
The widget is placed in the canvas area, at the specified coordinates, using the preferred size of the widget
public AddChild ( Xwt.Widget w, double x, double y ) : void
w Xwt.Widget /// The widget ///
x double /// X coordinate ///
y double /// Y coordinate ///
리턴 void

Canvas() 공개 메소드

public Canvas ( ) : System
리턴 System

Clear() 공개 메소드

Removes all children of the Canvas
public Clear ( ) : void
리턴 void

CreateBackendHost() 보호된 메소드

protected CreateBackendHost ( ) : BackendHost
리턴 BackendHost

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetChildBounds() 공개 메소드

Gets the bounds of a child widget
If the widget is not a child of this canvas
public GetChildBounds ( Xwt.Widget widget ) : Xwt.Rectangle
widget Xwt.Widget /// The widget ///
리턴 Xwt.Rectangle

OnDraw() 보호된 메소드

Called when the widget needs to be redrawn
protected OnDraw ( Xwt.Drawing.Context ctx, Xwt.Rectangle dirtyRect ) : void
ctx Xwt.Drawing.Context /// Drawing context ///
dirtyRect Xwt.Rectangle
리턴 void

QueueDraw() 공개 메소드

Invalidates and forces the redraw of the whole area of the widget
public QueueDraw ( ) : void
리턴 void

QueueDraw() 공개 메소드

Invalidates and forces the redraw of a rectangular area of the widget
public QueueDraw ( Xwt.Rectangle rect ) : void
rect Xwt.Rectangle /// Area to invalidate ///
리턴 void

RemoveChild() 공개 메소드

Removes a child widget
If the widget is not a child of this canvas
public RemoveChild ( Xwt.Widget widget ) : void
widget Xwt.Widget /// The widget to remove. The widget must have been previously added using AddChild. ///
리턴 void

SetChildBounds() 공개 메소드

Sets the position and size of a child widget
If the widget is not a child of this canvas
public SetChildBounds ( Xwt.Widget widget, Xwt.Rectangle bounds ) : void
widget Xwt.Widget /// The child widget. It must have been added using the AddChild method. ///
bounds Xwt.Rectangle /// New bounds, in container coordinates ///
리턴 void