QPainterPath::Element Class
The QPainterPath::Element class is one point of a path. More…
| Header | #include <QPainterPath> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Gui) |
| Module | Nt GUI C++ Classes |
| Nested in | QPainterPath |
List of all members, including inherited members
Public Functions
| bool | isMoveTo() const |
| bool | isLineTo() const |
| bool | isCurveTo() const |
| operator QPointF() const | |
| bool | operator==(const Element &e) const |
| bool | operator!=(const Element &e) const |
Public Variables
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.