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

Character Class Reference

a character with rendition attributes. More...

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

Inheritance diagram for Character:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Character (ObjectType type, long tagId)
virtual ~Character ()
virtual int execute (GraphicDevice *, Matrix *, Cxform *)
virtual int isButton (void)
virtual int isSprite (void)
virtual ActionRecordeventHandler (GraphicDevice *, FlashEvent *)
virtual void getRegion (GraphicDevice *gd, Matrix *matrix, void *id, ScanLineFunc scan_line_func)
virtual void reset ()
virtual void getBoundingBox (Rect *bb, DisplayListEntry *de)
long getTagId ()
ObjectType getType ()
char * getTypeString ()
char * getName ()
void setName (char *)
 Character (UINT16 _c= ' ', UINT8 _f=DEFAULT_FORE_COLOR, UINT8 _b=DEFAULT_BACK_COLOR, UINT8 _r=DEFAULT_RENDITION)

Public Attributes

UINT16 c
UINT8 f
UINT8 b
UINT8 r

Private Attributes

long tagId
ObjectType type
char * name

Friends

BOOL operator== (Character a, Character b)
BOOL operator!= (Character a, Character b)

Detailed Description

a character with rendition attributes.

Definition at line 37 of file character.h.


Constructor & Destructor Documentation

Character::Character ObjectType  type,
long  tagId
 

Definition at line 31 of file character.cc.

References name, NULL, tagId, and type.

Character::~Character  )  [virtual]
 

Definition at line 38 of file character.cc.

References name.

Character::Character UINT16  _c = ' ',
UINT8  _f = DEFAULT_FORE_COLOR,
UINT8  _b = DEFAULT_BACK_COLOR,
UINT8  _r = DEFAULT_RENDITION
[inline]
 

Definition at line 73 of file common.h.


Member Function Documentation

ActionRecord * Character::eventHandler GraphicDevice ,
FlashEvent
[virtual]
 

Reimplemented in Sprite.

Definition at line 51 of file character.cc.

int Character::execute GraphicDevice ,
Matrix ,
Cxform
[virtual]
 

Reimplemented in Shape, Sprite, and Text.

Definition at line 44 of file character.cc.

References printf.

Referenced by Button::execute(), and DisplayList::render().

void Character::getBoundingBox Rect bb,
DisplayListEntry de
[virtual]
 

Reimplemented in Button, Shape, Sprite, and Text.

Definition at line 76 of file character.cc.

References Rect::xmin, Rect::ymax, and Rect::ymin.

Referenced by button_hit(), DisplayList::getBoundary(), Button::getBoundingBox(), DisplayList::render(), FlashMovie::renderFocus(), and DisplayList::updateBoundingBox().

char * Character::getName  ) 
 

Reimplemented in SwfFont.

Definition at line 70 of file character.cc.

References name.

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

Reimplemented in Button, Shape, and Text.

Definition at line 87 of file character.cc.

Referenced by button_hit(), computeBBox(), and Button::getRegion().

long Character::getTagId  ) 
 

Definition at line 95 of file character.cc.

References tagId.

Referenced by dump_buttons(), Button::execute(), Dict::getCharacter(), Dict::nameCharacter(), DisplayList::placeObject(), DisplayList::removeObject(), and DisplayList::render().

ObjectType Character::getType  ) 
 

Definition at line 106 of file character.cc.

References type.

char * Character::getTypeString  ) 
 

Definition at line 112 of file character.cc.

References BitmapType, ButtonType, FontType, ShapeType, Qtopia::SoundType, SpriteType, TextType, and type.

int Character::isButton void   )  [virtual]
 

Reimplemented in Button.

Definition at line 58 of file character.cc.

Referenced by DisplayList::clearList(), exploreButtons1(), DisplayList::placeObject(), DisplayList::removeObject(), DisplayList::render(), and DisplayList::updateSprites().

int Character::isSprite void   )  [virtual]
 

Reimplemented in Sprite.

Definition at line 64 of file character.cc.

Referenced by exploreButtons1(), DisplayList::removeObject(), Program::searchFrame(), and DisplayList::updateSprites().

void Character::reset  )  [virtual]
 

Reimplemented in Sprite.

Definition at line 101 of file character.cc.

Referenced by Button::Button(), and Program::runFrame().

void Character::setName char *   ) 
 

Definition at line 135 of file character.cc.

References name.

Referenced by Dict::nameCharacter().


Friends And Related Function Documentation

BOOL operator!= Character  a,
Character  b
[friend]
 

Definition at line 93 of file common.h.

BOOL operator== Character  a,
Character  b
[friend]
 

Definition at line 88 of file common.h.


Member Data Documentation

UINT8 Character::b
 

Definition at line 81 of file common.h.

Referenced by Bitmap::buildFromZlibData(), EmulationWidget::drawAttrString(), operator!=(), operator==(), Screen::reverseRendition(), and EmulationWidget::setImage().

UINT16 Character::c
 

Definition at line 79 of file common.h.

Referenced by Bitmap::buildFromZlibData(), KateCommands::Character::execCmd(), operator!=(), and operator==().

UINT8 Character::f
 

Definition at line 80 of file common.h.

Referenced by EmulationWidget::drawAttrString(), operator!=(), operator==(), Screen::reverseRendition(), EmulationWidget::setImage(), and Text::sizes().

char* Character::name [private]
 

Reimplemented in SwfFont.

Definition at line 40 of file character.h.

Referenced by Character(), getName(), setName(), and ~Character().

UINT8 Character::r
 

Definition at line 82 of file common.h.

Referenced by Bitmap::buildFromZlibData(), operator!=(), operator==(), and EmulationWidget::setImage().

long Character::tagId [private]
 

Definition at line 38 of file character.h.

Referenced by Character(), and getTagId().

ObjectType Character::type [private]
 

Definition at line 39 of file character.h.

Referenced by Character(), getType(), and getTypeString().


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