Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
game_view.h
Go to the documentation of this file.
1
6
7#ifndef GAMEVIEW_H
8#define GAMEVIEW_H
9
10#include <QGraphicsView>
11
12class GameScene;
13class QRubberBand;
14
15class GameView : public QGraphicsView
16{
17 Q_OBJECT
18private:
20 QRubberBand *rubberBand;
22
23protected:
24 void resizeEvent(QResizeEvent *event) override;
25private slots:
26 void startRubberBand(const QPointF &selectionOrigin);
27 void resizeRubberBand(const QPointF &cursorPoint);
28 void stopRubberBand();
29 void refreshShortcuts();
30public slots:
31 void updateSceneRect(const QRectF &rect);
32
33public:
34 explicit GameView(GameScene *scene, QWidget *parent = nullptr);
35};
36
37#endif
Manages the game board display including players, zones, cards, and animations.
Definition game_scene.h:38
void startRubberBand(const QPointF &selectionOrigin)
Definition game_view.cpp:49
QPointF selectionOrigin
Definition game_view.h:21
void resizeRubberBand(const QPointF &cursorPoint)
Definition game_view.cpp:56
QRubberBand * rubberBand
Definition game_view.h:20
void updateSceneRect(const QRectF &rect)
Definition game_view.cpp:44
GameView(GameScene *scene, QWidget *parent=nullptr)
Definition game_view.cpp:10
void refreshShortcuts()
Definition game_view.cpp:67
QAction * aCloseMostRecentZoneView
Definition game_view.h:19
void resizeEvent(QResizeEvent *event) override
Definition game_view.cpp:33
void stopRubberBand()
Definition game_view.cpp:62