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

#include <abstract_card_drag_item.h>

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

Public Types

enum  { Type = typeCardDrag }

Public Member Functions

int type () const override
 AbstractCardDragItem (AbstractCardItem *_item, const QPointF &_hotSpot, AbstractCardDragItem *parentDrag=0)
QRectF boundingRect () const override
QPainterPath shape () const override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
AbstractCardItemgetItem () const
QPointF getHotSpot () const
void addChildDrag (AbstractCardDragItem *child)
virtual void updatePosition (const QPointF &cursorScenePos)=0

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override

Protected Attributes

AbstractCardItemitem
QPointF hotSpot
QList< AbstractCardDragItem * > childDrags

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ AbstractCardDragItem()

AbstractCardDragItem::AbstractCardDragItem ( AbstractCardItem * _item,
const QPointF & _hotSpot,
AbstractCardDragItem * parentDrag = 0 )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addChildDrag()

void AbstractCardDragItem::addChildDrag ( AbstractCardDragItem * child)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ boundingRect()

QRectF AbstractCardDragItem::boundingRect ( ) const
inlinenodiscardoverride
Here is the caller graph for this function:

◆ getHotSpot()

QPointF AbstractCardDragItem::getHotSpot ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getItem()

AbstractCardItem * AbstractCardDragItem::getItem ( ) const
inlinenodiscard

◆ mouseMoveEvent()

void AbstractCardDragItem::mouseMoveEvent ( QGraphicsSceneMouseEvent * event)
overrideprotected
Here is the call graph for this function:

◆ paint()

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

◆ shape()

QPainterPath AbstractCardDragItem::shape ( ) const
nodiscardoverride
Here is the call graph for this function:
Here is the caller graph for this function:

◆ type()

int AbstractCardDragItem::type ( ) const
inlinenodiscardoverride

◆ updatePosition()

virtual void AbstractCardDragItem::updatePosition ( const QPointF & cursorScenePos)
pure virtual

Implemented in CardDragItem, and DeckViewCardDragItem.

Here is the caller graph for this function:

Member Data Documentation

◆ childDrags

QList<AbstractCardDragItem *> AbstractCardDragItem::childDrags
protected

◆ hotSpot

QPointF AbstractCardDragItem::hotSpot
protected

◆ item

AbstractCardItem* AbstractCardDragItem::item
protected

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