QPainterPath::Element Class
class QPainterPath::ElementQPainterPath::Element 클래스는 하위 경로의 위치와 유형을 지정합니다. 더 보기...
공개 함수
| bool | isCurveTo() const |
| bool | isLineTo() const |
| bool | isMoveTo() const |
| 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
요소가 줄(line)인 경우 true 을 반환하고, 그렇지 않은 경우 false 을 반환합니다.
type 및 QPainterPath::LineToElement도 참조하십시오 .
bool Element::isMoveTo() const
요소가 현재 위치로 이동 중이면 true 를 반환하고, 그렇지 않으면 false 를 반환합니다.
type 및 QPainterPath::MoveToElement도 참조하십시오 .
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()도 참조하십시오 .
© 2026 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.