Link Search Menu Expand Document

Sprite_Clickable.d overview


Table of contents


utils

Sprite_Clickable (class)

// Sprite_Clickable // // The sprite class with click handling functions.

Signature

export declare class Sprite_Clickable<T>

update (method)

Signature

update(): void

processTouch (method)

Signature

processTouch(): void

isPressed (method)

Signature

isPressed(): boolean

isClickEnabled (method)

Signature

isClickEnabled(): boolean

isBeingTouched (method)

Signature

isBeingTouched(): boolean

hitTest (method)

Signature

hitTest(x: number, y: number): boolean

onMouseEnter (method)

Signature

onMouseEnter(): void

onMouseExit (method)

Signature

onMouseExit(): void

onPress (method)

Signature

onPress(): void

onClick (method)

Signature

onClick(): void

_pressed (property)

Signature

_pressed: boolean

_hovered (property)

Signature

_hovered: boolean