KDEGames

kgamerendereditem.cpp
1 /*
2  SPDX-FileCopyrightText: 2010 Stefan Majewsky <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-only
5 */
6 
7 #include "kgamerendereditem.h"
8 
9 class KGameRenderedItemPrivate
10 {
11  //NOTE: reserved for later use
12 };
13 
15  : QGraphicsPixmapItem(parent)
16  , KGameRendererClient(renderer, spriteKey)
17  , d(nullptr)
18 {
20 }
21 
22 KGameRenderedItem::~KGameRenderedItem() = default;
23 
25 {
27 }
Cache-enabled rendering of SVG themes.
Definition: kgamerenderer.h:86
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-2021 The KDE developers.
Generated on Tue Dec 7 2021 22:34:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.