summaryrefslogtreecommitdiff
path: root/noncore/games/solitaire/canvasshapes.h
Unidiff
Diffstat (limited to 'noncore/games/solitaire/canvasshapes.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/solitaire/canvasshapes.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/noncore/games/solitaire/canvasshapes.h b/noncore/games/solitaire/canvasshapes.h
new file mode 100644
index 0000000..72acf6b
--- a/dev/null
+++ b/noncore/games/solitaire/canvasshapes.h
@@ -0,0 +1,55 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20#ifndef CANVAS_SHAPES_H
21#define CANVAS_SHAPES_H
22
23
24#include <qcanvas.h>
25
26
27class QPainter;
28
29
30class CanvasRoundRect : QCanvasRectangle
31{
32public:
33 CanvasRoundRect(int x, int y, QCanvas *canvas);
34 void redraw();
35protected:
36 void drawShape(QPainter &p);
37};
38
39
40class CanvasCircleOrCross : QCanvasRectangle
41{
42public:
43 CanvasCircleOrCross(int x, int y, QCanvas *canvas);
44 void redraw();
45 void setCircle();
46 void setCross();
47protected:
48 void drawShape(QPainter &p);
49private:
50 bool circleShape;
51};
52
53
54#endif
55