import BitmapChar from "./BitmapChar"; import Vector from "openfl/Vector"; declare namespace starling.text { /** * A helper class referencing a BitmapChar and properties about its location and size. * * * *
This class is used and returned by BitmapFont.arrangeChars().
* * It's typically only needed for advanced changes to Starling's default text composition
* * mechanisms.
This class supports object pooling. All instances returned by the methods
* * instanceFromPool and vectorFromPool are returned to the
* * respective pool when calling rechargePool.
rechargePool.
*/
static instanceFromPool(char: BitmapChar): BitmapCharLocation;
/**
* Returns an empty Vector for "BitmapCharLocation" instances from the pool.
* * All vectors will be returned to the pool when calling rechargePool.
*/
static vectorFromPool(): Vector