KDEGames

kgamerendereditem.cpp
1 /***************************************************************************
2  * Copyright 2010 Stefan Majewsky <[email protected]> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU Library General Public License *
6  * version 2 as published by the Free Software Foundation *
7  * *
8  * This program is distributed in the hope that it will be useful, *
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11  * GNU Library General Public License for more details. *
12  * *
13  * You should have received a copy of the GNU Library General Public *
14  * License along with this program; if not, write to the *
15  * Free Software Foundation, Inc., *
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
17  ***************************************************************************/
18 
19 #include "kgamerendereditem.h"
20 
21 class KGameRenderedItemPrivate
22 {
23  //NOTE: reserved for later use
24 };
25 
27  : QGraphicsPixmapItem(parent)
28  , KGameRendererClient(renderer, spriteKey)
29  , d(nullptr)
30 {
32 }
33 
34 KGameRenderedItem::~KGameRenderedItem()
35 {
36  delete d;
37 }
38 
40 {
42 }
Cache-enabled rendering of SVG themes.
Definition: kgamerenderer.h:94
void receivePixmap(const QPixmap &pixmap) override
This method is called when the KGameRenderer has provided a new pixmap for this client (esp...
An object that receives pixmaps from a KGameRenderer.
void setCacheMode(QGraphicsItem::CacheMode mode, const QSize &logicalCacheSize)
void setPixmap(const QPixmap &pixmap)
QPixmap pixmap() const const
KGameRenderedItem(KGameRenderer *renderer, const QString &spriteKey, QGraphicsItem *parent=nullptr)
Creates a new KGameRenderedItem which renders the sprite with the given spriteKey as provided by the ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Nov 25 2020 22:36:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.