Packagefeathers.core
Interfacepublic interface IFeathersControl extends IFeathersDisplayObject, IFeathersEventDispatcher
Implementors FeathersControl

Basic interface for Feathers UI controls. A Feathers control must also be a Starling display object.



Public Properties
 PropertyDefined By
 Inheritedalpha : Number
IFeathersDisplayObject
 Inheritedbase : DisplayObject
[read-only]
IFeathersDisplayObject
 InheritedblendMode : String
IFeathersDisplayObject
 Inheritedbounds : Rectangle
[read-only]
IFeathersDisplayObject
 Inheritedfilter : FragmentFilter
IFeathersDisplayObject
 InheritedhasVisibleArea : Boolean
[read-only]
IFeathersDisplayObject
 Inheritedheight : Number
IFeathersDisplayObject
  isEnabled : Boolean
Indicates whether the control is interactive or not.
IFeathersControl
  isInitialized : Boolean
[read-only] Determines if the component has been initialized yet.
IFeathersControl
  maxHeight : Number
The maximum recommended height to be used for self-measurement and, optionally, by any code that is resizing this component.
IFeathersControl
  maxWidth : Number
The maximum recommended width to be used for self-measurement and, optionally, by any code that is resizing this component.
IFeathersControl
  minHeight : Number
The minimum recommended height to be used for self-measurement and, optionally, by any code that is resizing this component.
IFeathersControl
  minWidth : Number
The minimum recommended width to be used for self-measurement and, optionally, by any code that is resizing this component.
IFeathersControl
 Inheritedname : String
IFeathersDisplayObject
  nameList : TokenList
[read-only] Contains a list of all "names" assigned to this control.
IFeathersControl
 Inheritedparent : DisplayObjectContainer
[read-only]
IFeathersDisplayObject
 InheritedpivotX : Number
IFeathersDisplayObject
 InheritedpivotY : Number
IFeathersDisplayObject
 Inheritedroot : DisplayObject
[read-only]
IFeathersDisplayObject
 Inheritedrotation : Number
IFeathersDisplayObject
 InheritedscaleX : Number
IFeathersDisplayObject
 InheritedscaleY : Number
IFeathersDisplayObject
 InheritedskewX : Number
IFeathersDisplayObject
 InheritedskewY : Number
IFeathersDisplayObject
 Inheritedstage : Stage
[read-only]
IFeathersDisplayObject
 Inheritedtouchable : Boolean
IFeathersDisplayObject
 InheritedtransformationMatrix : Matrix
[read-only]
IFeathersDisplayObject
 InheriteduseHandCursor : Boolean
IFeathersDisplayObject
 Inheritedvisible : Boolean
IFeathersDisplayObject
 Inheritedwidth : Number
IFeathersDisplayObject
 Inheritedx : Number
IFeathersDisplayObject
 Inheritedy : Number
IFeathersDisplayObject
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function):void
IFeathersEventDispatcher
 Inherited
dispatchEvent(event:Event):void
IFeathersEventDispatcher
 Inherited
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
IFeathersEventDispatcher
 Inherited
dispose():void
IFeathersDisplayObject
 Inherited
getBounds(targetSpace:DisplayObject, resultRect:Rectangle = null):Rectangle
IFeathersDisplayObject
 Inherited
getTransformationMatrix(targetSpace:DisplayObject, resultMatrix:Matrix = null):Matrix
IFeathersDisplayObject
 Inherited
globalToLocal(globalPoint:Point, resultPoint:Point = null):Point
IFeathersDisplayObject
 Inherited
hasEventListener(type:String):Boolean
IFeathersEventDispatcher
 Inherited
hitTest(localPoint:Point, forTouch:Boolean = false):DisplayObject
IFeathersDisplayObject
 Inherited
localToGlobal(localPoint:Point, resultPoint:Point = null):Point
IFeathersDisplayObject
 Inherited
removeEventListener(type:String, listener:Function):void
IFeathersEventDispatcher
 Inherited
