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

Rect Struct Reference

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

List of all members.

Public Member Functions

long getWidth ()
long getHeight ()
void print ()
void reset ()
 Rect ()
 Rect (int x, int y, int w, int h)
 ~Rect ()
void setRect (int x, int y, int w, int h)
SDL_Rect getRect ()
int x ()
int y ()
int w ()
int h ()
void x (int x)
void y (int y)
void w (int w)
void h (int h)
void moveBy (int x, int y)
bool intersects (Rect r2)

Public Attributes

long xmin
long xmax
long ymin
long ymax

Private Attributes

SDL_Rect r


Constructor & Destructor Documentation

Rect::Rect  )  [inline]
 

Definition at line 9 of file rect.h.

References r.

Rect::Rect int  x,
int  y,
int  w,
int  h
[inline]
 

Definition at line 10 of file rect.h.

References setRect().

Rect::~Rect  )  [inline]
 

Definition at line 11 of file rect.h.


Member Function Documentation

long Rect::getHeight  )  [inline]
 

Definition at line 34 of file rect.h.

References ymax, and ymin.

SDL_Rect Rect::getRect  )  [inline]
 

Definition at line 14 of file rect.h.

References r.

Referenced by SFCaveGame::drawBlocks(), and GatesGame::drawBlocks().

long Rect::getWidth  )  [inline]
 

Definition at line 30 of file rect.h.

References xmax, and xmin.

void Rect::h int  h  )  [inline]
 

Definition at line 23 of file rect.h.

References r.

int Rect::h  )  [inline]
 

Definition at line 18 of file rect.h.

References r.

Referenced by Player::draw(), Player::getHeight(), Player::init(), and intersects().

bool Rect::intersects Rect  r2  )  [inline]
 

Definition at line 31 of file rect.h.

References h(), r, w(), x(), and y().

void Rect::moveBy int  x,
int  y
[inline]
 

Definition at line 25 of file rect.h.

References r.

Referenced by Player::move(), SFCaveGame::moveBlocks(), and GatesGame::moveBlocks().

void Rect::print  )  [inline]
 

Definition at line 38 of file rect.h.

References printf, xmax, xmin, ymax, and ymin.

Referenced by DisplayList::render().

void Rect::reset  )  [inline]
 

Definition at line 43 of file rect.h.

References xmax, xmin, ymax, and ymin.

Referenced by DisplayList::DisplayList(), Button::getBoundingBox(), DisplayList::render(), FlashMovie::renderMovie(), and transformBoundingBox().

void Rect::setRect int  x,
int  y,
int  w,
int  h
[inline]
 

Definition at line 13 of file rect.h.

References r.

Referenced by SFCaveGame::addBlock(), GatesGame::addGate(), and Rect().

void Rect::w int  w  )  [inline]
 

Definition at line 22 of file rect.h.

References r.

int Rect::w  )  [inline]
 

Definition at line 17 of file rect.h.

References r.

Referenced by Player::draw(), Player::init(), and intersects().

void Rect::x int  x  )  [inline]
 

Definition at line 20 of file rect.h.

References r.

int Rect::x void   )  [inline]
 

Definition at line 15 of file rect.h.

References r.

Referenced by Player::draw(), Player::drawTrails(), Player::getX(), Player::init(), intersects(), and Player::moveTrails().

void Rect::y int  y  )  [inline]
 

Definition at line 21 of file rect.h.

References r.

int Rect::y void   )  [inline]
 

Definition at line 16 of file rect.h.

References r.

Referenced by Player::draw(), Player::getY(), SFCaveGame::init(), Player::init(), GatesGame::init(), intersects(), SFCaveGame::moveBlocks(), GatesGame::moveBlocks(), and Player::moveTrails().


Member Data Documentation

SDL_Rect Rect::r [private]
 

Definition at line 57 of file rect.h.

Referenced by getRect(), h(), intersects(), moveBy(), Rect(), setRect(), w(), x(), and y().

long Rect::xmax
 

Definition at line 26 of file rect.h.

Referenced by bbox(), button_focus(), GraphicDevice32::clearCanvas(), GraphicDevice24::clearCanvas(), GraphicDevice16::clearCanvas(), GraphicDevice::clip(), computeBBox(), Text::doText(), GraphicDevice32::drawLine(), GraphicDevice24::drawLine(), GraphicDevice16::drawLine(), dump_buttons(), FlashGetInfo(), FlashGraphicInit(), CInputScript::GetRect(), getWidth(), GraphicDevice::GraphicDevice(), moveFocus(), print(), DisplayList::render(), FlashMovie::renderMovie(), reset(), Program::runFrame(), GraphicDevice::setClipping(), GraphicDevice::setMovieDimension(), transformBoundingBox(), and GraphicDevice::updateClippingRegion().

long Rect::xmin
 

Definition at line 25 of file rect.h.

Referenced by bbox(), button_focus(), GraphicDevice32::clearCanvas(), GraphicDevice24::clearCanvas(), GraphicDevice16::clearCanvas(), GraphicDevice::clip(), computeBBox(), Text::doText(), GraphicDevice32::drawLine(), GraphicDevice24::drawLine(), GraphicDevice16::drawLine(), dump_buttons(), FlashGetInfo(), FlashGraphicInit(), Character::getBoundingBox(), CInputScript::GetRect(), getWidth(), GraphicDevice::GraphicDevice(), moveFocus(), print(), DisplayList::render(), FlashMovie::renderMovie(), reset(), Program::runFrame(), GraphicDevice::setClipping(), GraphicDevice::setMovieDimension(), transformBoundingBox(), and GraphicDevice::updateClippingRegion().

long Rect::ymax
 

Definition at line 28 of file rect.h.

Referenced by GraphicDevice::addSegment(), bbox(), button_focus(), GraphicDevice32::clearCanvas(), GraphicDevice24::clearCanvas(), GraphicDevice16::clearCanvas(), GraphicDevice::clip(), computeBBox(), Text::doText(), GraphicDevice32::drawLine(), GraphicDevice24::drawLine(), GraphicDevice16::drawLine(), dump_buttons(), FlashGetInfo(), FlashGraphicInit(), Character::getBoundingBox(), getHeight(), CInputScript::GetRect(), GraphicDevice::GraphicDevice(), moveFocus(), print(), DisplayList::render(), FlashMovie::renderMovie(), reset(), Program::runFrame(), GraphicDevice::setClipping(), GraphicDevice::setMovieDimension(), transformBoundingBox(), and GraphicDevice::updateClippingRegion().

long Rect::ymin
 

Definition at line 27 of file rect.h.

Referenced by GraphicDevice::addSegment(), bbox(), button_focus(), GraphicDevice32::clearCanvas(), GraphicDevice24::clearCanvas(), GraphicDevice16::clearCanvas(), GraphicDevice::clip(), computeBBox(), Text::doText(), GraphicDevice32::drawLine(), GraphicDevice24::drawLine(), GraphicDevice16::drawLine(), dump_buttons(), FlashGetInfo(), FlashGraphicInit(), Character::getBoundingBox(), getHeight(), CInputScript::GetRect(), GraphicDevice::GraphicDevice(), moveFocus(), print(), DisplayList::render(), FlashMovie::renderMovie(), reset(), Program::runFrame(), GraphicDevice::setClipping(), GraphicDevice::setMovieDimension(), transformBoundingBox(), and GraphicDevice::updateClippingRegion().


The documentation for this struct was generated from the following files:
Generated on Sat Nov 5 17:50:42 2005 for OPIE by  doxygen 1.4.2