FeatureRef

class FeatureRef<T : Any, out F : Feature<T>>(val id: String, val parent: FeatureGroup<T>)

Constructors

Link copied to clipboard
constructor(id: String, parent: FeatureGroup<T>)

Properties

Link copied to clipboard
val <T : Any, F : Feature<T>> FeatureRef<T, F>.attributes: Attributes
Link copied to clipboard
val id: String
Link copied to clipboard

Functions

Link copied to clipboard
fun <T : Any, F : Feature<T>> FeatureRef<T, F>.alpha(alpha: Float): FeatureRef<T, F>
Link copied to clipboard
fun <T : Any, F : Feature<T>> FeatureRef<T, F>.color(color: Color): FeatureRef<T, F>
Link copied to clipboard
fun <T : Any, F : DraggableFeature<T>> FeatureRef<T, F>.draggable(constraint: (T) -> T? = null, listener: PointerEvent.(from: ViewPoint<T>, to: ViewPoint<T>) -> Unit? = null): FeatureRef<T, F>

Add drag to this feature

Link copied to clipboard
fun <T : Any, F : Feature<T>, V> FeatureRef<T, F>.modifyAttribute(key: Attribute<V>, value: V): FeatureRef<T, F>
Link copied to clipboard
fun <T : Any, F : Feature<T>> FeatureRef<T, F>.modifyAttributes(modification: AttributesBuilder<F>.() -> Unit): FeatureRef<T, F>
Link copied to clipboard
fun <T : Any, F : DomainFeature<T>> FeatureRef<T, F>.onClick(onClick: PointerEvent.(click: ViewPoint<T>) -> Unit): FeatureRef<T, F>
fun <T : Any, F : DomainFeature<T>> FeatureRef<T, F>.onClick(pointerMatcher: PointerMatcher, keyboardModifiers: PointerKeyboardModifiers.() -> Boolean = { true }, onClick: PointerEvent.(click: ViewPoint<T>) -> Unit): FeatureRef<T, F>
Link copied to clipboard
fun <T : Any, F : DraggableFeature<T>> FeatureRef<T, F>.onDrag(listener: PointerEvent.(from: ViewPoint<T>, to: ViewPoint<T>) -> Unit): FeatureRef<T, F>
Link copied to clipboard
fun <T : Any, F : DomainFeature<T>> FeatureRef<T, F>.onHover(onClick: PointerEvent.(move: ViewPoint<T>) -> Unit): FeatureRef<T, F>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any, F : Feature<T>> FeatureRef<T, F>.resolve(): F
Link copied to clipboard
Link copied to clipboard