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 display: StyleProp[Display]

    Permalink
    Definition Classes
    ComponentTheme
  21. val e: HTMLExtras[Element]

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. 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
  27. def every(delay: FiniteDuration, until: Option[FiniteDuration] = None)(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    Updates
  28. val existing: Boolean

    Permalink
    Definition Classes
    HTMLContainerHTMLComponent
  29. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def hasParent(parent: Component): Boolean

    Permalink
    Definition Classes
    Component
  32. def hashCode(): Int

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

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

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

    Permalink
  36. object htmlBorder

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

    Permalink

    Generated unique identifier for this element.

    Generated unique identifier for this element.

    Definition Classes
    Component
  38. val includeInLayout: Var[Boolean]

    Permalink

    Defines if this component should be managed by layout managers (defaults to true)

    Defines if this component should be managed by layout managers (defaults to true)

    Definition Classes
    Component
  39. 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
  40. 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
  41. val interactive: StyleProp[Boolean]

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

    Permalink
    Definition Classes
    ComponentTheme
  43. def invalidateTransform(): Unit

    Permalink
    Definition Classes
    ComponentTheme
  44. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    HTMLContainerAbstractContainer
  46. object margin

    Permalink
    Definition Classes
    ComponentTheme
  47. def measure(s: Size): Size

    Permalink
    Attributes
    protected
    Definition Classes
    HTMLContainerHTMLComponentComponent
  48. val measuredSize: MutableSize

    Permalink
    Attributes
    protected
    Definition Classes
    Component
  49. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    ComponentTheme
  55. lazy val outline: StyleProp[HTMLBorder]

    Permalink
    Definition Classes
    HTMLComponentTheme
  56. object overflow

    Permalink
    Definition Classes
    HTMLComponentTheme
  57. object padding

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

    Permalink

    Parent to this element.

    Parent to this element.

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

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

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

    Permalink
    Definition Classes
    HTMLComponentTheme
  62. 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
  63. def rateLimited(maxFrequency: FiniteDuration, frequency: FiniteDuration = 0.millis)(f: ⇒ Unit): LazyUpdate

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

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

    Permalink
  66. lazy val rotation: StyleProp[Double]

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

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

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

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

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

    Permalink
  72. object sibling

    Permalink
    Definition Classes
    Component
  73. 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
  74. def start(task: Task): TaskInstance

    Permalink
    Definition Classes
    TaskSupport
  75. lazy val store: Store

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

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

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

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

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

    Permalink
    Definition Classes
    StringifyImplicits
  81. implicit def stringifyDisplay: Stringify[Display]

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

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

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

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

    Permalink
    Definition Classes
    StringifyImplicits
  86. implicit def stringifyInputType: Stringify[InputType]

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

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

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

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

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

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

    Permalink
    Definition Classes
    StringifyImplicits
  93. implicit def stringifyTextAlign: Stringify[TextAlign]

    Permalink
    Definition Classes
    StringifyImplicits
  94. implicit def stringifyUserSelect: Stringify[UserSelect]

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

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

    Permalink
    Definition Classes
    StringifyImplicits
  97. 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
  98. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
  100. def toString(): String

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

    Permalink

    List of Updatable instances this Component represents.

    List of Updatable instances this Component represents.

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

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

    Permalink
    Attributes
    protected
  104. def updateRendering(): Unit

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

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

    Permalink
    Definition Classes
    AbstractContainerComponentTheme
  107. lazy val userSelect: StyleProp[UserSelect]

    Permalink
    Definition Classes
    HTMLComponentTheme
  108. val visibility: StyleProp[Visibility]

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

    Permalink

    Value determining the visibility of this element based on multiple criteria

    Value determining the visibility of this element based on multiple criteria

    Definition Classes
    HTMLComponentComponent
  110. val visibleChildren: Val[Vector[Component]]

    Permalink
    Definition Classes
    AbstractContainer
  111. final def wait(): Unit

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

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

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

    Permalink
  115. val x2: Var[Double]

    Permalink
  116. val y1: Var[Double]

    Permalink
  117. 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