#include <vgraphicsfillitem.h>
Public Member Functions | |
VGraphicsFillItem (const QColor &color, bool fill, QGraphicsItem *parent=nullptr) | |
VGraphicsFillItem Constructor. More... | |
~VGraphicsFillItem () | |
~VGraphicsFillItem Destructor More... | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
paint Paints the item, filling the inside surface More... | |
Private Attributes | |
QColor | m_color |
bool | m_fill |
Definition at line 35 of file vgraphicsfillitem.h.
|
explicit |
VGraphicsFillItem Constructor.
color | color used for the item's pen & brush |
fill | flag used if the item is to be filled or not |
Definition at line 32 of file vgraphicsfillitem.cpp.
VGraphicsFillItem::~VGraphicsFillItem | ( | ) |
~VGraphicsFillItem Destructor
Definition at line 39 of file vgraphicsfillitem.cpp.
void VGraphicsFillItem::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget | ||
) |
paint Paints the item, filling the inside surface
painter | pointer to the painter object |
option | unused |
widget | unused |
Definition at line 43 of file vgraphicsfillitem.cpp.
|
private |
Definition at line 57 of file vgraphicsfillitem.h.
Referenced by paint().
|
private |
Definition at line 58 of file vgraphicsfillitem.h.
Referenced by paint().