File indexing completed on 2024-12-22 03:51:25
0001 /*************************************************************************** 0002 * Copyright 2010 Stefan Majewsky <majewsky@gmx.net> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify * 0005 * it under the terms of the GNU Library General Public License * 0006 * version 2 as published by the Free Software Foundation * 0007 * * 0008 * This program is distributed in the hope that it will be useful, * 0009 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0011 * GNU Library General Public License for more details. * 0012 * * 0013 * You should have received a copy of the GNU Library General Public * 0014 * License along with this program; if not, write to the * 0015 * Free Software Foundation, Inc., * 0016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0017 ***************************************************************************/ 0018 0019 #ifndef TAGARO_SCENE_P_H 0020 #define TAGARO_SCENE_P_H 0021 0022 #include "scene.h" 0023 #include <KGameRendererClient> 0024 0025 struct Tagaro::Scene::Private : public KGameRendererClient 0026 { 0027 public: 0028 Private(KGameRenderer* backgroundRenderer, const QString& backgroundSpriteKey, Tagaro::Scene* parent); 0029 0030 //Returns whether sceneRect() was reset to mainView->rect(). 0031 bool _k_resetSceneRect(); 0032 void _k_updateSceneRect(const QRectF& rect); 0033 inline void updateRenderSize(const QSize& sceneSize); 0034 0035 Tagaro::Scene* m_parent; 0036 QGraphicsView* m_mainView; 0037 QSize m_renderSize; 0038 bool m_adjustingSceneRect; 0039 protected: 0040 void receivePixmap(const QPixmap& pixmap) override; 0041 }; 0042 0043 #endif // TAGARO_SCENE_P_H