Gnash
0.8.10
|
Static text definition tag. More...
#include <DefineTextTag.h>
Public Member Functions | |
void | display (Renderer &renderer, const Transform &xform) const |
Draw the string. | |
const SWFRect & | bounds () const |
bool | extractStaticText (std::vector< const TextRecord * > &to, size_t &size) const |
Extract static text from TextRecords. | |
virtual DisplayObject * | createDisplayObject (Global_as &gl, DisplayObject *parent) const |
Create a DisplayObject with the given parent. | |
Static Public Member Functions | |
static void | loader (SWFStream &in, TagType tag, movie_definition &m, const RunResources &r) |
Friends | |
class | DefineText2Tag |
DefineText2Tag::loader also constructs a DefineTextTag. |
Static text definition tag.
const SWFRect& gnash::SWF::DefineTextTag::bounds | ( | ) | const [inline] |
DisplayObject * gnash::SWF::DefineTextTag::createDisplayObject | ( | Global_as & | gl, |
DisplayObject * | parent | ||
) | const [virtual] |
Create a DisplayObject with the given parent.
This function will determine the correct prototype and associated object using the passed global.
gl | The global object used to set prototype and associated object. Calling this function creates a new DisplayObject from the DefinitionTag and adds it as a child of the specified parent DisplayObject. |
Implements gnash::SWF::DefinitionTag.
References gnash::getRoot().
Draw the string.
References gnash::Transform::matrix, gnash::SWFMatrix::concatenate(), and gnash::SWF::TextRecord::displayRecords().
bool gnash::SWF::DefineTextTag::extractStaticText | ( | std::vector< const TextRecord * > & | to, |
size_t & | size | ||
) | const |
Extract static text from TextRecords.
to | Will be filled with pointers to TextRecords if any are present |
size | Will contain the number of DisplayObjects in this StaticText definition. |
Insert pointers to all our TextRecords into to.
Count the number of DisplayObjects in this definition's text records.
void gnash::SWF::DefineTextTag::loader | ( | SWFStream & | in, |
TagType | tag, | ||
movie_definition & | m, | ||
const RunResources & | r | ||
) | [static] |
friend class DefineText2Tag [friend] |
DefineText2Tag::loader also constructs a DefineTextTag.