Class

io.youi.component.selection

Selection

Related Doc: package selection

Permalink

abstract class Selection[T] extends Container

Selection provides a rectangular selection feature for multi-selecting elements on the screen.

T

the type of elements to select

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Selection
  2. Container
  3. ContainerTheme
  4. HTMLContainer
  5. HTMLContainerTheme
  6. AbstractContainer
  7. HTMLComponent
  8. HTMLComponentTheme
  9. Component
  10. ComponentTheme
  11. Theme
  12. StringifyImplicits
  13. TaskSupport
  14. Updates
  15. Updatable
  16. AnyRef
  17. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Selection(root: Element, elements: ⇒ ListSet[T], autoStyle: Boolean = true, adjustX: ⇒ Double = window.pageXOffset, adjustY: ⇒ Double = window.pageYOffset, includeChildTargets: Boolean = false)

    Permalink

    root

    the root element to attach events to

    elements

    function to get a list of all elements to check for selection

    autoStyle

    if true defines the default styling of the outline (defaults to true)

    adjustX

    offset adjustment to properly handle for horizontal scrolling

    adjustY

    offset adjustment to properly handle for vertical scrolling

Type Members

  1. class Attribute extends AnyRef

    Permalink
    Definition Classes
    HTMLComponent

Abstract Value Members

  1. abstract def boxFor(element: T): BoundingBox

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addListener(base: Element, deferToRoot: Boolean = true, includeChildTargets: Boolean = false): SelectionListener[T]

    Permalink
  5. object aria

    Permalink
    Definition Classes
    HTMLComponent
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val background: StyleProp[Paint]

    Permalink
    Definition Classes
    ComponentTheme
  8. def changeHighlighting(highlighting: ListSet[T]): Unit

    Permalink
    Attributes
    protected
  9. def childComponents: Vector[Component]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractContainerComponent
  10. lazy val children: Var[Vector[Component]]

    Permalink
    Definition Classes
    HTMLContainerAbstractContainer
  11. def childrenChanged(removed: Vector[Component], added: Vector[Component]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractContainer
  12. lazy val classList: Var[List[String]]

    Permalink
    Definition Classes
    HTMLComponent
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def componentType: String

    Permalink

    The type of Component.

    The type of Component. This is useful for client-side introspection and logging. Each custom Component instance should represent a unique type.

    Definition Classes
    ContainerComponent
  15. def createInstance(task: Task): TaskInstance

    Permalink
    Attributes
    protected
    Definition Classes
    TaskSupport
  16. val cursor: StyleProp[Cursor]

    Permalink
    Definition Classes
    ComponentTheme
  17. object data

    Permalink
    Definition Classes
    HTMLComponent
  18. def defaultParentTheme: Theme

    Permalink
    Attributes
    protected
    Definition Classes
    ContainerHTMLContainerComponentTheme
  19. lazy val delta: Channel[Double]

    Permalink
    Definition Classes
    Updates
  20. val e: HTMLExtras[Element]

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLComponent
  21. val element: Element

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLContainerHTMLComponent
  22. val enabled: Var[Boolean]

    Permalink
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. val event: EventSupport

    Permalink

    Events functionality for monitoring and even firing events on this component.

    Events functionality for monitoring and even firing events on this component.

    Definition Classes
    HTMLComponentComponent
  26. def every(delay: FiniteDuration, until: Option[FiniteDuration] = None)(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  30. def highlightAdded(element: T): Unit

    Permalink
  31. def highlightRemoved(element: T, isSelected: Boolean): Unit

    Permalink
  32. val highlighted: Var[ListSet[T]]

    Permalink
  33. object htmlBorder

    Permalink
    Definition Classes
    HTMLComponentTheme
  34. lazy val id: Var[String]

    Permalink

    Generated unique identifier for this element.

    Generated unique identifier for this element.

    Definition Classes
    Component
  35. def init(): Unit

    Permalink

    Called automatically the first time this Component is connected to the document.

    Called automatically the first time this Component is connected to the document.

    Attributes
    protected
    Definition Classes
    AbstractContainerComponent
  36. def initialized: Boolean

    Permalink

    True if this Component's init method has been invoked.

    True if this Component's init method has been invoked.

    Definition Classes
    Component
  37. val interactive: StyleProp[Boolean]

    Permalink
    Definition Classes
    ComponentTheme
  38. def invalidateRendering(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ComponentTheme
  39. def invalidateTransform(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ComponentTheme
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. lazy val layout: Var[Layout]

    Permalink
    Definition Classes
    HTMLContainerAbstractContainer
  42. def measuredHeight: Double

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLContainerHTMLComponentComponent
  43. def measuredWidth: Double

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLContainerHTMLComponentComponent
  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. def nextFrame(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  46. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. def once(delay: FiniteDuration)(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  49. val opacity: StyleProp[Double]

    Permalink
    Definition Classes
    ComponentTheme
  50. object overflow

    Permalink
    Definition Classes
    HTMLComponentTheme
  51. object padding

    Permalink
    Definition Classes
    ComponentTheme
  52. lazy val parent: Var[Option[Component]]

    Permalink

    Parent to this element.

    Parent to this element.

    Definition Classes
    Component
  53. lazy val parentTheme: Var[Theme]

    Permalink
    Definition Classes
    Theme
  54. def pixels: Stringify[Double]

    Permalink
    Definition Classes
    StringifyImplicits
  55. lazy val pointerEvents: StyleProp[PointerEvents]

    Permalink
    Definition Classes
    HTMLComponentTheme
  56. lazy val position: HTMLComponentPosition

    Permalink

    Position information for placement of this component on the screen.

    Position information for placement of this component on the screen.

    Definition Classes
    HTMLComponentComponent
  57. def rateLimited(maxFrequency: FiniteDuration, frequency: FiniteDuration = 0.millis)(f: ⇒ Unit): LazyUpdate

    Permalink
    Definition Classes
    Updates
  58. lazy val root: Var[Option[Component]]

    Permalink
    Definition Classes
    Component
  59. val rootListener: SelectionListener[T]

    Permalink
  60. lazy val rotation: StyleProp[Double]

    Permalink
    Definition Classes
    HTMLComponentTheme
  61. def select(x1: Double, y1: Double, x2: Double, y2: Double, elements: ListSet[T]): ListSet[T]

    Permalink
  62. def selectHighlighted(toggle: Boolean): Unit

    Permalink
    Attributes
    protected
  63. val selected: Var[ListSet[T]]

    Permalink
  64. def selectionAdded(element: T): Unit

    Permalink
  65. def selectionRemoved(element: T): Unit

    Permalink
  66. object sibling

    Permalink
    Definition Classes
    Component
  67. lazy val size: HTMLComponentSize

    Permalink

    Size information for determining the dimensions of this component.

    Size information for determining the dimensions of this component.

    Definition Classes
    HTMLComponentComponent
  68. def start(task: Task): TaskInstance

    Permalink
    Definition Classes
    TaskSupport
  69. lazy val store: Store

    Permalink
    Definition Classes
    Component
  70. implicit def stringifyBoolean: Stringify[Boolean]

    Permalink
    Definition Classes
    StringifyImplicits
  71. implicit def stringifyButtonSize: Stringify[ButtonSize]

    Permalink
    Definition Classes
    StringifyImplicits
  72. implicit def stringifyButtonType: Stringify[ButtonType]

    Permalink
    Definition Classes
    StringifyImplicits
  73. implicit val stringifyColor: Stringify[Color]

    Permalink
    Definition Classes
    StringifyImplicits
  74. implicit def stringifyCursor: Stringify[Cursor]

    Permalink
    Definition Classes
    StringifyImplicits
  75. implicit def stringifyDouble: Stringify[Double]

    Permalink
    Definition Classes
    StringifyImplicits
  76. implicit def stringifyFontFamily: Stringify[FontFamily]

    Permalink
    Definition Classes
    StringifyImplicits
  77. implicit def stringifyFontWeight: Stringify[FontWeight]

    Permalink
    Definition Classes
    StringifyImplicits
  78. implicit def stringifyHTMLBorder: Stringify[HTMLBorder]

    Permalink
    Definition Classes
    StringifyImplicits
  79. implicit def stringifyInt: Stringify[Int]

    Permalink
    Definition Classes
    StringifyImplicits
  80. implicit def stringifyOverflow: Stringify[Overflow]

    Permalink
    Definition Classes
    StringifyImplicits
  81. implicit def stringifyPaint: Stringify[Paint]

    Permalink
    Definition Classes
    StringifyImplicits
  82. implicit def stringifyPointerEvents: Stringify[PointerEvents]

    Permalink
    Definition Classes
    StringifyImplicits
  83. implicit def stringifyPosition: Stringify[Position]

    Permalink
    Definition Classes
    StringifyImplicits
  84. implicit def stringifyString: Stringify[String]

    Permalink
    Definition Classes
    StringifyImplicits
  85. implicit def stringifyVisibility: Stringify[Visibility]

    Permalink
    Definition Classes
    StringifyImplicits
  86. implicit def stringifyWhiteSpace: Stringify[WhiteSpace]

    Permalink
    Definition Classes
    StringifyImplicits
  87. def style[T](name: String, default: ⇒ T, connect: Option[StyleConnect[T]], updatesTransform: Boolean = false, updatesRendering: Boolean = false, ignoreParent: Boolean = false): StyleProp[T]

    Permalink
    Attributes
    protected[io.youi]
    Definition Classes
    Theme
  88. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  89. val time: Var[Long]

    Permalink
  90. def toString(): String

    Permalink
    Definition Classes
    Component → AnyRef → Any
  91. def updatables: List[Updatable]

    Permalink

    List of Updatable instances this Component represents.

    List of Updatable instances this Component represents.

    Attributes
    protected
    Definition Classes
    Component
  92. def update(delta: Double): Unit

    Permalink
    Definition Classes
    AbstractContainerComponentUpdatesUpdatable
  93. def updateHighlighting(x1: Double, y1: Double, x2: Double, y2: Double): Unit

    Permalink
    Attributes
    protected
  94. def updateRendering(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Theme
  95. def updateTasks(): Boolean

    Permalink
    Definition Classes
    ComponentTaskSupport
  96. def updateTransform(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ComponentTheme
  97. val visibility: StyleProp[Visibility]

    Permalink
    Definition Classes
    ComponentTheme
  98. val visible: Val[Boolean]

    Permalink
    Definition Classes
    Component
  99. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. val x1: Var[Double]

    Permalink
  103. val x2: Var[Double]

    Permalink
  104. val y1: Var[Double]

    Permalink
  105. val y2: Var[Double]

    Permalink

Inherited from Container

Inherited from ContainerTheme

Inherited from HTMLContainer[Component]

Inherited from HTMLContainerTheme

Inherited from AbstractContainer[Component]

Inherited from HTMLComponent[Element]

Inherited from HTMLComponentTheme

Inherited from Component

Inherited from ComponentTheme

Inherited from Theme

Inherited from StringifyImplicits

Inherited from TaskSupport

Inherited from Updates

Inherited from Updatable

Inherited from AnyRef

Inherited from Any

Ungrouped