Element Class Reference(QPainterPath::Element)The QPainterPath::Element class specifies the position and type of a subpath. More... #include <QPainterPath> Public Functions
Public Variables
Detailed DescriptionThe QPainterPath::Element class specifies the position and type of a subpath. Once a QPainterPath object is constructed, subpaths like lines and curves can be added to the path (creating QPainterPath::LineToElement and QPainterPath::CurveToElement components). The lines and curves stretch from the currentPosition() to the position passed as argument. The currentPosition() of the QPainterPath object is always the end position of the last subpath that was added (or the initial start point). The moveTo() function can be used to move the currentPosition() without adding a line or curve, creating a QPainterPath::MoveToElement component. See also QPainterPath. Member Function Documentationbool Element::isCurveTo () constReturns true if the element is a curve, otherwise returns false. See also type and QPainterPath::CurveToElement. bool Element::isLineTo () constReturns true if the element is a line, otherwise returns false. See also type and QPainterPath::LineToElement. bool Element::isMoveTo () constReturns true if the element is moving the current position, otherwise returns false. See also type and QPainterPath::MoveToElement. Element::operator QPointF () constReturns the element's position. bool Element::operator!= ( const Element & other ) constReturns true if this element is not equal to other; otherwise returns false. This function was introduced in Qt 4.2. See also operator==(). bool Element::operator== ( const Element & other ) constReturns true if this element is equal to other; otherwise returns false. This function was introduced in Qt 4.2. See also operator!=(). Member Variable DocumentationElementType Element::typeThis variable holds the type of element. See also isCurveTo(), isLineTo(), and isMoveTo(). qreal Element::xThis variable holds the x coordinate of the element's position. See also operator QPointF(). qreal Element::yThis variable holds the y coordinate of the element's position. See also operator QPointF(). X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |