All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scaffold.libs_as.starling.text.ITextCompositor.as Maven / Gradle / Ivy

// =================================================================================================
//
//	Starling Framework
//	Copyright 2011-2015 Gamua. All Rights Reserved.
//
//	This program is free software. You can redistribute and/or modify it
//	in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================

package starling.text
{
    import starling.display.MeshBatch;

    /** A text compositor arranges letters for Starling's TextField. */
    public interface ITextCompositor
    {
        /** Draws the given text into a MeshBatch, using the supplied format and options. */
        function fillMeshBatch(meshBatch:MeshBatch, width:Number, height:Number, text:String,
                               format:TextFormat, options:TextOptions=null):void;

        /** Clears the MeshBatch (filled by the same class) and disposes any resources that
         *  are no longer needed. */
        function clearMeshBatch(meshBatch:MeshBatch):void;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy