GODPAPER | All Packages | All Classes | Index | Frames No Frames |
Scale3Textures

Package | feathers.textures
Class | public final class Scale3Textures
Inheritance | Scale3Textures Object

A set of three textures used by `Scale3Image`.

See also

org.josht.starling.display.Scale3Image

Public Properties

| Property | Defined By
--- | --- | ---
|  | direction : String [read-only] The direction of the sub-texture layout. | Scale3Textures
|  | first : Texture [read-only] The texture for the first region. | Scale3Textures
|  | firstRegionSize : Number [read-only] The size of the first region, in pixels. | Scale3Textures
|  | second : Texture [read-only] The texture for the second region. | Scale3Textures
|  | secondRegionSize : Number [read-only] The size of the second region, in pixels. | Scale3Textures
|  | texture : Texture [read-only] The original texture. | Scale3Textures
|  | third : Texture [read-only] The texture for the third region. | Scale3Textures

Public Methods

| Method | Defined By
--- | --- | ---
|  | Scale3Textures(texture:Texture, firstRegionSize:Number, secondRegionSize:Number, direction:String) Constructor. | Scale3Textures

Public Constants

| Constant | Defined By
--- | --- | ---
|  | DIRECTION_HORIZONTAL : String = horizontal [static] If the direction is horizontal, the layout will start on the left and continue to the right. | Scale3Textures
|  | DIRECTION_VERTICAL : String = vertical [static] If the direction is vertical, the layout will start on the top and continue to the bottom. | Scale3Textures

Property Detail

direction | property

`direction:String` [read-only]

The direction of the sub-texture layout.

Implementation
`public function get direction():String`

See also

DIRECTION_HORIZONTAL
DIRECTION_VERTICAL

first | property |

`first:Texture` [read-only]

The texture for the first region.

Implementation
`public function get first():Texture`

firstRegionSize | property |

`firstRegionSize:Number` [read-only]

The size of the first region, in pixels.

Implementation
`public function get firstRegionSize():Number`

second | property |

`second:Texture` [read-only]

The texture for the second region.

Implementation
`public function get second():Texture`

secondRegionSize | property |

`secondRegionSize:Number` [read-only]

The size of the second region, in pixels.

Implementation
`public function get secondRegionSize():Number`

texture | property |

`texture:Texture` [read-only]

The original texture.

Implementation
`public function get texture():Texture`

third | property |

`third:Texture` [read-only]

The texture for the third region.

Implementation
`public function get third():Texture`
Constructor Detail

Scale3Textures | () | Constructor

`public function Scale3Textures(texture:Texture, firstRegionSize:Number, secondRegionSize:Number, direction:String)`

Constructor.

Parameters

| `texture:Texture`
| `firstRegionSize:Number`
| `secondRegionSize:Number`
| `direction:String` (default = `NaN`)``

Constant Detail

DIRECTION_HORIZONTAL | Constant

`public static const DIRECTION_HORIZONTAL:String = horizontal`

If the direction is horizontal, the layout will start on the left and continue to the right.

DIRECTION_VERTICAL | Constant |

`public static const DIRECTION_VERTICAL:String = vertical`

If the direction is vertical, the layout will start on the top and continue to the bottom.

Thu Jan 16 2014, 01:11 PM +08:00