View

object View

This object holds miscellaneous utilities (traits, constants, etc.) that can be used in combinations with Views. These utilities are generic to the o1.gui.mutable and o1.gui.immutable View variants.

Note to students: You’re unlikely to need this for anything in O1.

class Object
trait Matchable
class Any
View.type

Type members

Classlikes

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).

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).

This companion object provides predefines instances of class RefreshPolicy.

This companion object provides predefines instances of class RefreshPolicy.

Note to students: You’re unlikely to need this for anything in O1.

Companion:
class

A supertype for the different policies for updating the image visible in a View in response to a change in the model.

A supertype for the different policies for updating the image visible in a View in response to a change in the model.

Note to students: You’re unlikely to need this for anything in O1.

Companion:
object

Value members

Concrete fields

The number of clock ticks (24) that a View aims to generate per clock tick, unless otherwise specified.

The number of clock ticks (24) that a View aims to generate per clock tick, unless otherwise specified.

Exports

Defined exports

final val Always: Always.type
Exported from RefreshPolicy
Exported from RefreshPolicy