C# 클래스 Paint.CanvasPlaybackApp

Canvas playback app.
상속: BaseGame
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

공개 메소드들

메소드 설명
CanvasPlaybackApp ( ICanvasPlayback canvasPlayback, ImageStateData imageStateData, ToolboxLayoutDefinition toolboxLayoutDefinition, int deviceScale ) : System

Initializes a new instance of the Paint.CanvasPlaybackApp class.

ForcePause ( ) : void

Forces the playback to pause.

보호된 메소드들

메소드 설명
CreateToolbox ( ) : IToolBox

Creates the toolbox.

OnExiting ( object sender, EventArgs args ) : void

Raises the exiting event.

Update ( GameTime gameTime ) : void

Called often. Allows us to handle any user input (gestures on screen) and/or game time related work - e.g. moving an animation character based on elapsed time since last called etc

비공개 메소드들

메소드 설명
HandleInput ( ) : void

Handles any user input. Collect all gestures made since the last 'update' - check if these need to be handled

메소드 상세

CanvasPlaybackApp() 공개 메소드

Initializes a new instance of the Paint.CanvasPlaybackApp class.
public CanvasPlaybackApp ( ICanvasPlayback canvasPlayback, ImageStateData imageStateData, ToolboxLayoutDefinition toolboxLayoutDefinition, int deviceScale ) : System
canvasPlayback ICanvasPlayback Canvas Playback data
imageStateData ImageStateData ImageSaveData
toolboxLayoutDefinition Paint.ToolboxLayout.ToolboxLayoutDefinition Layout of the toolbox
deviceScale int The device scale/resolution. 1 = normal. 2 = retina.
리턴 System

CreateToolbox() 보호된 메소드

Creates the toolbox.
protected CreateToolbox ( ) : IToolBox
리턴 IToolBox

ForcePause() 공개 메소드

Forces the playback to pause.
public ForcePause ( ) : void
리턴 void

OnExiting() 보호된 메소드

Raises the exiting event.
protected OnExiting ( object sender, EventArgs args ) : void
sender object Sender.
args System.EventArgs Arguments.
리턴 void

Update() 보호된 메소드

Called often. Allows us to handle any user input (gestures on screen) and/or game time related work - e.g. moving an animation character based on elapsed time since last called etc
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime /// Allows you to monitor time passed since last draw ///
리턴 void