reactives.extra.lenses

Members list

Type members

Classlikes

class AddLens[A](k: A)(using num: Numeric[A]) extends BijectiveLens[A, A]

A simple lens for addition

A simple lens for addition

Value parameters

k

The summand

Attributes

Supertypes
trait BijectiveLens[A, A]
trait Lens[A, A]
class Object
trait Matchable
class Any
trait BijectiveLens[M, V] extends Lens[M, V]

The base trait for all bijective lenses

The base trait for all bijective lenses

Type parameters

M

The type of the model

V

The type of the view

Attributes

Supertypes
trait Lens[M, V]
class Object
trait Matchable
class Any
Known subtypes
class AddLens[A]
class MulLens[A]
class NeutralLens[A]
class LVar[M]

LVars serve as the basis for reactive lenses. To create the root of a new LVar cluster, use the apply() function of the LVar object. Then, connect additional LVars via Lenses using the applyLens() function of an existing LVar.

LVars serve as the basis for reactive lenses. To create the root of a new LVar cluster, use the apply() function of the LVar object. Then, connect additional LVars via Lenses using the applyLens() function of an existing LVar.

Value parameters

events

Incoming events indicating a change to the LVar cluster

state

The state of the LVar

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object LVar

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
LVar.type
object Lens

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Lens.type
trait Lens[M, V]

The base type for all lenses. If possible, use BijectiveLens instead as it provides more performance and additional functionality

The base type for all lenses. If possible, use BijectiveLens instead as it provides more performance and additional functionality

Type parameters

M

the type of the model

V

the type of the view

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait BijectiveLens[M, V]
class AddLens[A]
class MulLens[A]
class NeutralLens[A]
class MulLens[A](k: A)(using frac: Fractional[A]) extends BijectiveLens[A, A]

A simple lens for multiplication

A simple lens for multiplication

Value parameters

k

The summand

Attributes

Supertypes
trait BijectiveLens[A, A]
trait Lens[A, A]
class Object
trait Matchable
class Any
class NeutralLens[A] extends BijectiveLens[A, A]

A simple lens with returns the identity

A simple lens with returns the identity

Attributes

Supertypes
trait BijectiveLens[A, A]
trait Lens[A, A]
class Object
trait Matchable
class Any
class SignalLens[M, V](signalOfLens: Signal[Lens[M, V]])

TODO: The SignalLens requires a reactive read without evaluating dependencies. As this is currently not supported by REScala, it uses .now instead!

TODO: The SignalLens requires a reactive read without evaluating dependencies. As this is currently not supported by REScala, it uses .now instead!

Value parameters

signalOfLens

A Signal of a Lens

Attributes

Supertypes
class Object
trait Matchable
class Any