Seamly2D
Code documentation
VGraphicsFillItem Class Reference

#include <vgraphicsfillitem.h>

Inheritance diagram for VGraphicsFillItem:
Collaboration diagram for VGraphicsFillItem:

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
 

Detailed Description

Definition at line 35 of file vgraphicsfillitem.h.

Constructor & Destructor Documentation

◆ VGraphicsFillItem()

VGraphicsFillItem::VGraphicsFillItem ( const QColor &  color,
bool  fill,
QGraphicsItem *  parent = nullptr 
)
explicit

VGraphicsFillItem Constructor.

Parameters
colorcolor used for the item's pen & brush
fillflag used if the item is to be filled or not

Definition at line 32 of file vgraphicsfillitem.cpp.

◆ ~VGraphicsFillItem()

VGraphicsFillItem::~VGraphicsFillItem ( )

~VGraphicsFillItem Destructor

Definition at line 39 of file vgraphicsfillitem.cpp.

Member Function Documentation

◆ paint()

void VGraphicsFillItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

paint Paints the item, filling the inside surface

Parameters
painterpointer to the painter object
optionunused
widgetunused

Definition at line 43 of file vgraphicsfillitem.cpp.

References m_color, and m_fill.

Member Data Documentation

◆ m_color

QColor VGraphicsFillItem::m_color
private

Definition at line 57 of file vgraphicsfillitem.h.

Referenced by paint().

◆ m_fill

bool VGraphicsFillItem::m_fill
private

Definition at line 58 of file vgraphicsfillitem.h.

Referenced by paint().


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