Engauge Digitizer 2
Loading...
Searching...
No Matches
GhostEllipse Class Reference

Ghost for a QGraphicsEllipseItem. More...

#include <GhostEllipse.h>

Collaboration diagram for GhostEllipse:
Collaboration graph

Public Member Functions

 GhostEllipse (const QRectF &rect, const QPen &pen, const QBrush &brush)
 Initial constructor.
 ~GhostEllipse ()
 GhostEllipse (const GhostEllipse &other)
 Copy constructor.
GhostEllipseoperator= (const GhostEllipse &other)
 Assignment operator.
QBrush brush () const
 Get method for brush.
QPen pen () const
 Get method for pen.
QRectF rect () const
 Get method for bounding rectangle.

Detailed Description

Ghost for a QGraphicsEllipseItem.

Definition at line 15 of file GhostEllipse.h.

Constructor & Destructor Documentation

◆ GhostEllipse() [1/2]

GhostEllipse::GhostEllipse ( const QRectF & rect,
const QPen & pen,
const QBrush & brush )

Initial constructor.

Definition at line 9 of file GhostEllipse.cpp.

11 :
12 m_rect (rect),
13 m_pen (pen),
14 m_brush (brush)
15{
16}
QRectF rect() const
Get method for bounding rectangle.
QPen pen() const
Get method for pen.
QBrush brush() const
Get method for brush.

◆ ~GhostEllipse()

GhostEllipse::~GhostEllipse ( )

Definition at line 34 of file GhostEllipse.cpp.

35{
36}

◆ GhostEllipse() [2/2]

GhostEllipse::GhostEllipse ( const GhostEllipse & other)

Copy constructor.

Definition at line 18 of file GhostEllipse.cpp.

18 :
19 m_rect (other.rect ()),
20 m_pen (other.pen()),
21 m_brush (other.brush())
22{
23}

Member Function Documentation

◆ brush()

QBrush GhostEllipse::brush ( ) const

Get method for brush.

Definition at line 38 of file GhostEllipse.cpp.

39{
40 return m_brush;
41}

◆ operator=()

GhostEllipse & GhostEllipse::operator= ( const GhostEllipse & other)

Assignment operator.

Definition at line 25 of file GhostEllipse.cpp.

26{
27 m_rect = other.rect();
28 m_pen = other.pen();
29 m_brush = other.brush();
30
31 return *this;
32}

◆ pen()

QPen GhostEllipse::pen ( ) const

Get method for pen.

Definition at line 43 of file GhostEllipse.cpp.

44{
45 return m_pen;
46}

◆ rect()

QRectF GhostEllipse::rect ( ) const

Get method for bounding rectangle.

Definition at line 48 of file GhostEllipse.cpp.

49{
50 return m_rect;
51}

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