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

#include <hand_zone.h>

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

Public Slots

void updateOrientation ()
Public Slots inherited from CardZone
bool showContextMenu (const QPoint &screenPos)
void onCardAdded (CardItem *addedCard)

Public Member Functions

 HandZone (HandZoneLogic *_logic, int _zoneHeight, QGraphicsItem *parent=nullptr)
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
void sortHand (const QList< CardList::SortOption > &options)
void setWidth (qreal _width)
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 width
qreal zoneHeight

Additional Inherited Members

Public Types inherited from CardZone
enum  { Type = typeZone }
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

◆ HandZone()

HandZone::HandZone ( HandZoneLogic * _logic,
int _zoneHeight,
QGraphicsItem * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ boundingRect()

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

◆ handleDropEvent()

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

Implements CardZone.

Here is the call graph for this function:

◆ paint()

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

◆ reorganizeCards()

void HandZone::reorganizeCards ( )
overridevirtual

Implements CardZone.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWidth()

void HandZone::setWidth ( qreal _width)
Here is the call graph for this function:

◆ sortHand()

void HandZone::sortHand ( const QList< CardList::SortOption > & options)
Here is the call graph for this function:

◆ updateBg

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

◆ updateOrientation

void HandZone::updateOrientation ( )
slot
Here is the call graph for this function:

Member Data Documentation

◆ width

qreal HandZone::width
private

◆ zoneHeight

qreal HandZone::zoneHeight
private

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