HitArea

indigoextras.ui.HitArea
See theHitArea companion object
final case class HitArea(area: Closed, state: ButtonState, onUp: () => Batch[GlobalEvent], onDown: () => Batch[GlobalEvent], onHoverOver: () => Batch[GlobalEvent], onHoverOut: () => Batch[GlobalEvent], onClick: () => Batch[GlobalEvent], onHoldDown: () => Batch[GlobalEvent])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def moveBy(x: Int, y: Int): HitArea
def moveBy(positionDiff: Point): HitArea
def moveTo(x: Int, y: Int): HitArea
def moveTo(newPosition: Point): HitArea
def update(mouse: Mouse): Outcome[HitArea]
def withUpActions(actions: => Batch[GlobalEvent]): HitArea

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product