Go to the documentation of this file.
19 #ifndef GNASH_SWF_DEFINETEXTTAG_H
20 #define GNASH_SWF_DEFINETEXTTAG_H
30 class movie_definition;
SWFMatrix readSWFMatrix(SWFStream &in)
Read a SWFMatrix from input stream.
Definition: TypesParser.cpp:49
Static text definition tag.
Definition: DefineTextTag.h:43
static void displayRecords(Renderer &renderer, const Transform &xform, const TextRecords &records, bool embedded=true)
Render the given glyph records.
Definition: TextRecord.cpp:163
@ DEFINETEXT
Definition: SWF.h:43
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
Base class for render handlers.
Definition: Renderer.h:189
@ m
Definition: GnashKey.h:159
std::vector< TextRecord > TextRecords
Definition: TextRecord.h:51
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Definition: DefineTextTag.cpp:83
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
bool extractStaticText(std::vector< const TextRecord * > &to, size_t &size) const
Extract static text from TextRecords.
Definition: DefineTextTag.cpp:66
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:45
@ t
Definition: GnashKey.h:166
@ DEFINETEXT2
Definition: SWF.h:63
@ r
Definition: GnashKey.h:164
Parse a DefineText2Tag.
Definition: DefineTextTag.h:99
std::uint16_t id() const
The immutable id of the DefinitionTag.
Definition: DefinitionTag.h:76
Accumulate the number of glyphs in a TextRecord.
Definition: TextRecord.h:75
Static text fields, SWF-defined with read-only text.
Definition: StaticText.h:44
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
Definition: SWFMatrix.h:54
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:50
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
const SWFRect & bounds() const
Definition: DefineTextTag.h:52
void concatenate(const SWFMatrix &m)
Concatenate m's transform onto ours.
Definition: SWFMatrix.cpp:148
void display(Renderer &renderer, const Transform &xform) const
Draw the string.
Definition: DefineTextTag.cpp:126
std::uint8_t read_u8()
Read a aligned unsigned 8-bit value from the stream.
Definition: SWFStream.cpp:319
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:169
SWF stream wrapper class.
Definition: SWFStream.h:59
SWFRect readRect(SWFStream &in)
Read a bit-packed rectangle from an SWF stream.
Definition: TypesParser.cpp:130
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag.
Definition: SWFStream.cpp:50
@ SWF
Definition: GnashKey.h:331
virtual DisplayObject * createDisplayObject(Global_as &gl, DisplayObject *parent) const
Create a DisplayObject with the given parent.
Definition: DefineTextTag.cpp:59
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Definition: DefineTextTag.cpp:42
Store a TextRecord.
Definition: TextRecord.h:48
Return a pointer to a type.
Definition: GnashAlgorithm.h:32