Sprite
Extends
Sprite
Type parameters
• T extends Application
= Application
Implements
Constructors
new Sprite()
new Sprite<
T
>(texture
?):Sprite
<T
>
Parameters
• texture?: Texture
<Resource
>
Returns
Sprite
<T
>
Overrides
PIXISprite.constructor
Source
Properties
editable
editable:
boolean
=true
Source
__dill_pixel_top_level_class
static
__dill_pixel_top_level_class:boolean
=true
Source
Accessors
add
get
add():Add
Returns
Source
app
get
app():T
Returns
T
Source
focusPosition
get
focusPosition():Point
set
focusPosition(value
):void
Parameters
• value: Point
Returns
Point
Source
focusSize
get
focusSize():Point
set
focusSize(value
):void
Parameters
• value: Point
Returns
Point
Source
focusable
get
focusable():boolean
set
focusable(value
):void
Parameters
• value: boolean
Returns
boolean
Source
make
get
make(): typeofMake
Returns
typeof Make
Source
Methods
getFocusPosition()
getFocusPosition():
Point
Gets the position in global coordinate space that the focus should be centred around.
Returns
Point
The position that the focus should be centred around.
Implementation of
Source
getFocusSize()
getFocusSize():
IPoint
Gets the size of the area in global coordinate space that the focus should surround.
Returns
IPoint
The size of the area that the focus should surround.
Implementation of
Source
isFocusable()
isFocusable():
boolean
Returns
boolean
true if this focusable can be focused Defaults to this.interactive && this.worldVisible
Implementation of
Source
onFocusActivated()
onFocusActivated():
void
Called when this Focusable is focussed and then activated.
Returns
void
Implementation of
Source
onFocusBegin()
onFocusBegin():
void
Called when this Focusable is focussed.
Returns
void
Implementation of
Source
onFocusEnd()
onFocusEnd():
void
Called when this Focusable is no longer focussed.
Returns
void