Package | de.popforge.fui.core |
Class | public class FuiComponent |
Inheritance | FuiComponent ![]() |
Subclasses | Knob, Label |
3 * 16
and a height of 1 * 16
.
Precalculated variables of the actual size are stored in targetWidth
and
targetHeight
.
Property | Defined by | ||
---|---|---|---|
cols : uint [write-only]
The columns of the component.
| FuiComponent | ||
rows : uint [write-only]
The rows of the component.
| FuiComponent | ||
skin : IFuiSkin
[write-only]
The skin used to render this component.
| FuiComponent | ||
tag : XML [write-only]
The XML tag that has been used to define this component.
| FuiComponent |
Property | Defined by | ||
---|---|---|---|
_cols : uint
The columns of the component in tiles.
| FuiComponent | ||
_rows : uint
The rows of the component in tiles.
| FuiComponent | ||
_tag : XML
The tag that has been used to define this component.
| FuiComponent | ||
targetHeight : uint
The height in pixels (
_rows * tileSize ). | FuiComponent | ||
targetWidth : uint
The width in pixels (
_cols * tileSize ). | FuiComponent | ||
tileSize : uint
The tile size used to render this component.
| FuiComponent |
Method | Defined by | ||
---|---|---|---|
dispose():void
Removes the components chidlren and all its internal references.
| FuiComponent | ||
toString():String
Creates and returns the string representation of the current object.
| FuiComponent |
Method | Defined by | ||
---|---|---|---|
build():void
Renders the component by creating all the necessary display objects.
| FuiComponent | ||
debugBounds():void
Draws the bounds of the component given by tile size and components size in tiles.
| FuiComponent | ||
maskComponent():void
Masks the component using the exact width and height calculated
using the tile size and components size in tiles.
| FuiComponent |
_cols | property |
protected var _cols:uint
The columns of the component in tiles.
cols | property |
cols:uint
[write-only]The columns of the component.
Implementation public function set cols(value:uint):void
_rows | property |
protected var _rows:uint
The rows of the component in tiles.
rows | property |
rows:uint
[write-only]The rows of the component.
Implementation public function set rows(value:uint):void
skin | property |
skin:IFuiSkin
[write-only]
The skin used to render this component.
A call to render()
is made if you set a skin for a component.
public function set skin(value:IFuiSkin):void
_tag | property |
protected var _tag:XML
The tag that has been used to define this component.
tag | property |
tag:XML
[write-only]The XML tag that has been used to define this component.
Implementation public function set tag(value:XML):void
targetHeight | property |
protected var targetHeight:uint
The height in pixels (_rows * tileSize
).
targetWidth | property |
protected var targetWidth:uint
The width in pixels (_cols * tileSize
).
tileSize | property |
protected var tileSize:uint
The tile size used to render this component.
build | () | method |
protected function build():void
Renders the component by creating all the necessary display objects.
— If this method is not overriden.
|
debugBounds | () | method |
protected function debugBounds():void
Draws the bounds of the component given by tile size and components size in tiles.
dispose | () | method |
public function dispose():void
Removes the components chidlren and all its internal references.
maskComponent | () | method |
protected function maskComponent():void
Masks the component using the exact width and height calculated using the tile size and components size in tiles.
toString | () | method |
public override function toString():String
Creates and returns the string representation of the current object.
ReturnsString — The string representation of the current object.
|