removeEventListeners(type:String = null):void
IFeathersEventDispatcher
 Inherited
removeFromParent(dispose:Boolean = false):void
IFeathersDisplayObject
 Inherited
render(support:RenderSupport, parentAlpha:Number):void
IFeathersDisplayObject
  
setSize(width:Number, height:Number):void
Sets both the width and the height of the control.
IFeathersControl
  
validate():void
Immediately validates the control, which triggers a redraw, if one is pending.
IFeathersControl
Events
 Event Summary Defined By
  Dispatched after the control has been initialized, but before it has drawn for the first time.IFeathersControl
  Dispatched when the width or height of the control changes.IFeathersControl
Property Detail
isEnabledproperty
isEnabled:Boolean

Indicates whether the control is interactive or not.


Implementation
    public function get isEnabled():Boolean
    public function set isEnabled(value:Boolean):void
isInitializedproperty 
isInitialized:Boolean  [read-only]

Determines if the component has been initialized yet. The initialize() function is called one time only, when the Feathers UI control is added to the display list for the first time.


Implementation
    public function get isInitialized():Boolean
maxHeightproperty 
maxHeight:Number

The maximum recommended height to be used for self-measurement and, optionally, by any code that is resizing this component. This value is not strictly enforced in all cases. An explicit height value that is larger than maxHeight may be set and will not be affected by the maximum.


Implementation
    public function get maxHeight():Number
    public function set maxHeight(value:Number):void
maxWidthproperty 
maxWidth:Number

The maximum recommended width to be used for self-measurement and, optionally, by any code that is resizing this component. This value is not strictly enforced in all cases. An explicit width value that is larger than maxWidth may be set and will not be affected by the maximum.


Implementation
    public function get maxWidth():Number
    public function set maxWidth(value:Number):void
minHeightproperty 
minHeight:Number

The minimum recommended height to be used for self-measurement and, optionally, by any code that is resizing this component. This value is not strictly enforced in all cases. An explicit height value that is smaller than minHeight may be set and will not be affected by the minimum.


Implementation
    public function get minHeight():Number
    public function set minHeight(value:Number):void
minWidthproperty 
minWidth:Number

The minimum recommended width to be used for self-measurement and, optionally, by any code that is resizing this component. This value is not strictly enforced in all cases. An explicit width value that is smaller than minWidth may be set and will not be affected by the minimum.


Implementation
    public function get minWidth():Number
    public function set minWidth(value:Number):void
nameListproperty 
nameList:TokenList  [read-only]

Contains a list of all "names" assigned to this control. Names are like classes in CSS selectors. They are a non-unique identifier that can differentiate multiple styles of the same type of UI control. A single control may have many names, and many controls can share a single name. Names may be added, removed, or toggled on the nameList.


Implementation
    public function get nameList():TokenList
Method Detail
setSize()method
public function setSize(width:Number, height:Number):void

Sets both the width and the height of the control.

Parameters

width:Number
 
height:Number

validate()method 
public function validate():void

Immediately validates the control, which triggers a redraw, if one is pending. Validation exists to postpone redrawing a component until the last possible moment before rendering so that multiple properties can be changed at once without requiring a full redraw after each change.

A component cannot validate if it does not have access to the stage and if it hasn't initialized yet. A component initializes the first time that it has been added to the stage.

Event Detail
initialize Event
Event Object Type: starling.events.Event
Event.type property = feathers.events.FeathersEventType.INITIALIZE

Dispatched after the control has been initialized, but before it has drawn for the first time. Typically, the component's children will have been created by this point.

The FeathersEventType.INITIALIZE event type is meant to be used when an IFeathersControl has finished running its initialize() function.
resize Event  
Event Object Type: starling.events.Event
Event.type property = feathers.events.FeathersEventType.RESIZE

Dispatched when the width or height of the control changes.

The FeathersEventType.RESIZE event type is meant to be used when an IFeathersControl has resized.