IFocusDisplayObject

public interface
feathers.core.IFocusDisplayObject

Description

A component that can receive focus.

See also:
feathers.core.IFocusManager

API overview

Constructor

IFocusDisplayObject ()

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

Functions

Public functions

hideFocus (): Void

If the visual indicator of focus has been displayed by showFocus(), call this function to hide it

showFocus (): Void

If the object has focus, an additional visual indicator may optionally be displayed to highlight the object

Constructor

IFocusDisplayObject ()

Attributes

bounds: Rectangle
Inherited from IFeathersDisplayObject

read-only

See also:
loom2d.display.DisplayObject#bounds

focusManager: IFocusManager

The current focus manager for this component.

hasVisibleArea: Boolean
Inherited from IFeathersDisplayObject

read-only

See also:
loom2d.display.DisplayObject#hasVisibleArea

isFocusEnabled: Boolean

Determines if this component can receive focus.

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.

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.

stage: Stage
Inherited from IFeathersDisplayObject

read-only

See also:
loom2d.display.DisplayObject#stage

transformationMatrix: Matrix
Inherited from IFeathersDisplayObject

read-only

See also:
loom2d.display.DisplayObject#transformationMatrix

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


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


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



: