Cockatrice 2026-06-27-Development-3.1.0-beta.3
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());
34 void setFocusDisabled(bool disabled);
35public slots:
36 void updateSceneRect(const QRectF &rect);
37
38public:
39 explicit GameView(GameScene *scene, QWidget *parent = nullptr);
40};
41
42#endif
Manages the game board display including players, zones, cards, and animations.
Definition game_scene.h:41
void startRubberBand(const QPointF &selectionOrigin)
Definition game_view.cpp:93
QPointF selectionOrigin
Definition game_view.h:24
void updateTotalSelectionCount(const QSize &viewSize=QSize())
Definition game_view.cpp:167
void setFocusDisabled(bool disabled)
Definition game_view.cpp:196
QRubberBand * rubberBand
Definition game_view.h:21
void updateSceneRect(const QRectF &rect)
Definition game_view.cpp:88
GameView(GameScene *scene, QWidget *parent=nullptr)
Definition game_view.cpp:33
void refreshShortcuts()
Definition game_view.cpp:161
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:75
void stopRubberBand()
Definition game_view.cpp:151
void resizeRubberBand(const QPointF &cursorPoint, int selectedCount)
Definition game_view.cpp:104