Packagecc.cote.feathers.softkeyboard
Classpublic class KeyRow
InheritanceKeyRow Inheritance starling.display.Sprite

The KeyRow class contains all the keys in a single keyboard row. It basically acts as a DisplayObjectContainer with a few extra properties.

See also

cc.cote.feathers.softkeyboard.Key


Public Properties
 PropertyDefined By
  keys : Vector.<Key>
A vector of all Key objects in the KeyRow.
KeyRow
  length : uint
[read-only] Number of keys in the key row.
KeyRow
  relativeWidth : Number = 0
Relative width of the KeyRow in arbitraty units.
KeyRow
Public Methods
 MethodDefined By
  
KeyRow(keys:Vector.<Key>, gap:Number)
Creates a new KeyRow object.
KeyRow
Property Detail
keysproperty
public var keys:Vector.<Key>

A vector of all Key objects in the KeyRow.

lengthproperty 
length:uint  [read-only]

Number of keys in the key row.


Implementation
    public function get length():uint
relativeWidthproperty 
public var relativeWidth:Number = 0

Relative width of the KeyRow in arbitraty units.

Constructor Detail
KeyRow()Constructor
public function KeyRow(keys:Vector.<Key>, gap:Number)

Creates a new KeyRow object.

Parameters
keys:Vector.<Key> — Vector of Key objects to add to the KeyRow.
 
gap:Number — Gap to leave between keys (in arbitraty units).