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

TileItem Class Reference

#include </home/clem/local/src/opie/noncore/games/wordgame/wordgame.h>

Collaboration diagram for TileItem:

Collaboration graph
[legend]
List of all members.

Public Types

enum  State { Firm, Floating }

Public Member Functions

 TileItem (const Tile &tile, bool b, QCanvas *c)
void setState (State state)
State state () const
const Tiletile () const
void setTile (const Tile &)
void setBig (bool)

Static Public Member Functions

static int smallWidth ()
static int smallHeight ()
static int bigWidth ()
static int bigHeight ()

Protected Member Functions

void drawShape (QPainter &)

Private Attributes

Tile t
bool big
State s

Member Enumeration Documentation

enum TileItem::State
 

Enumeration values:
Firm 
Floating 

Definition at line 111 of file wordgame.h.


Constructor & Destructor Documentation

TileItem::TileItem const Tile tile,
bool  b,
QCanvas *  c
[inline]
 

Definition at line 98 of file wordgame.h.


Member Function Documentation

int TileItem::bigHeight  )  [static]
 

Definition at line 718 of file wordgame.cpp.

References tile_bigh.

Referenced by Rack::sizeHint(), and WordGame::startGame().

int TileItem::bigWidth  )  [static]
 

Definition at line 713 of file wordgame.cpp.

References tile_bigw.

Referenced by Rack::contentsMouseMoveEvent(), drawShape(), and Rack::layoutTiles().

void TileItem::drawShape QPainter &   )  [protected]
 

Definition at line 742 of file wordgame.cpp.

References big, bigWidth(), Floating, height, QString::length(), QString::number(), s, t, Tile::text(), tile_btweak, tile_stweak, Tile::value(), width, Opie::MM::x, and Opie::MM::y.

void TileItem::setBig bool   ) 
 

Definition at line 737 of file wordgame.cpp.

References big.

void TileItem::setState State  state  ) 
 

Definition at line 723 of file wordgame.cpp.

References s.

Referenced by Board::setTileState().

void TileItem::setTile const Tile  ) 
 

Definition at line 730 of file wordgame.cpp.

References t.

Referenced by Board::setTile().

int TileItem::smallHeight  )  [static]
 

Definition at line 708 of file wordgame.cpp.

References tile_smallh.

Referenced by Board::Board(), and WordGame::loadRules().

int TileItem::smallWidth  )  [static]
 

Definition at line 703 of file wordgame.cpp.

References tile_smallw.

Referenced by Board::Board(), and WordGame::loadRules().

State TileItem::state  )  const [inline]
 

Definition at line 113 of file wordgame.h.

References s.

const Tile& TileItem::tile  )  const [inline]
 

Definition at line 114 of file wordgame.h.

References t.

Referenced by Board::tile().


Member Data Documentation

bool TileItem::big [private]
 

Definition at line 123 of file wordgame.h.

Referenced by drawShape(), and setBig().

State TileItem::s [private]
 

Definition at line 124 of file wordgame.h.

Referenced by drawShape(), setState(), and state().

Tile TileItem::t [private]
 

Definition at line 122 of file wordgame.h.

Referenced by drawShape(), setTile(), and tile().


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