• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegames API Reference
  • KDE Home
  • Contact Us
 

libkdegames

Public Member Functions | Protected Member Functions | List of all members
KGameRenderedItem Class Reference

#include <KGameRenderedItem>

Inheritance diagram for KGameRenderedItem:
Inheritance graph
[legend]

Public Member Functions

 KGameRenderedItem (KGameRenderer *renderer, const QString &spriteKey, QGraphicsItem *parent=0)
 
virtual ~KGameRenderedItem ()
 
- Public Member Functions inherited from KGameRendererClient
 KGameRendererClient (KGameRenderer *renderer, const QString &spriteKey)
 
virtual ~KGameRendererClient ()
 
QHash< QColor, QColor > customColors () const
 
int frame () const
 
int frameCount () const
 
KGameRenderer * renderer () const
 
QSize renderSize () const
 
void setCustomColors (const QHash< QColor, QColor > &customColors)
 
void setFrame (int frame)
 
void setRenderSize (const QSize &renderSize)
 
void setSpriteKey (const QString &spriteKey)
 
QString spriteKey () const
 

Protected Member Functions

virtual void receivePixmap (const QPixmap &pixmap)
 

Detailed Description

A QGraphicsPixmapItem which reacts to theme changes automatically.

Since
4.6 This class is a QGraphicsPixmapItem which retrieves its pixmap from a KGameRenderer, and updates it automatically when the KGameRenderer changes the theme.

Definition at line 39 of file kgamerendereditem.h.

Constructor & Destructor Documentation

KGameRenderedItem::KGameRenderedItem ( KGameRenderer *  renderer,
const QString &  spriteKey,
QGraphicsItem *  parent = 0 
)

Creates a new KGameRenderedItem which renders the sprite with the given spriteKey as provided by the given renderer.

Definition at line 26 of file kgamerendereditem.cpp.

KGameRenderedItem::~KGameRenderedItem ( )
virtual

Definition at line 34 of file kgamerendereditem.cpp.

Member Function Documentation

void KGameRenderedItem::receivePixmap ( const QPixmap &  pixmap)
protectedvirtual

This method is called when the KGameRenderer has provided a new pixmap for this client (esp.

after theme changes and after calls to setFrame(), setRenderSize() and setSpriteKey()).

Implements KGameRendererClient.

Definition at line 39 of file kgamerendereditem.cpp.


The documentation for this class was generated from the following files:
  • kgamerendereditem.h
  • kgamerendereditem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:44:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdegames

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

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal