|
Gnash
0.8.11dev
|
Static text definition tag. More...
#include <DefineTextTag.h>
Public Member Functions | |
| void | display (Renderer &renderer, const Transform &xform) const |
| Draw the string. More... | |
| const SWFRect & | bounds () const |
| bool | extractStaticText (std::vector< const TextRecord * > &to, size_t &size) const |
| Extract static text from TextRecords. More... | |
| virtual DisplayObject * | createDisplayObject (Global_as &gl, DisplayObject *parent) const |
| Create a DisplayObject with the given parent. More... | |
Public Member Functions inherited from gnash::SWF::DefinitionTag | |
| virtual | ~DefinitionTag () |
| virtual DSOTEXPORT void | executeState (MovieClip *m, DisplayList &) const |
| Executing a DefinitionTag adds its id to list of known characters. More... | |
| std::uint16_t | id () const |
| The immutable id of the DefinitionTag. More... | |
Public Member Functions inherited from gnash::SWF::ControlTag | |
| virtual | ~ControlTag () |
| virtual void | executeActions (MovieClip *, DisplayList &) const |
| Execute Action tags. More... | |
Public Member Functions inherited from gnash::ref_counted | |
| ref_counted () | |
| ref_counted (const ref_counted &) | |
| void | add_ref () const |
| void | drop_ref () const |
| long | get_ref_count () const |
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. More... | |
Additional Inherited Members | |
Public Types inherited from gnash::SWF::ControlTag | |
Protected Member Functions inherited from gnash::SWF::DefinitionTag | |
| DefinitionTag (std::uint16_t id) | |
Protected Member Functions inherited from gnash::ref_counted | |
| virtual | ~ref_counted () |
Static text definition tag.
|
inline |
References createDisplayObject(), and extractStaticText().
|
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().
Referenced by bounds().
Draw the string.
References gnash::SWFMatrix::concatenate(), gnash::SWF::TextRecord::displayRecords(), and gnash::Transform::matrix.
| 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.
Referenced by bounds().
|
static |
|
friend |
DefineText2Tag::loader also constructs a DefineTextTag.
1.8.11