Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
StackZone Class Reference

#include <stack_zone.h>

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

Public Member Functions

 StackZone (StackZoneLogic *_logic, int _zoneHeight, QGraphicsItem *parent)
void handleDropEvent (const QList< CardDragItem * > &dragItems, CardZoneLogic *startZone, const QPoint &dropPoint) override
QRectF boundingRect () const override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
void reorganizeCards () override
Public Member Functions inherited from SelectZone
 SelectZone (CardZoneLogic *logic, QGraphicsItem *parent=nullptr)
Public Member Functions inherited from CardZone
int type () const override
 CardZone (CardZoneLogic *logic, QGraphicsItem *parent=nullptr)
void retranslateUi ()
CardZoneLogicgetLogic () const
void setMenu (QMenu *_menu, QAction *_doubleClickAction=0)
Public Member Functions inherited from AbstractGraphicsItem
 AbstractGraphicsItem (QGraphicsItem *parent=nullptr)

Private Slots

void updateBg ()

Private Attributes

qreal zoneHeight

Additional Inherited Members

Public Types inherited from CardZone
enum  { Type = typeZone }
Public Slots inherited from CardZone
bool showContextMenu (const QPoint &screenPos)
void onCardAdded (CardItem *addedCard)
Protected Member Functions inherited from SelectZone
void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
Protected Member Functions inherited from CardZone
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
virtual QPointF closestGridPoint (const QPointF &point)
QMenu * getMenu () const
Protected Member Functions inherited from AbstractGraphicsItem
void paintNumberEllipse (int number, int radius, const QColor &color, int position, int count, QPainter *painter)
Protected Attributes inherited from CardZone
QMenu * menu
QAction * doubleClickAction

Constructor & Destructor Documentation

◆ StackZone()

StackZone::StackZone ( StackZoneLogic * _logic,
int _zoneHeight,
QGraphicsItem * parent )
Here is the call graph for this function:

Member Function Documentation

◆ boundingRect()

QRectF StackZone::boundingRect ( ) const
override
Here is the caller graph for this function:

◆ handleDropEvent()

void StackZone::handleDropEvent ( const QList< CardDragItem * > & dragItems,
CardZoneLogic * startZone,
const QPoint & dropPoint )
overridevirtual

Implements CardZone.

Here is the call graph for this function:

◆ paint()

void StackZone::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget )
override
Here is the call graph for this function:

◆ reorganizeCards()

void StackZone::reorganizeCards ( )
overridevirtual

Implements CardZone.

Here is the call graph for this function:

◆ updateBg

void StackZone::updateBg ( )
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ zoneHeight

qreal StackZone::zoneHeight
private

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