mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 11:01:29 -07:00
31 lines
618 B
C++
31 lines
618 B
C++
/**
|
|
* @file abstract_graphics_item.h
|
|
* @ingroup GameGraphics
|
|
*/
|
|
//! \todo Document this file.
|
|
|
|
#ifndef ABSTRACTGRAPHICSITEM_H
|
|
#define ABSTRACTGRAPHICSITEM_H
|
|
|
|
#include <QGraphicsItem>
|
|
|
|
/**
|
|
* Parent class of all objects that appear in a game.
|
|
*/
|
|
class AbstractGraphicsItem : public QGraphicsObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
void paintNumberEllipse(int number, int radius, const QColor &color, int position, int count, QPainter *painter);
|
|
|
|
public:
|
|
explicit AbstractGraphicsItem(QGraphicsItem *parent = nullptr) : QGraphicsObject(parent)
|
|
{
|
|
}
|
|
};
|
|
|
|
int resetPainterTransform(QPainter *painter);
|
|
|
|
#endif
|