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

Button Class Reference

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

Inheritance diagram for Button:

Inheritance graph
[legend]
Collaboration diagram for Button:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Button (long id, int level=1)
 ~Button ()
void addActionRecord (ActionRecord *ar)
void addButtonRecord (ButtonRecord *br)
void addCondition (long transition)
int execute (GraphicDevice *gd, Matrix *matrix, Cxform *cxform, ButtonState renderState)
ActionRecordgetActionFromTransition (ButtonState currentState, ButtonState old)
void getRegion (GraphicDevice *gd, Matrix *matrix, void *id, ScanLineFunc scan_line_func)
ButtonRecordgetButtonRecords ()
void setButtonSound (Sound *, int)
void setButtonMenu (int)
ActionRecordgetActionRecords ()
ConditiongetConditionList ()
Sound ** getSounds ()
void getBoundingBox (Rect *bb, DisplayListEntry *)
void updateButtonState (DisplayListEntry *)
CharactergetRenderCharacter (ButtonState state)
int isButton ()

Public Attributes

long defLevel
ButtonRecordbuttonRecords
ActionRecordactionRecords
ConditionconditionList
long isMenu
Soundsound [4]

Constructor & Destructor Documentation

Button::Button long  id,
int  level = 1
 

Definition at line 33 of file button.cc.

References actionRecords, buttonRecords, conditionList, defLevel, isMenu, Character::reset(), and sound.

Button::~Button  ) 
 

Definition at line 46 of file button.cc.

References actionRecords, Condition::actions, buttonRecords, conditionList, ButtonRecord::cxform, d, Condition::next, ButtonRecord::next, and ActionRecord::next.


Member Function Documentation

void Button::addActionRecord ActionRecord ar  ) 
 

Definition at line 168 of file button.cc.

References actionRecords, and ActionRecord::next.

Referenced by CInputScript::ParseDefineButton(), and CInputScript::ParseDefineButton2().

void Button::addButtonRecord ButtonRecord br  ) 
 

Definition at line 123 of file button.cc.

References buttonRecords, l, ButtonRecord::layer, ButtonRecord::next, and NULL.

Referenced by CInputScript::ParseDefineButton(), and CInputScript::ParseDefineButton2().

void Button::addCondition long  transition  ) 
 

Definition at line 150 of file button.cc.

References actionRecords, Condition::actions, conditionList, Condition::next, NULL, and Condition::transition.

Referenced by CInputScript::ParseDefineButton2().

int Button::execute GraphicDevice gd,
Matrix matrix,
Cxform cxform,
ButtonState  renderState
 

Definition at line 200 of file button.cc.

References ButtonRecord::buttonMatrix, buttonRecords, ButtonRecord::character, ButtonRecord::cxform, Character::execute(), Character::getTagId(), ButtonRecord::next, NULL, printf, and ButtonRecord::state.

Referenced by DisplayList::render().

ActionRecord * Button::getActionFromTransition ButtonState  currentState,
ButtonState  old
 

Definition at line 237 of file button.cc.

References Condition::actions, conditionList, isMenu, Condition::next, NULL, stateDown, stateOver, stateUp, and Condition::transition.

Referenced by button_action().

ActionRecord * Button::getActionRecords  ) 
 

Definition at line 91 of file button.cc.

References actionRecords.

void Button::getBoundingBox Rect bb,
DisplayListEntry
[virtual]
 

Reimplemented from Character.

Definition at line 279 of file button.cc.

References ButtonRecord::buttonMatrix, buttonRecords, ButtonRecord::character, Character::getBoundingBox(), ButtonRecord::next, DisplayListEntry::renderState, Rect::reset(), ButtonRecord::state, and transformBoundingBox().

ButtonRecord * Button::getButtonRecords  ) 
 

Definition at line 85 of file button.cc.

References buttonRecords.

Referenced by CInputScript::ParseDefineButtonCxform().

Condition * Button::getConditionList  ) 
 

Definition at line 103 of file button.cc.

References conditionList.

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

Reimplemented from Character.

Definition at line 184 of file button.cc.

References ButtonRecord::buttonMatrix, buttonRecords, ButtonRecord::character, Character::getRegion(), ButtonRecord::next, ButtonRecord::state, and stateHitTest.

Character * Button::getRenderCharacter ButtonState  state  ) 
 

Definition at line 301 of file button.cc.

References buttonRecords, ButtonRecord::character, ButtonRecord::next, and ButtonRecord::state.

Sound ** Button::getSounds  ) 
 

Definition at line 97 of file button.cc.

References sound.

int Button::isButton void   )  [inline, virtual]
 

Reimplemented from Character.

Definition at line 77 of file button.h.

void Button::setButtonMenu int   ) 
 

Definition at line 117 of file button.cc.

References isMenu.

void Button::setButtonSound Sound ,
int 
 

Definition at line 109 of file button.cc.

References sound.

Referenced by CInputScript::ParseDefineButtonSound().

void Button::updateButtonState DisplayListEntry  ) 
 

Definition at line 315 of file button.cc.

References ButtonRecord::buttonMatrix, buttonRecords, ButtonRecord::character, ButtonRecord::next, and ButtonRecord::state.


Member Data Documentation

ActionRecord* Button::actionRecords
 

Definition at line 45 of file button.h.

Referenced by addActionRecord(), addCondition(), Button(), button_action(), getActionRecords(), and ~Button().

ButtonRecord* Button::buttonRecords
 

Definition at line 44 of file button.h.

Referenced by addButtonRecord(), Button(), execute(), getBoundingBox(), getButtonRecords(), getRegion(), getRenderCharacter(), updateButtonState(), and ~Button().

Condition* Button::conditionList
 

Definition at line 46 of file button.h.

Referenced by addCondition(), Button(), button_action(), getActionFromTransition(), getConditionList(), and ~Button().

long Button::defLevel
 

Definition at line 42 of file button.h.

Referenced by Button().

long Button::isMenu
 

Definition at line 48 of file button.h.

Referenced by Button(), getActionFromTransition(), and setButtonMenu().

Sound* Button::sound[4]
 

Definition at line 50 of file button.h.

Referenced by Button(), button_action(), getSounds(), and setButtonSound().


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