Mari's Tarot
 All Classes Files Functions Variables Enumerations Enumerator Friends
TarotScene.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <array>
4 
5 #include <QGraphicsScene>
6 #include <QGraphicsView>
7 #include <QGraphicsSceneMouseEvent>
8 #include <QGraphicsPixmapItem>
9 
10 #include "CardItem.hpp"
11 
12 using namespace std;
13 
14 class TarotScene : public QGraphicsScene
15 {
16 public:
17  TarotScene();
18 
19  void mouseMoveEvent( QGraphicsSceneMouseEvent *e );
20  void mousePressEvent( QGraphicsSceneMouseEvent *e );
21  void placeCard( const int cardIndex, const int x, const int y );
22 
23 private:
24  array< CardItem, 78 > cardItems;
25  QTransform matrix;
26 };
Definition: TarotScene.hpp:14