C# Класс Paint.CanvasPlaybackApp

Canvas playback app.
Наследование: BaseGame
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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