Public Member Functions | Static Public Member Functions | Friends

gnash::SWF::DefineTextTag Class Reference

StaticText DisplayObject. More...

#include <DefineTextTag.h>

Inheritance diagram for gnash::SWF::DefineTextTag:
Inheritance graph
[legend]
Collaboration diagram for gnash::SWF::DefineTextTag:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void display (Renderer &renderer, const Transform &xform) const
 Draw the string.
const SWFRectbounds () const
bool extractStaticText (std::vector< const TextRecord * > &to, size_t &size) const
 Extract static text from TextRecords.
virtual DisplayObjectcreateDisplayObject (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.

Detailed Description

StaticText DisplayObject.

This is either read from SWF stream or (hopefully) created with scripting


Member Function Documentation

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.

Parameters:
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().

void gnash::SWF::DefineTextTag::display ( Renderer renderer,
const Transform xform 
) const
bool gnash::SWF::DefineTextTag::extractStaticText ( std::vector< const TextRecord * > &  to,
size_t &  size 
) const

Extract static text from TextRecords.

Parameters:
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]

Friends And Related Function Documentation

friend class DefineText2Tag [friend]

The documentation for this class was generated from the following files: