C# 클래스 Flood.GUI.Controls.Canvas

Canvas control. It should be the root parent for all other controls.
상속: Control
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

공개 메소드들

메소드 설명
AddDelayedDelete ( Control control ) : void

Adds given control to the delete queue and detaches it from canvas. Don't call from Dispose, it modifies child list.

Canvas ( Skins skin ) : System

Initializes a new instance of the Canvas class.

Dispose ( ) : void
GetCanvas ( ) : Canvas
Input_Character ( char chr ) : bool

Handles keyboard events. Called from Input subsystems.

Input_Key ( Keys key, bool down ) : bool

Handles keyboard events. Called from Input subsystems.

Input_MouseButton ( int button, bool down ) : bool

Handles mouse button events. Called from Input subsystems.

Input_MouseMoved ( int x, int y, int dx, int dy ) : bool

Handles mouse movement events. Called from Input subsystems.

Input_MouseWheel ( int val ) : bool

Handles the mouse wheel events. Called from Input subsystems.

Redraw ( ) : void

Re-renders the control, invalidates cached texture.

RenderCanvas ( ) : void

Renders the canvas. Call in your rendering loop.

보호된 메소드들

메소드 설명
Initialize ( ) : void

Additional initialization (which is sometimes not appropriate in the constructor)

OnBoundsChanged ( Rectangle oldBounds ) : void

Handler invoked when control's bounds change.

Render ( Skins skin ) : void

Renders the control using specified skin.

비공개 메소드들

메소드 설명
ProcessDelayedDeletes ( ) : void
Update ( ) : void

Processes input and layout. Also purges delayed delete queue.

메소드 상세

AddDelayedDelete() 공개 메소드

Adds given control to the delete queue and detaches it from canvas. Don't call from Dispose, it modifies child list.
public AddDelayedDelete ( Control control ) : void
control Control Control to delete.
리턴 void

Canvas() 공개 메소드

Initializes a new instance of the Canvas class.
public Canvas ( Skins skin ) : System
skin Skins Skin to use.
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetCanvas() 공개 메소드

public GetCanvas ( ) : Canvas
리턴 Canvas

Initialize() 보호된 메소드

Additional initialization (which is sometimes not appropriate in the constructor)
protected Initialize ( ) : void
리턴 void

Input_Character() 공개 메소드

Handles keyboard events. Called from Input subsystems.
public Input_Character ( char chr ) : bool
chr char
리턴 bool

Input_Key() 공개 메소드

Handles keyboard events. Called from Input subsystems.
public Input_Key ( Keys key, bool down ) : bool
key Keys
down bool
리턴 bool

Input_MouseButton() 공개 메소드

Handles mouse button events. Called from Input subsystems.
public Input_MouseButton ( int button, bool down ) : bool
button int
down bool
리턴 bool

Input_MouseMoved() 공개 메소드

Handles mouse movement events. Called from Input subsystems.
public Input_MouseMoved ( int x, int y, int dx, int dy ) : bool
x int
y int
dx int
dy int
리턴 bool

Input_MouseWheel() 공개 메소드

Handles the mouse wheel events. Called from Input subsystems.
public Input_MouseWheel ( int val ) : bool
val int
리턴 bool

OnBoundsChanged() 보호된 메소드

Handler invoked when control's bounds change.
protected OnBoundsChanged ( Rectangle oldBounds ) : void
oldBounds Rectangle Old bounds.
리턴 void

Redraw() 공개 메소드

Re-renders the control, invalidates cached texture.
public Redraw ( ) : void
리턴 void

Render() 보호된 메소드

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
리턴 void

RenderCanvas() 공개 메소드

Renders the canvas. Call in your rendering loop.
public RenderCanvas ( ) : void
리턴 void