KDEGames

kgamerendereditem.cpp
1/*
2 SPDX-FileCopyrightText: 2010 Stefan Majewsky <majewsky@gmx.net>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#include "kgamerendereditem.h"
8
9class KGameRenderedItemPrivate
10{
11 // NOTE: reserved for later use
12};
13
15 : QGraphicsPixmapItem(parent)
16 , KGameRendererClient(renderer, spriteKey)
17 , d_ptr(nullptr)
18{
20}
21
22KGameRenderedItem::~KGameRenderedItem() = default;
23
void receivePixmap(const QPixmap &pixmap) override
This method is called when the KGameRenderer has provided a new pixmap for this client (esp.
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 ...
An object that receives pixmaps from a KGameRenderer.
Cache-enabled rendering of SVG themes.
void setCacheMode(CacheMode mode, const QSize &logicalCacheSize)
QPixmap pixmap() const const
void setPixmap(const QPixmap &pixmap)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.