Element Class
class QPainterPath::ElementQPainterPath::Element 클래스는 하위 경로의 위치와 유형을 지정합니다. 자세히...
공용 함수
bool | isCurveTo() const |
bool | isLineTo() const |
bool | isMoveTo() const |
QPointF | operator QPointF() const |
bool | operator!=(const QPainterPath::Element &other) const |
bool | operator==(const QPainterPath::Element &other) const |
공용 변수
상세 설명
QPainterPath 객체가 생성되면 선과 곡선과 같은 하위 경로를 경로에 추가할 수 있습니다( QPainterPath::LineToElement 및 QPainterPath::CurveToElement 컴포넌트 생성).
선과 곡선은 currentPosition()에서 인수로 전달된 위치까지 확장됩니다. QPainterPath 객체의 currentPosition()는 항상 마지막으로 추가한 하위 경로의 끝 위치(또는 초기 시작점)입니다. moveTo () 함수는 선이나 커브를 추가하지 않고 currentPosition()을 이동하여 QPainterPath::MoveToElement 컴포넌트를 만드는 데 사용할 수 있습니다.
QPainterPath 를참조하세요 .
멤버 함수 문서
bool Element::isCurveTo() const
요소가 커브인 경우 true
를 반환하고, 그렇지 않으면 false
을 반환합니다.
type 와 QPainterPath::CurveToElement도 참조하십시오 .
bool Element::isLineTo() const
요소가 줄인 경우 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
type 와 QPainterPath::LineToElement도 참조하세요 .
bool Element::isMoveTo() const
요소가 현재 위치를 이동 중이면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
type 와 QPainterPath::MoveToElement도 참조하세요 .
QPointF Element::operator QPointF() const
요소의 위치를 반환합니다.
bool Element::operator!=(const QPainterPath::Element &other) const
이 요소가 other 과 같지 않으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
operator==()도 참조하세요 .
bool Element::operator==(const QPainterPath::Element &other) const
이 요소가 other 과 같으면 true
을 반환하고, 그렇지 않으면 false
을 반환합니다.
operator!=()도 참조하세요 .
멤버 변수 문서
QPainterPath::ElementType Element::type
이 변수는 요소의 유형을 보유합니다.
isCurveTo(), isLineTo() 및 isMoveTo()도 참조하세요 .
qreal Element::x
이 변수에는 요소 위치의 x 좌표가 저장됩니다.
operator QPointF() 를참조하세요 .
qreal Element::y
이 변수에는 요소 위치의 y 좌표가 저장됩니다.
operator QPointF() 를참조하세요 .
© 2025 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 the GNU 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.