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
要素が行である場合は `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.