![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <deck_view.h>
Public Member Functions | |
| DeckViewCard (QGraphicsItem *parent=nullptr, const CardRef &cardRef={}, const QString &_originZone=QString()) | |
| ~DeckViewCard () override | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| const QString & | getOriginZone () const |
| bool | doubleClickActsOnSelection () const override |
| Whether a double-click on this item acts on the whole selection. | |
| Public Member Functions inherited from AbstractCardItem | |
| int | type () const override |
| AbstractCardItem (QGraphicsItem *parent=nullptr, const CardRef &cardRef={}, PlayerLogic *_owner=nullptr, int _id=-1) | |
| ~AbstractCardItem () override | |
| QRectF | boundingRect () const override |
| QPainterPath | shape () const override |
| QSizeF | getTranslatedSize (QPainter *painter) const |
| void | paintPicture (QPainter *painter, const QSizeF &translatedSize, int angle) |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| ExactCard | getCard () const |
| const CardInfo & | getCardInfo () const |
| int | getId () const |
| void | setId (int _id) |
| QString | getName () const |
| QString | getProviderId () const |
| void | setCardRef (const CardRef &_cardRef) |
| CardRef | getCardRef () const |
| qreal | getRealZValue () const |
| void | setRealZValue (qreal _zValue) |
| void | setHovered (bool _hovered) |
| bool | getIsHovered () const |
| QString | getColor () const |
| void | setColor (const QString &_color) |
| bool | getTapped () const |
| void | setTapped (bool _tapped, bool canAnimate=false) |
| bool | getFaceDown () const |
| void | setFaceDown (bool _facedown) |
| void | processHoverEvent () |
| void | cancelPendingSelectionCollapse () |
| Drop a pending collapse and disarm any deferred collapse timer. | |
| void | deleteCardInfoPopup () |
| bool | animationEvent () override |
| Default: no per-tick animation. Subclasses override to animate. | |
| Public Member Functions inherited from ArrowTarget | |
| ArrowTarget (PlayerLogic *_owner, QGraphicsItem *parent=nullptr) | |
| ~ArrowTarget () override=default | |
| PlayerLogic * | getOwner () const |
| void | setBeingPointedAt (bool _beingPointedAt) |
| bool | getBeingPointedAt () const |
| Public Member Functions inherited from AbstractGraphicsItem | |
| AbstractGraphicsItem (QGraphicsItem *parent=nullptr) | |
| Public Member Functions inherited from IAnimatedItem | |
| virtual | ~IAnimatedItem ()=default |
Protected Member Functions | |
| void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| Protected Member Functions inherited from AbstractCardItem | |
| void | transformPainter (QPainter *painter, const QSizeF &translatedSize, int angle) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| QVariant | itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) override |
| void | cacheBgColor () |
| Protected Member Functions inherited from ArrowTarget | |
| QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
| Protected Member Functions inherited from AbstractGraphicsItem | |
| void | paintNumberEllipse (int number, int radius, const QColor &color, int position, int count, QPainter *painter) |
Private Attributes | |
| QString | originZone |
| DeckViewCardDragItem * | dragItem |
Additional Inherited Members | |
| Public Types inherited from AbstractCardItem | |
| enum | { Type = typeCard } |
| Public Slots inherited from AbstractCardItem | |
| void | refreshCardInfo () |
| Signals inherited from AbstractCardItem | |
| void | hovered (AbstractCardItem *card) |
| void | showCardInfoPopup (const QPoint &pos, const CardRef &cardRef) |
| void | deleteCardInfoPopup (QString cardName) |
| void | sigPixmapUpdated () |
| void | cardShiftClicked (QString cardName) |
| void | rightClicked (AbstractCardItem *card, QPoint screenPos) |
| void | playSelected (AbstractCardItem *card) |
| void | playSelectedFaceDown (AbstractCardItem *card) |
| void | hideSelected (AbstractCardItem *card) |
| void | selectionChanged (AbstractCardItem *card, bool selected) |
| Signals inherited from ArrowTarget | |
| void | scenePositionChanged () |
| Protected Attributes inherited from AbstractCardItem | |
| ExactCard | exactCard |
| int | id |
| CardRef | cardRef |
| bool | tapped |
| bool | facedown |
| int | tapAngle |
| QString | color |
| QColor | bgColor |
| Protected Attributes inherited from ArrowTarget | |
| PlayerLogic * | owner |
|
explicit |
|
override |
|
inlineoverridevirtual |
Whether a double-click on this item acts on the whole selection.
When true, a release without drag defers the multi-selection collapse until the double-click window passes, so a following double-click still sees every selected card. Subclasses that handle double-clicks on the selection must return true here and call cancelPendingSelectionCollapse() from their double-click handler.
Reimplemented from AbstractCardItem.
|
inlinenodiscard |
|
overrideprotected |
|
overrideprotected |
|
override |
|
private |
|
private |