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

#include <hand_counter.h>

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

Public Types

enum  { Type = typeOther }

Public Slots

void updateNumber ()

Signals

void showContextMenu (const QPoint &screenPos)

Public Member Functions

int type () const override
 HandCounter (QGraphicsItem *parent=nullptr)
 ~HandCounter () override
QRectF boundingRect () const override
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Public Member Functions inherited from AbstractGraphicsItem
 AbstractGraphicsItem (QGraphicsItem *parent=nullptr)

Protected Member Functions

void mousePressEvent (QGraphicsSceneMouseEvent *event) override
Protected Member Functions inherited from AbstractGraphicsItem
void paintNumberEllipse (int number, int radius, const QColor &color, int position, int count, QPainter *painter)

Private Attributes

int number

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ HandCounter()

HandCounter::HandCounter ( QGraphicsItem * parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~HandCounter()

HandCounter::~HandCounter ( )
override

Member Function Documentation

◆ boundingRect()

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

◆ mousePressEvent()

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

◆ paint()

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

◆ showContextMenu

void HandCounter::showContextMenu ( const QPoint & screenPos)
signal
Here is the caller graph for this function:

◆ type()

int HandCounter::type ( ) const
inlineoverride

◆ updateNumber

void HandCounter::updateNumber ( )
slot
Here is the caller graph for this function:

Member Data Documentation

◆ number

int HandCounter::number
private

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