HasPauseToggle

o1.gui.View.HasPauseToggle

Add this trait on a View to give it a pause toggle. You’ll still need to call togglePause on whichever event you want to pause the view (e.g., user hitting space bar).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Controls[_]

Members list

Value members

Concrete methods

override def isPaused: Boolean

Determines whether the view should be paused at the current state.

Determines whether the view should be paused at the current state.

Attributes

Definition Classes

Whether the view starts in a paused state. By default, always returns false.

Whether the view starts in a paused state. By default, always returns false.

Attributes

def togglePause(): Unit

Tells the view to pause if unpaused and vice versa.

Tells the view to pause if unpaused and vice versa.

Attributes