Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

Element Class

(QPainterPath::Element)

TheQPainterPath::Element class specifies the position and type of a subpath.More...

Header:#include <Element>

Public Functions

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

Public Variables

ElementTypetype
qrealx
qrealy

Detailed Description

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

Once aQPainterPath object is constructed, subpaths like lines and curves can be added to the path (creatingQPainterPath::LineToElement andQPainterPath::CurveToElement components).

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

See alsoQPainterPath.

Member Function Documentation

bool Element::isCurveTo() const

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

See alsotype andQPainterPath::CurveToElement.

bool Element::isLineTo() const

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

See alsotype andQPainterPath::LineToElement.

bool Element::isMoveTo() const

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

See alsotype andQPainterPath::MoveToElement.

Element::operator QPointF() const

Returns the element's position.

See alsox andy.

bool Element::operator!=(constElement & other) const

Returns true if this element is not equal toother; otherwise returns false.

This function was introduced in Qt 4.2.

See alsooperator==().

bool Element::operator==(constElement & other) const

Returns true if this element is equal toother; otherwise returns false.

This function was introduced in Qt 4.2.

See alsooperator!=().

Member Variable Documentation

ElementType Element::type

This variable holds the type of element.

See alsoisCurveTo(),isLineTo(), andisMoveTo().

qreal Element::x

This variable holds the x coordinate of the element's position.

See alsooperator QPointF().

qreal Element::y

This variable holds the y coordinate of the element's position.

See alsooperator QPointF().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp