WorldEvents

indigo.platform.events.WorldEvents
See theWorldEvents companion object
final class WorldEvents

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

final case class Handlers(canvas: Canvas, resizePolicy: ResizePolicy, onClick: MouseEvent => Unit, onWheel: WheelEvent => Unit, onKeyDown: KeyboardEvent => Unit, onKeyUp: KeyboardEvent => Unit, onContextMenu: Option[MouseEvent => Unit], onPointerEnter: PointerEvent => Unit, onPointerLeave: PointerEvent => Unit, onPointerDown: PointerEvent => Unit, onPointerUp: PointerEvent => Unit, onPointerMove: PointerEvent => Unit, onPointerCancel: PointerEvent => Unit, onBlur: FocusEvent => Unit, onFocus: FocusEvent => Unit, onOnline: Event => Unit, onOffline: Event => Unit, resizeObserver: ResizeObserver)

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Handlers.type

Value members

Concrete methods

def absoluteCoordsX(relativeX: Double): Int
def absoluteCoordsY(relativeY: Double): Int
def init(canvas: Canvas, resizePolicy: ResizePolicy, magnification: Int, disableContextMenu: Boolean, globalEventStream: GlobalEventStream): Unit
def kill(): Unit

Extensions

Extensions

extension (e: FocusEvent)
def isWindowTarget: Boolean
extension (e: MouseEvent)

The property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.

The property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.

Attributes

def movementPosition(magnification: Int): Point
def position(magnification: Int, canvas: Canvas): Point

Attributes

Returns

position relative to magnification level

extension (e: PointerEvent)
def height(magnification: Int): Int
def width(magnification: Int): Int