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

displaylist.cc File Reference

#include "swf.h"

Include dependency graph for displaylist.cc:

Go to the source code of this file.

Defines

#define PRINT   0
#define FOCUS_ZOOM   1.5
#define FOCUS_SIZE_MIN   50
#define FOCUS_TRANSLATE   15

Functions

void deleteButton (FlashMovie *movie, DisplayListEntry *e)
void addButton (FlashMovie *movie, DisplayListEntry *e)
static void bbox (Rect *rect, Matrix *m, long x1, long y1)
void transformBoundingBox (Rect *bb, Matrix *matrix, Rect *boundary, int reset)
static int exploreButtons1 (Program *prg, void *opaque, ExploreButtonFunc func)
int exploreButtons (FlashMovie *movie, void *opaque, ExploreButtonFunc func)
static void button_hit_func (void *id, long y, long start, long end)
static int button_hit (void *opaque, Program *prg, DisplayListEntry *e)
static int button_reset (void *opaque, Program *prg, DisplayListEntry *e)
static int button_action (void *opaque, Program *prg, DisplayListEntry *e)
int computeActions (FlashMovie *movie, Program **prg, ActionRecord **ar)
void dump_buttons (FlashHandle flashHandle)


Define Documentation

#define FOCUS_SIZE_MIN   50
 

Definition at line 536 of file displaylist.cc.

#define FOCUS_TRANSLATE   15
 

Definition at line 537 of file displaylist.cc.

#define FOCUS_ZOOM   1.5
 

Definition at line 534 of file displaylist.cc.

#define PRINT   0
 

Definition at line 29 of file displaylist.cc.


Function Documentation

void addButton FlashMovie movie,
DisplayListEntry e
 

Definition at line 44 of file displaylist.cc.

References DisplayListEntry::character, FlashMovie::cur_focus, FlashMovie::lost_over, FlashMovie::mouse_active, NULL, DisplayListEntry::oldState, DisplayListEntry::renderState, and stateOver.

Referenced by CfgDlg::CfgDlg(), ComposeMail::ComposeMail(), Menu::InstEditDialog::InstEditDialog(), Menu::ScaleEditDialog::ScaleEditDialog(), and DisplayList::placeObject().

static void bbox Rect rect,
Matrix m,
long  x1,
long  y1
[static]
 

Definition at line 95 of file displaylist.cc.

References Matrix::getX(), Matrix::getY(), Opie::MM::x, Rect::xmax, Rect::xmin, Opie::MM::y, Rect::ymax, and Rect::ymin.

Referenced by Gfx::doAnnot(), Gfx::doForm(), HlEditDialog::HlEditDialog(), KPPPWidget::showNews(), and transformBoundingBox().

static int button_action void *  opaque,
Program prg,
DisplayListEntry e
[static]
 

Definition at line 462 of file displaylist.cc.

References ButtonAction::action, ActionRecord::action, ActionPlaySound, Button::actionRecords, ActionRefresh, DisplayListEntry::character, Button::conditionList, Button::getActionFromTransition(), ActionRecord::next, DisplayListEntry::oldState, ButtonAction::prg, DisplayListEntry::renderState, ActionRecord::sound, Button::sound, stateDown, stateOver, and stateUp.

Referenced by computeActions().

static int button_hit void *  opaque,
Program prg,
DisplayListEntry e
[static]
 

Definition at line 365 of file displaylist.cc.

References GraphicDevice::adjust, ButtonHit::bhit, button_hit_func(), DisplayListEntry::character, FRAC, FlashMovie::gd, Character::getBoundingBox(), Character::getRegion(), HitTable::hit, FlashMovie::mouse_x, FlashMovie::mouse_y, ButtonHit::movie, DisplayListEntry::renderMatrix, DisplayListEntry::renderState, save(), stateHitTest, transformBoundingBox(), HitTable::x, and HitTable::y.

Referenced by DisplayList::updateButtons().

static void button_hit_func void *  id,
long  y,
long  start,
long  end
[static]
 

Definition at line 353 of file displaylist.cc.

References HitTable::hit, HitTable::x, and HitTable::y.

Referenced by button_hit().

static int button_reset void *  opaque,
Program prg,
DisplayListEntry e
[static]
 

Definition at line 402 of file displaylist.cc.

References DisplayListEntry::owner, DisplayListEntry::renderState, stateUp, and DisplayList::updateBoundingBox().

Referenced by DisplayList::updateButtons().

int computeActions FlashMovie movie,
Program **  prg,
ActionRecord **  ar
 

Definition at line 520 of file displaylist.cc.

References ButtonAction::action, button_action(), exploreButtons(), NULL, and ButtonAction::prg.

Referenced by Program::handleEvent().

void deleteButton FlashMovie movie,
DisplayListEntry e
 

Definition at line 31 of file displaylist.cc.

References DisplayListEntry::character, FlashMovie::cur_focus, FlashMovie::lost_over, FlashMovie::mouse_active, NULL, DisplayListEntry::renderState, and stateOver.

Referenced by DisplayList::clearList(), ComposeMail::ComposeMail(), ContactEditor::init(), DisplayList::placeObject(), and DisplayList::removeObject().

void dump_buttons FlashHandle  flashHandle  ) 
 

Definition at line 690 of file displaylist.cc.

References DisplayListEntry::character, computeBBox(), Character::getTagId(), printf, Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

int exploreButtons FlashMovie movie,
void *  opaque,
ExploreButtonFunc  func
 

Definition at line 331 of file displaylist.cc.

References exploreButtons1(), CInputScript::next, NULL, and CInputScript::program.

Referenced by computeActions(), Program::handleEvent(), moveFocus(), and DisplayList::updateButtons().

static int exploreButtons1 Program prg,
void *  opaque,
ExploreButtonFunc  func
[static]
 

Definition at line 308 of file displaylist.cc.

References DisplayListEntry::character, Program::dl, Character::isButton(), Character::isSprite(), DisplayList::list, DisplayListEntry::next, and NULL.

Referenced by exploreButtons().

void transformBoundingBox Rect bb,
Matrix matrix,
Rect boundary,
int  reset
 

Definition at line 108 of file displaylist.cc.

References bbox(), Rect::reset(), Rect::xmax, Rect::xmin, Rect::ymax, and Rect::ymin.

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


Generated on Sat Nov 5 16:23:41 2005 for OPIE by  doxygen 1.4.2