Cockatrice 2026-04-21-Development-2.11.0-beta.61
A 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 QLabel;
14class QRubberBand;
15
16class GameView : public QGraphicsView
17{
18 Q_OBJECT
19private:
21 QRubberBand *rubberBand;
25
26protected:
27 void resizeEvent(QResizeEvent *event) override;
28private slots:
29 void startRubberBand(const QPointF &selectionOrigin);
30 void resizeRubberBand(const QPointF &cursorPoint, int selectedCount);
31 void stopRubberBand();
32 void refreshShortcuts();
33 void updateTotalSelectionCount(const QSize &viewSize = QSize());
34public slots:
35 void updateSceneRect(const QRectF &rect);
36
37public:
38 explicit GameView(GameScene *scene, QWidget *parent = nullptr);
39};
40
41#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:90
QPointF selectionOrigin
Definition game_view.h:24
void updateTotalSelectionCount(const QSize &viewSize=QSize())
Definition game_view.cpp:161
QRubberBand * rubberBand
Definition game_view.h:21
void updateSceneRect(const QRectF &rect)
Definition game_view.cpp:85
GameView(GameScene *scene, QWidget *parent=nullptr)
Definition game_view.cpp:33
void refreshShortcuts()
Definition game_view.cpp:155
QLabel * dragCountLabel
Definition game_view.h:22
QAction * aCloseMostRecentZoneView
Definition game_view.h:20
QLabel * totalCountLabel
Definition game_view.h:23
void resizeEvent(QResizeEvent *event) override
Definition game_view.cpp:73
void stopRubberBand()
Definition game_view.cpp:146
void resizeRubberBand(const QPointF &cursorPoint, int selectedCount)
Definition game_view.cpp:100