6.0.0-rc4Source

QPainterPath::Element Class

The QPainterPath::Element class is one point of a path. More…

Header#include <QPainterPath>
CMaketarget_link_libraries(app PRIVATE Nt::Gui)
ModuleNt GUI C++ Classes
Nested inQPainterPath

List of all members, including inherited members

Public Functions

boolisMoveTo() const
boolisLineTo() const
boolisCurveTo() const
operator QPointF() const
booloperator==(const Element &e) const
booloperator!=(const Element &e) const

Public Variables

qrealx
qrealy
ElementTypetype

Detailed Description

Differences from Qt

None.

Member Function Documentation

bool QPainterPath::Element::isCurveTo() const

Returns true if the point is the first control point of a curve; otherwise returns false.

bool QPainterPath::Element::isLineTo() const

Returns true if the point ends a line; otherwise returns false.

bool QPainterPath::Element::isMoveTo() const

Returns true if the point starts a subpath; otherwise returns false.

QPainterPath::Element::operator QPointF() const

Returns the point.

bool QPainterPath::Element::operator!=(const Element &e) const

Returns true if this point and e differ.

bool QPainterPath::Element::operator==(const Element &e) const

Returns true if this point and e are equal.

Member Variable Documentation

ElementType QPainterPath::Element::type

What the point is.

qreal QPainterPath::Element::x

The x coordinate.

qreal QPainterPath::Element::y

The y coordinate.