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_ptr(nullptr)
18 {
20 }
21 
22 KGameRenderedItem::~KGameRenderedItem() = default;
23 
25 {
27 }
void setPixmap(const QPixmap &pixmap)
void receivePixmap(const QPixmap &pixmap) override
This method is called when the KGameRenderer has provided a new pixmap for this client (esp.
QPixmap pixmap() const const
An object that receives pixmaps from a KGameRenderer.
void setCacheMode(QGraphicsItem::CacheMode mode, const QSize &logicalCacheSize)
Cache-enabled rendering of SVG themes.
Definition: kgamerenderer.h:83
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-2023 The KDE developers.
Generated on Sun Dec 10 2023 04:06:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.