Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Text Class Reference

#include </home/clem/local/src/opie/core/multimedia/opieplayer/libflash/text.h>

Inheritance diagram for Text:

Inheritance graph
[legend]
Collaboration diagram for Text:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Text (long id)
 ~Text ()
void setTextBoundary (Rect rect)
void setTextMatrix (Matrix m)
void addTextRecord (TextRecord *tr)
int execute (GraphicDevice *gd, Matrix *matrix, Cxform *cxform)
void getRegion (GraphicDevice *gd, Matrix *matrix, void *id, ScanLineFunc scan_line_func)
int doText (GraphicDevice *gd, Matrix *matrix, Cxform *cxform, ShapeAction action, void *id, ScanLineFunc scan_line_func)
void getBoundingBox (Rect *bb, DisplayListEntry *e)
TextRecordgetTextRecords ()
void suspend ()
void unsuspend ()
 Text ()
virtual ~Text ()
int OpenFile (const char *src)
int getch ()
unsigned int locate ()
void locate (unsigned int n)
bool hasrandomaccess ()
void sizes (unsigned long &_file, unsigned long &_text)
MarkupType PreferredMarkup ()
QString about ()

Private Attributes

Rect boundary
Matrix textMatrix
TextRecordtextRecords
gzFile file
unsigned long fsize

Constructor & Destructor Documentation

Text::Text long  id  ) 
 

Definition at line 29 of file text.cc.

References textRecords.

Text::~Text  ) 
 

Definition at line 34 of file text.cc.

References TextRecord::next, and textRecords.

Text::Text  )  [inline]
 

Definition at line 60 of file ZText.h.

virtual Text::~Text  )  [inline, virtual]
 

Definition at line 61 of file ZText.h.

References NULL, and unsuspend().


Member Function Documentation

QString Text::about  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 122 of file ZText.h.

void Text::addTextRecord TextRecord tr  ) 
 

Definition at line 59 of file text.cc.

References Glyph::code, TextRecord::flags, TextRecord::font, TextRecord::fontHeight, SwfFont::getGlyphCode(), TextRecord::glyphs, Glyph::index, TextRecord::nbGlyphs, TextRecord::next, textHasFont, and textRecords.

Referenced by CInputScript::ParseDefineText().

int Text::doText GraphicDevice gd,
Matrix matrix,
Cxform cxform,
ShapeAction  action,
void *  id,
ScanLineFunc  scan_line_func
 

Definition at line 127 of file text.cc.

References Matrix::a, GraphicDevice::adjust, assert, boundary, TextRecord::color, Matrix::d, GraphicDevice::drawLine(), Shape::execute(), TextRecord::flags, TextRecord::font, TextRecord::fontHeight, FRAC, g, SwfFont::getGlyph(), SwfFont::getGlyphCode(), Shape::getRegion(), Matrix::getX(), Matrix::getY(), TextRecord::glyphs, Glyph::index, isTextControl, TextRecord::next, printf, GraphicDevice::setForegroundColor(), ShapeDraw, GraphicDevice::showMore, textHasColor, textHasXOffset, textHasYOffset, textMatrix, textRecords, tr, Matrix::tx, Matrix::ty, Opie::MM::x, Glyph::xAdvance, Rect::xmax, Rect::xmin, TextRecord::xOffset, Opie::MM::y, Rect::ymax, Rect::ymin, and TextRecord::yOffset.

Referenced by execute(), and getRegion().

int Text::execute GraphicDevice gd,
Matrix matrix,
Cxform cxform
[virtual]
 

Reimplemented from Character.

Definition at line 102 of file text.cc.

References doText(), NULL, and ShapeDraw.

void Text::getBoundingBox Rect bb,
DisplayListEntry e
[virtual]
 

Reimplemented from Character.

Definition at line 115 of file text.cc.

References boundary.

int Text::getch  )  [inline, virtual]
 

Implements CExpander.

Definition at line 79 of file ZText.h.

References unsuspend().

void Text::getRegion GraphicDevice gd,
Matrix matrix,
void *  id,
ScanLineFunc  scan_line_func
[virtual]
 

Reimplemented from Character.

Definition at line 108 of file text.cc.

References doText(), and ShapeGetRegion.

TextRecord * Text::getTextRecords  ) 
 

Definition at line 121 of file text.cc.

References textRecords.

bool Text::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 100 of file ZText.h.

void Text::locate unsigned int  n  )  [inline, virtual]
 

Implements CExpander.

Definition at line 93 of file ZText.h.

References unsuspend().

unsigned int Text::locate  )  [inline, virtual]
 

Implements CExpander.

Definition at line 86 of file ZText.h.

References unsuspend().

int Text::OpenFile const char *  src  )  [inline, virtual]
 

Implements CExpander.

Definition at line 71 of file ZText.h.

References fsize, and NULL.

MarkupType Text::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 118 of file ZText.h.

References cTEXT.

void Text::setTextBoundary Rect  rect  ) 
 

Definition at line 47 of file text.cc.

References boundary.

Referenced by CInputScript::ParseDefineText().

void Text::setTextMatrix Matrix  m  ) 
 

Definition at line 53 of file text.cc.

References textMatrix.

Referenced by CInputScript::ParseDefineText().

void Text::sizes unsigned long &  _file,
unsigned long &  _text
[inline, virtual]
 

Implements CExpander.

Definition at line 101 of file ZText.h.

References Character::f, CExpander::fname, fsize, and NULL.

void Text::suspend  )  [inline]
 

Definition at line 16 of file ZText.h.

References CExpander::bSuspended, NULL, CExpander::suspos, and CExpander::sustime.

void Text::unsuspend  )  [inline]
 

Definition at line 29 of file ZText.h.

References CExpander::bSuspended, CExpander::fname, i, NULL, PROGNAME, Global::statusMessage(), CExpander::suspos, CExpander::sustime, and warning().

Referenced by getch(), locate(), and ~Text().


Member Data Documentation

Rect Text::boundary [private]
 

Definition at line 53 of file text.h.

Referenced by doText(), getBoundingBox(), and setTextBoundary().

gzFile Text::file [private]
 

Definition at line 13 of file ZText.h.

unsigned long Text::fsize [private]
 

Definition at line 14 of file ZText.h.

Referenced by OpenFile(), and sizes().

Matrix Text::textMatrix [private]
 

Definition at line 54 of file text.h.

Referenced by doText(), and setTextMatrix().

TextRecord* Text::textRecords [private]
 

Definition at line 55 of file text.h.

Referenced by addTextRecord(), doText(), getTextRecords(), Text(), and ~Text().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:39 2005 for OPIE by  doxygen 1.4.2