spritecollection.h

来自「Siemens 的SIMpad是一个多媒体设备」· C头文件 代码 · 共 38 行

H
38
字号
/* * Copyright (C) 2002 Robert Ernst <robert.ernst@linux-solutions.at> * * This file may be distributed and/or modified under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation and appearing in the file LICENSE.GPL included in the * packaging of this file. * * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * * See COPYING for GPL licensing information. * */#ifndef __SPRITECOLLECTION_HEADER__#define __SPRITECOLLECTION_HEADER__#include <qwidget.h>#include <qpixmap.h>#include <qpainter.h>class SpriteCollection{public:    SpriteCollection(QWidget *parent);private:    QPixmap m_chip[25];    QWidget *m_parent;public:    void drawChip(QPainter &painter, int x, int y, int state);};#endif // __SPRITECOLLECTION_HEADER__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?