CopperSpice API  1.7.2
QPainterPath::Element Class Reference

Specifies the position and type of a subpath. More...

Public Methods

bool isCurveTo () const
 
bool isLineTo () const
 
bool isMoveTo () const
 
 operator QPointF () const
 
bool operator!= (const Element &other) const
 
bool operator== (const Element &other) const
 

Detailed Description

The QPainterPath::Element class specifies the position and type of a subpath.

Once a QPainterPath object is constructed, subpaths like lines and curves can be added to the path (creating QPainterPath::LineToElement and QPainterPath::CurveToElement components).

The lines and curves stretch from the currentPosition() to the position passed as argument. The currentPosition() of the QPainterPath object is always the end position of the last subpath that was added (or the initial start point). The moveTo() function can be used to move the currentPosition() without adding a line or curve, creating a QPainterPath::MoveToElement component.

See also
QPainterPath

Method Documentation

bool QPainterPath::Element::isCurveTo ( ) const
inline

Returns true if the element is a curve, otherwise returns false.

See also
type, QPainterPath::CurveToElement
bool QPainterPath::Element::isLineTo ( ) const
inline

Returns true if the element is a line, otherwise returns false.

See also
type, QPainterPath::LineToElement
bool QPainterPath::Element::isMoveTo ( ) const
inline

Returns true if the element is moving the current position, otherwise returns false.

See also
type, QPainterPath::MoveToElement
QPainterPath::Element::operator QPointF ( ) const
inline

Returns the element's position.

See also
x, y
bool QPainterPath::Element::operator!= ( const Element &  other) const
inline

Returns true if this element is not equal to other, otherwise returns false.

See also
operator==()
bool QPainterPath::Element::operator== ( const Element &  other) const
inline

Returns true if this element is equal to other, otherwise returns false.

See also
operator!=()