C# Class Paint.PlaybackToolbox

Playback toolbox.
Inheritance: ToolBox, IPlaybackToolBox
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint

Public Methods

Method Description
PlaybackToolbox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System

Initializes a new instance of the Paint.PlaybackToolbox class.

SetPlayButtonDisabled ( ) : void

Disables the playback button

SetPlayButtonPaused ( ) : void

Sets the playback button to signify we are currently paused

Protected Methods

Method Description
AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Creates all the buttons and adds them to our list of controls

OnPauseSelected ( EventArgs e ) : void

Raises the pause selected event.

OnPlaySelected ( EventArgs e ) : void

Raises the play selected event.

OnRestartSelected ( EventArgs e ) : void

Raises the restart selected event.

Private Methods

Method Description
AddPlayPauseButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the play pause button.

AddRestartButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the restart button.

CreateProgressBar ( ToolboxLayoutDefinitionPlaybackToolsProgressBar progressBar ) : PlaybackProgressBar

Creates the progress bar.

CreateSpeedGauge ( ToolboxLayoutDefinitionPlaybackToolsSpeedGauge speedGauge ) : SpeedGauge

Creates the speed gauge.

CreateTools ( ToolboxLayoutDefinition toolboxLayoutDefinition ) : void

Creates all our tools.

Method Details

AddButton() protected method

Creates all the buttons and adds them to our list of controls
protected AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void
buttonLayout Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton
return void

OnPauseSelected() protected method

Raises the pause selected event.
protected OnPauseSelected ( EventArgs e ) : void
e System.EventArgs EventArgs for Pause Event
return void

OnPlaySelected() protected method

Raises the play selected event.
protected OnPlaySelected ( EventArgs e ) : void
e System.EventArgs EventArgs for Play Event
return void

OnRestartSelected() protected method

Raises the restart selected event.
protected OnRestartSelected ( EventArgs e ) : void
e System.EventArgs EventArgs for Restart Event
return void

PlaybackToolbox() public method

Initializes a new instance of the Paint.PlaybackToolbox class.
public PlaybackToolbox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System
toolboxLayoutDefinition Paint.ToolboxLayout.ToolboxLayoutDefinition
graphicsDisplay IGraphicsDisplay
scale int
return System

SetPlayButtonDisabled() public method

Disables the playback button
public SetPlayButtonDisabled ( ) : void
return void

SetPlayButtonPaused() public method

Sets the playback button to signify we are currently paused
public SetPlayButtonPaused ( ) : void
return void