IFocusDisplayObject
public interface
feathers.core.IFocusDisplayObject
Description
A component that can receive focus.
See also:
feathers.core.IFocusManager
API overview
Constructor
Attributes
Public attributes
| focusManager: IFocusManager |
The current focus manager for this component |
| isFocusEnabled: Boolean |
Determines if this component can receive focus |
| nextTabFocus: IFocusDisplayObject |
The next object that will receive focus when the tab key is pressed |
| previousTabFocus: IFocusDisplayObject |
The previous object that will receive focus when the tab key is pressed while holding shift |
Constructor
IFocusDisplayObject ()
Attributes
base: DisplayObject
Inherited from IFeathersDisplayObject
read-only
See also:
loom2d.display.DisplayObject#base
blendMode: String
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#blendMode
bounds: Rectangle
Inherited from IFeathersDisplayObject
read-only
See also:
loom2d.display.DisplayObject#bounds
hasVisibleArea: Boolean
Inherited from IFeathersDisplayObject
read-only
nextTabFocus: IFocusDisplayObject
The next object that will receive focus when the tab key is pressed.
If null, defaults to the next child on the display list.
parent: DisplayObjectContainer
Inherited from IFeathersDisplayObject
read-only
See also:
loom2d.display.DisplayObject#parent
previousTabFocus: IFocusDisplayObject
The previous object that will receive focus when the tab key is
pressed while holding shift. If null, defaults to the
previous child on the display list.
root: DisplayObject
Inherited from IFeathersDisplayObject
read-only
See also:
loom2d.display.DisplayObject#root
rotation: Number
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#rotation
stage: Stage
Inherited from IFeathersDisplayObject
read-only
See also:
loom2d.display.DisplayObject#stage
touchable: Boolean
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#touchable
transformationMatrix: Matrix
Inherited from IFeathersDisplayObject
read-only
useHandCursor: Boolean
Inherited from IFeathersDisplayObject
visible: Boolean
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#visible
Functions
addEventListener
(
type: String
,
listener: Function
): Void
Inherited from IFeathersEventDispatcher
See also:
loom2d.events.EventDispatcher#addEventListener()
Parameters
| type: String | |
| listener: Function |
dispatchEvent
(
event: Event
): Void
Inherited from IFeathersEventDispatcher
See also:
loom2d.events.EventDispatcher#dispatchEvent()
Parameters
| event: Event |
dispatchEventWith
(
type: String
,
bubbles: Boolean
= false
,
data: Object
= null
): Void
Inherited from IFeathersEventDispatcher
See also:
loom2d.events.EventDispatcher#dispatchEventWith()
Parameters
| type: String | |
| bubbles: Boolean = false | |
| data: Object = null |
dispose
(): Void
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#dispose()
getBounds
(
targetSpace: DisplayObject
,
resultRect: Rectangle
= null
): Rectangle
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#getBounds()
Parameters
| targetSpace: DisplayObject | |
| resultRect: Rectangle = null |
getTransformationMatrix
(
targetSpace: DisplayObject
,
resultMatrix: Matrix
= null
): Matrix
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#getTransformationMatrix()
Parameters
| targetSpace: DisplayObject | |
| resultMatrix: Matrix = null |
globalToLocal
(
globalPoint: Point
): Point
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#globalToLocal()
Parameters
| globalPoint: Point |
hasEventListener
(
type: String
): Boolean
Inherited from IFeathersEventDispatcher
See also:
loom2d.events.EventDispatcher#hasEventListener()
Parameters
| type: String |
hideFocus (): Void
If the visual indicator of focus has been displayed by
showFocus(), call this function to hide it.
Important: This function will not clear focus
from the display object if it has focus. To clear focus from the
display object, you should set the focus property on
the focus manager to null or another display object.
See also:
#showFocus()
feathers.core.IFocusManager#focus
hitTest
(
localPoint: Point
,
forTouch: Boolean
= false
): DisplayObject
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#hitTest()
Parameters
| localPoint: Point | |
| forTouch: Boolean = false |
localToGlobal
(
localPoint: Point
): Point
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#localToGlobal()
Parameters
| localPoint: Point |
removeEventListener
(
type: String
,
listener: Function
): Void
Inherited from IFeathersEventDispatcher
See also:
loom2d.events.EventDispatcher#removeEventListener()
Parameters
| type: String | |
| listener: Function |
removeEventListeners
(
type: String
= null
): Void
Inherited from IFeathersEventDispatcher
See also:
loom2d.events.EventDispatcher#removeEventListeners()
Parameters
| type: String = null |
removeFromParent
(
dispose: Boolean
= false
): Void
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#removeFromParent()
Parameters
| dispose: Boolean = false |
render
(): Void
Inherited from IFeathersDisplayObject
See also:
loom2d.display.DisplayObject#render()
showFocus (): Void
If the object has focus, an additional visual indicator may optionally be displayed to highlight the object. Calling this function may have no effect. It's merely a suggestion to the object.
Important: This function will not give focus to
the display object if it doesn't have focus. To give focus to the
display object, you should set the focus property on
the focus manager.
object.focusManager.focus = object;
See also:
#hideFocus()
feathers.core.IFocusManager#focus