Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
stack_zone.h
Go to the documentation of this file.
1
6
7#ifndef STACKZONE_H
8#define STACKZONE_H
9
11#include "select_zone.h"
12
13class StackZone : public SelectZone
14{
15 Q_OBJECT
16private:
18private slots:
19 void updateBg();
20
21public:
22 StackZone(StackZoneLogic *_logic, int _zoneHeight, QGraphicsItem *parent);
24 void setHeight(qreal newHeight);
25 void
26 handleDropEvent(const QList<CardDragItem *> &dragItems, CardZoneLogic *startZone, const QPoint &dropPoint) override;
27 QRectF boundingRect() const override;
28 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
29 void reorganizeCards() override;
30};
31
32#endif
Definition card_zone_logic.h:26
SelectZone(CardZoneLogic *logic, QGraphicsItem *parent=nullptr)
Definition select_zone.cpp:150
Definition stack_zone_logic.h:12
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition stack_zone.cpp:32
QRectF boundingRect() const override
Definition stack_zone.cpp:27
void setHeight(qreal newHeight)
Resizes the stack zone height, e.g. when sharing vertical space with the command zone.
Definition stack_zone.cpp:75
qreal zoneHeight
Definition stack_zone.h:17
void updateBg()
Definition stack_zone.cpp:22
StackZone(StackZoneLogic *_logic, int _zoneHeight, QGraphicsItem *parent)
Definition stack_zone.cpp:14
void handleDropEvent(const QList< CardDragItem * > &dragItems, CardZoneLogic *startZone, const QPoint &dropPoint) override
Definition stack_zone.cpp:38
void reorganizeCards() override
Definition stack_zone.cpp:86
Base class for zones where cards are laid out and individually interactable.