doodle.reactor
package doodle.reactor
Members list
Packages
package doodle.reactor.examples
Type members
Classlikes
A reactor is a simple way to express an interactive program. It allows us to write programs in terms of some initial state and transformations of that state in response to inputs and clock ticks.
A reactor is a simple way to express an interactive program. It allows us to write programs in terms of some initial state and transformations of that state in response to inputs and clock ticks.
This is the basic interface. See Reactor for a more user friendly implementation.
It is based on the same abstraction in Pyret.
Attributes
- Companion
- object
- Source
- BaseReactor.scala
- Supertypes
- Known subtypes
-
class Reactor[A]
object BaseReactor
Attributes
- Companion
- trait
- Source
- BaseReactor.scala
- Supertypes
- Self type
-
BaseReactor.type
final case class Reactor[A](initial: A, onMouseClickHandler: (Point, A) => A, onMouseMoveHandler: (Point, A) => A, onTickHandler: A => A, tickRate: FiniteDuration, renderHandler: A => Image, stopHandler: A => Boolean) extends BaseReactor[A]
A Reactor that has reasonable defaults and a simple builder style for creating more complicated behaviour.
A Reactor that has reasonable defaults and a simple builder style for creating more complicated behaviour.
Attributes
- Companion
- object
- Source
- Reactor.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait BaseReactor[A]class Objecttrait Matchableclass AnyShow all
object Reactor
Attributes
- Companion
- class
- Source
- Reactor.scala
- Supertypes
- Self type
-
Reactor.type
In this article