C# Class Paint.CanvasPlaybackApp

Canvas playback app.
Inheritance: BaseGame
Datei anzeigen Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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

Private Methods

Method Description
HandleInput ( ) : void

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

Method Details

CanvasPlaybackApp() public method

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.
return System

CreateToolbox() protected method

Creates the toolbox.
protected CreateToolbox ( ) : IToolBox
return IToolBox

ForcePause() public method

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

OnExiting() protected method

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

Update() protected method

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 ///
return void