| Package | feathers.textures |
| Class | public final class Scale3Textures |
| Inheritance | Scale3Textures Object |
Scale3Image.
See also
| 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 | ||
| Method | Defined By | ||
|---|---|---|---|
Scale3Textures(texture:Texture, firstRegionSize:Number, secondRegionSize:Number, direction:String)
Constructor. | Scale3Textures | ||
| 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 | ||
| direction | property |
direction:String [read-only] The direction of the sub-texture layout.
public function get direction():StringSee also
| first | property |
first:Texture [read-only] The texture for the first region.
public function get first():Texture| firstRegionSize | property |
firstRegionSize:Number [read-only] The size of the first region, in pixels.
public function get firstRegionSize():Number| second | property |
second:Texture [read-only] The texture for the second region.
public function get second():Texture| secondRegionSize | property |
secondRegionSize:Number [read-only] The size of the second region, in pixels.
public function get secondRegionSize():Number| texture | property |
texture:Texture [read-only] The original texture.
public function get texture():Texture| third | property |
third:Texture [read-only] The texture for the third region.
public function get third():Texture| Scale3Textures | () | Constructor |
public function Scale3Textures(texture:Texture, firstRegionSize:Number, secondRegionSize:Number, direction:String)Constructor.
Parameterstexture:Texture | |
firstRegionSize:Number | |
secondRegionSize:Number | |
direction:String (default = NaN) |
| DIRECTION_HORIZONTAL | Constant |
public static const DIRECTION_HORIZONTAL:String = horizontalIf 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 = verticalIf the direction is vertical, the layout will start on the top and continue to the bottom.