semagrams.bindings

APIs related to event handling via bindings

Attributes

Members list

Type members

Classlikes

trait Action extends Described

A trait for actions which perform some effect on the Semagram. Actions are paired with EventHooks in Bindings, and can use the data extracted from the event in the Binding.

A trait for actions which perform some effect on the Semagram. Actions are paired with EventHooks in Bindings, and can use the data extracted from the event in the Binding.

Attributes

Companion
object
Supertypes
trait Described
class Object
trait Matchable
class Any
object Action

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Action.type
case class AddAtMouse(sort: SortId) extends PureAction

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PureAction
trait Described
class Object
trait Matchable
class Any
Show all
trait Binding[Model]

A pair of a compatible EventHook and Action. As each of these have descriptions, an automatic help text can be generated for the binding.

A pair of a compatible EventHook and Action. As each of these have descriptions, an automatic help text can be generated for the binding.

Attributes

Supertypes
class Object
trait Matchable
class Any
case class ClickOnPartHook(button: MouseButton, modifiers: Set[KeyModifier]) extends EventHook[Part]

An EventHook for click events on parts.

An EventHook for click events on parts.

Value parameters

button

the mouse button that we are listening for

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait EventHook[Part]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait EventHook[A]

A trait for filters on the event stream, picking out events that are relevant to a particular Action and extracting data of type A from them.

A trait for filters on the event stream, picking out events that are relevant to a particular Action and extracting data of type A from them.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class KeyDownHook(key: String) extends EventHook[Unit]

An EventHook for keydown events.

An EventHook for keydown events.

Value parameters

key

the key that we are listening for

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait EventHook[Unit]
class Object
trait Matchable
class Any
Show all
trait PureAction extends Described

Attributes

Supertypes
trait Described
class Object
trait Matchable
class Any
Known subtypes
class AddAtMouse