• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kmahjongg

TileSprite Class Reference

#include <TileSprite.h>

Inheritance diagram for TileSprite:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class wraps tile drawing, so it can blit the selected or unselected background, plus the tileface, positioned in the correct orientation.

Author:
Mauricio Piacentini <mauricio@tabuleiro.com>

Definition at line 39 of file TileSprite.h.


Public Slots

void fadeIn ()
void fadeOut ()

Public Member Functions

virtual void paint (QPainter *p)
virtual void paintInternal (QPainter *p, const QRect &prect, const QRegion &preg, const QPoint &delta, double cumulative_opacity)
virtual QRect rect () const
double scale ()
double selected ()
void setAngle (TileViewAngle angle, QPixmap &backunselected, QPixmap &backselected)
void setScale (double scale)
void setSelected (bool enabled)
 TileSprite (KGameCanvasAbstract *canvas, QPixmap &backunselected, QPixmap &backselected, QPixmap &face, TileViewAngle angle, bool selected)
 ~TileSprite ()

Constructor & Destructor Documentation

TileSprite::TileSprite ( KGameCanvasAbstract *  canvas,
QPixmap &  backunselected,
QPixmap &  backselected,
QPixmap &  face,
TileViewAngle  angle,
bool  selected 
)

Constructor.

Parameters:
canvas 
backunselected 
backselected 
face 
angle 
selected 

Definition at line 24 of file TileSprite.cpp.

TileSprite::~TileSprite (  ) 

Deafault destructor.

Definition at line 39 of file TileSprite.cpp.


Member Function Documentation

void TileSprite::fadeIn (  )  [slot]

Slot Description.

Definition at line 105 of file TileSprite.cpp.

void TileSprite::fadeOut (  )  [slot]

Slot Description.

Definition at line 93 of file TileSprite.cpp.

void TileSprite::paint ( QPainter *  p  )  [virtual]

Method Description.

Parameters:
p 

Definition at line 83 of file TileSprite.cpp.

void TileSprite::paintInternal ( QPainter *  p,
const QRect &  prect,
const QRegion &  preg,
const QPoint &  delta,
double  cumulative_opacity 
) [virtual]

Method Description.

Parameters:
p 
prect 
preg 
delta 
cumulative_opacity 

Definition at line 69 of file TileSprite.cpp.

QRect TileSprite::rect (  )  const [virtual]

Method Description.

Definition at line 116 of file TileSprite.cpp.

double TileSprite::scale (  )  [inline]

Method Description.

Returns:
double m_scale

Definition at line 89 of file TileSprite.h.

double TileSprite::selected (  )  [inline]

Method Description.

Returns:
double m_selected

Definition at line 95 of file TileSprite.h.

void TileSprite::setAngle ( TileViewAngle  angle,
QPixmap &  backunselected,
QPixmap &  backselected 
)

Method Description.

Parameters:
angle 
backunselected 
backselected 

Definition at line 43 of file TileSprite.cpp.

void TileSprite::setScale ( double  scale  )  [inline]

Method Description.

Parameters:
scale 

Definition at line 86 of file TileSprite.h.

void TileSprite::setSelected ( bool  enabled  )  [inline]

Method Description.

Parameters:
enabled 

Definition at line 92 of file TileSprite.h.


The documentation for this class was generated from the following files:
  • TileSprite.h
  • TileSprite.cpp

kmahjongg

Skip menu "kmahjongg"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal