Cockatrice 2026-06-27-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
GameView Class Reference

#include <game_view.h>

Inheritance diagram for GameView:
[legend]
Collaboration diagram for GameView:
[legend]

Public Slots

void updateSceneRect (const QRectF &rect)

Public Member Functions

 GameView (GameScene *scene, QWidget *parent=nullptr)

Protected Member Functions

void resizeEvent (QResizeEvent *event) override

Private Slots

void startRubberBand (const QPointF &selectionOrigin)
void resizeRubberBand (const QPointF &cursorPoint, int selectedCount)
void stopRubberBand ()
void refreshShortcuts ()
void updateTotalSelectionCount (const QSize &viewSize=QSize())
void setFocusDisabled (bool disabled)

Private Attributes

QAction * aCloseMostRecentZoneView
QRubberBand * rubberBand
QLabel * dragCountLabel
QLabel * totalCountLabel
QPointF selectionOrigin

Constructor & Destructor Documentation

◆ GameView()

GameView::GameView ( GameScene * scene,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ refreshShortcuts

void GameView::refreshShortcuts ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resizeEvent()

void GameView::resizeEvent ( QResizeEvent * event)
overrideprotected
Here is the call graph for this function:

◆ resizeRubberBand

void GameView::resizeRubberBand ( const QPointF & cursorPoint,
int selectedCount )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFocusDisabled

void GameView::setFocusDisabled ( bool disabled)
privateslot

Disabling focus on the game view will allow chat to maintain the autofocusing behavior of pre 2.10.3, at the cost of disabling the zone view search bar.

Here is the caller graph for this function:

◆ startRubberBand

void GameView::startRubberBand ( const QPointF & selectionOrigin)
privateslot
Here is the caller graph for this function:

◆ stopRubberBand

void GameView::stopRubberBand ( )
privateslot
Here is the caller graph for this function:

◆ updateSceneRect

void GameView::updateSceneRect ( const QRectF & rect)
slot
Here is the caller graph for this function:

◆ updateTotalSelectionCount

void GameView::updateTotalSelectionCount ( const QSize & viewSize = QSize())
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ aCloseMostRecentZoneView

QAction* GameView::aCloseMostRecentZoneView
private

◆ dragCountLabel

QLabel* GameView::dragCountLabel
private

◆ rubberBand

QRubberBand* GameView::rubberBand
private

◆ selectionOrigin

QPointF GameView::selectionOrigin
private

◆ totalCountLabel

QLabel* GameView::totalCountLabel
private

The documentation for this class was generated from the following files: