Button

indigoextras.ui.Button
See theButton companion object
final case class Button(buttonAssets: ButtonAssets, bounds: Rectangle, depth: Depth, 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(point: Point): Button
def moveBy(x: Int, y: Int): Button
def moveTo(point: Point): Button
def moveTo(x: Int, y: Int): Button
def resize(newSize: Size): Button
def resize(x: Int, y: Int): Button
def update(mouse: Mouse): Outcome[Button]
def withBounds(newBounds: Rectangle): Button
def withButtonAssets(newButtonAssets: ButtonAssets): Button
def withDepth(newDepth: Depth): Button
def withUpActions(actions: GlobalEvent*): Button
def withUpActions(actions: => Batch[GlobalEvent]): Button

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product