phina.js.d.ts
Preparing search index...
phina
display
DisplayScene
Interface DisplayScene
interface
DisplayScene
{
awake
:
boolean
;
backgroundColor
:
string
;
canvas
:
phina
.
graphics
.
Canvas
;
children
:
phina
.
app
.
Element
[]
;
draggable
:
phina
.
accessory
.
Draggable
;
flickable
:
phina
.
accessory
.
Flickable
;
gridX
:
phina
.
util
.
Grid
;
gridY
:
phina
.
util
.
Grid
;
height
:
number
;
interactive
:
boolean
;
parent
:
phina
.
app
.
Element
|
null
;
physical
:
phina
.
accessory
.
Physical
;
renderer
:
phina
.
display
.
CanvasRenderer
;
tweener
:
phina
.
accessory
.
Tweener
;
width
:
number
;
addChild
(
child
:
phina
.
app
.
Element
)
:
phina
.
app
.
Element
;
addChildAt
(
child
:
phina
.
app
.
Element
,
index
:
number
)
:
phina
.
app
.
Element
;
addChildTo
(
parent
:
phina
.
app
.
Element
)
:
this
;
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
attach
(
accessory
:
phina
.
accessory
.
Accessory
)
:
this
;
clear
(
type
:
string
)
:
this
;
clearEventListener
(
type
:
string
)
:
this
;
detach
(
accessory
:
phina
.
accessory
.
Accessory
)
:
this
;
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
;
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
;
exit
(
naxtLabel
?:
string
,
nextArguments
?:
object
)
:
this
;
fire
(
e
:
{
type
:
string
}
)
:
this
;
flare
(
type
:
string
,
param
?:
object
)
:
this
;
fromJson
(
json
:
object
)
:
this
;
getChildAt
(
index
:
number
)
:
phina
.
app
.
Element
;
getChildByName
(
name
:
string
)
:
phina
.
app
.
Element
;
getChildIndex
(
child
:
phina
.
app
.
Element
)
:
number
;
getParent
()
:
void
|
phina
.
app
.
Element
;
getRoot
()
:
void
|
phina
.
app
.
Element
;
has
(
type
:
string
)
:
boolean
;
hasEventListener
(
type
:
string
)
:
boolean
;
hitTest
()
:
boolean
;
isAwake
()
:
boolean
;
off
(
type
:
string
,
listener
:
Function
)
:
this
;
on
(
type
:
string
,
listener
:
Function
)
:
this
;
one
(
type
:
string
,
listener
:
Function
)
:
this
;
remove
()
:
void
|
phina
.
display
.
DisplayScene
;
removeChild
(
child
:
phina
.
app
.
Element
)
:
phina
.
app
.
Element
;
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
setInteractive
(
flag
:
boolean
)
:
void
;
sleep
()
:
this
;
toJson
()
:
object
;
update
?
(
app
:
phina
.
display
.
DomApp
)
:
void
;
wakeUp
()
:
this
;
}
Hierarchy (
View Summary
)
phina
.
app
.
Scene
DisplayScene
CanvasScene
Index
Properties
awake
background
Color
canvas
children
draggable
flickable
grid
X
grid
Y
height
interactive
parent
physical
renderer
tweener
width
Methods
add
Child
add
Child
At
add
Child
To
add
Event
Listener
attach
clear
clear
Event
Listener
detach
dispatch
Event
dispatch
Event
By
Type
exit
fire
flare
from
Json
get
Child
At
get
Child
By
Name
get
Child
Index
get
Parent
get
Root
has
has
Event
Listener
hit
Test
is
Awake
off
on
one
remove
remove
Child
remove
Event
Listener
set
Interactive
sleep
to
Json
update?
wake
Up
Properties
awake
awake
:
boolean
background
Color
backgroundColor
:
string
canvas
canvas
:
phina
.
graphics
.
Canvas
children
children
:
phina
.
app
.
Element
[]
Readonly
draggable
draggable
:
phina
.
accessory
.
Draggable
Readonly
flickable
flickable
:
phina
.
accessory
.
Flickable
grid
X
gridX
:
phina
.
util
.
Grid
grid
Y
gridY
:
phina
.
util
.
Grid
height
height
:
number
interactive
interactive
:
boolean
parent
parent
:
phina
.
app
.
Element
|
null
Readonly
physical
physical
:
phina
.
accessory
.
Physical
renderer
renderer
:
phina
.
display
.
CanvasRenderer
Readonly
tweener
tweener
:
phina
.
accessory
.
Tweener
width
width
:
number
Methods
add
Child
addChild
(
child
:
phina
.
app
.
Element
)
:
phina
.
app
.
Element
Parameters
child
:
phina
.
app
.
Element
Returns
phina
.
app
.
Element
add
Child
At
addChildAt
(
child
:
phina
.
app
.
Element
,
index
:
number
)
:
phina
.
app
.
Element
Parameters
child
:
phina
.
app
.
Element
index
:
number
Returns
phina
.
app
.
Element
add
Child
To
addChildTo
(
parent
:
phina
.
app
.
Element
)
:
this
Parameters
parent
:
phina
.
app
.
Element
Returns
this
add
Event
Listener
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
attach
attach
(
accessory
:
phina
.
accessory
.
Accessory
)
:
this
Parameters
accessory
:
phina
.
accessory
.
Accessory
Returns
this
clear
clear
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
clear
Event
Listener
clearEventListener
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
detach
detach
(
accessory
:
phina
.
accessory
.
Accessory
)
:
this
Parameters
accessory
:
phina
.
accessory
.
Accessory
Returns
this
dispatch
Event
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
dispatch
Event
By
Type
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
Parameters
type
:
string
param
:
object
Returns
this
exit
exit
(
naxtLabel
?:
string
,
nextArguments
?:
object
)
:
this
Parameters
Optional
naxtLabel
:
string
Optional
nextArguments
:
object
Returns
this
fire
fire
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
flare
flare
(
type
:
string
,
param
?:
object
)
:
this
Parameters
type
:
string
Optional
param
:
object
Returns
this
from
Json
fromJson
(
json
:
object
)
:
this
Parameters
json
:
object
Returns
this
get
Child
At
getChildAt
(
index
:
number
)
:
phina
.
app
.
Element
Parameters
index
:
number
Returns
phina
.
app
.
Element
get
Child
By
Name
getChildByName
(
name
:
string
)
:
phina
.
app
.
Element
Parameters
name
:
string
Returns
phina
.
app
.
Element
get
Child
Index
getChildIndex
(
child
:
phina
.
app
.
Element
)
:
number
Parameters
child
:
phina
.
app
.
Element
Returns
number
get
Parent
getParent
()
:
void
|
phina
.
app
.
Element
Returns
void
|
phina
.
app
.
Element
get
Root
getRoot
()
:
void
|
phina
.
app
.
Element
Returns
void
|
phina
.
app
.
Element
has
has
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
has
Event
Listener
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
hit
Test
hitTest
()
:
boolean
Returns
boolean
is
Awake
isAwake
()
:
boolean
Returns
boolean
off
off
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
on
on
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
one
one
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
remove
remove
()
:
void
|
phina
.
display
.
DisplayScene
Returns
void
|
phina
.
display
.
DisplayScene
remove
Child
removeChild
(
child
:
phina
.
app
.
Element
)
:
phina
.
app
.
Element
Parameters
child
:
phina
.
app
.
Element
Returns
phina
.
app
.
Element
remove
Event
Listener
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
set
Interactive
setInteractive
(
flag
:
boolean
)
:
void
Parameters
flag
:
boolean
Returns
void
sleep
sleep
()
:
this
Returns
this
to
Json
toJson
()
:
object
Returns
object
Optional
update
update
?
(
app
:
phina
.
display
.
DomApp
)
:
void
Parameters
app
:
phina
.
display
.
DomApp
Returns
void
wake
Up
wakeUp
()
:
this
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
awake
background
Color
canvas
children
draggable
flickable
grid
X
grid
Y
height
interactive
parent
physical
renderer
tweener
width
Methods
add
Child
add
Child
At
add
Child
To
add
Event
Listener
attach
clear
clear
Event
Listener
detach
dispatch
Event
dispatch
Event
By
Type
exit
fire
flare
from
Json
get
Child
At
get
Child
By
Name
get
Child
Index
get
Parent
get
Root
has
has
Event
Listener
hit
Test
is
Awake
off
on
one
remove
remove
Child
remove
Event
Listener
set
Interactive
sleep
to
Json
update
wake
Up
phina.js.d.ts
Loading...