SelectionBox

class SelectionBox(anchorPoint: Point, movingPoint: Point)

Allows basic multi-element box selections.

Parameters

anchorPoint

the starting and unchanging Point of the selection

Constructors

Link copied to clipboard
fun SelectionBox(anchorPoint: Point = Point(0, 0), movingPoint: Point = anchorPoint)

Functions

Link copied to clipboard
fun close()

Closes this SelectionBox.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val anchorPoint: Point
Link copied to clipboard
var closed: Boolean = false

Returns whether the SelectionBox has been closed.

Link copied to clipboard
val rectangle: Rectangle

The rectangle representing the box. If the rectangle's dimensions are (0, 0), the rectangle is to be considered non-existing.