Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
10
#include "
select_zone.h
"
11
12
#include <QtGlobal>
13
#include <qtmetamacros.h>
14
15
class
QGraphicsItem;
16
class
StackZoneLogic
;
17
18
class
StackZone
:
public
SelectZone
19
{
20
Q_OBJECT
21
private
:
22
qreal
zoneHeight
;
23
bool
playmatActive
=
false
;
24
private
slots:
25
void
updateBg
();
26
27
public
slots:
28
void
onPlaymatChanged
(
bool
active);
29
30
public
:
31
StackZone
(
StackZoneLogic
*_logic,
int
_zoneHeight, QGraphicsItem *parent);
33
void
setHeight
(qreal newHeight);
34
void
35
handleDropEvent
(
const
QList<CardDragItem *>
&dragItems,
CardZoneLogic
*startZone,
const
QPoint &dropPoint)
override
;
36
QRectF
boundingRect
()
const override
;
37
void
paint
(QPainter *painter,
const
QStyleOptionGraphicsItem *option, QWidget *widget)
override
;
38
void
reorganizeCards
()
override
;
39
};
40
41
#endif
CardZoneLogic
Definition
card_zone_logic.h:27
QList
Definition
remote_connection_controller.h:20
SelectZone::SelectZone
SelectZone(CardZoneLogic *logic, QGraphicsItem *parent=nullptr)
Definition
select_zone.cpp:156
StackZoneLogic
Definition
stack_zone_logic.h:18
StackZone::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition
stack_zone.cpp:44
StackZone::playmatActive
bool playmatActive
Definition
stack_zone.h:23
StackZone::boundingRect
QRectF boundingRect() const override
Definition
stack_zone.cpp:39
StackZone::setHeight
void setHeight(qreal newHeight)
Resizes the stack zone height, e.g. when sharing vertical space with the command zone.
Definition
stack_zone.cpp:103
StackZone::zoneHeight
qreal zoneHeight
Definition
stack_zone.h:22
StackZone::updateBg
void updateBg()
Definition
stack_zone.cpp:34
StackZone::onPlaymatChanged
void onPlaymatChanged(bool active)
Definition
stack_zone.cpp:55
StackZone::StackZone
StackZone(StackZoneLogic *_logic, int _zoneHeight, QGraphicsItem *parent)
Definition
stack_zone.cpp:26
StackZone::handleDropEvent
void handleDropEvent(const QList< CardDragItem * > &dragItems, CardZoneLogic *startZone, const QPoint &dropPoint) override
Definition
stack_zone.cpp:64
StackZone::reorganizeCards
void reorganizeCards() override
Definition
stack_zone.cpp:114
select_zone.h
Base class for zones where cards are laid out and individually interactable.
cockatrice
src
game_graphics
zones
stack_zone.h
Generated by
1.18.0