Qt:Документация 4.3.2/qpainterpath-element
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
Содержание |
[править] QPainterPath::Element Class Reference
[модуль QtGui ]
The QPainterPath::Element class specifies the position and type of a subpath. Далее...
#include <QPainterPath>
[править] Открытые функции
- bool isCurveTo () const
- bool isLineTo () const
- bool isMoveTo () const
- operator QPointF () const
- bool operator!= ( const Element & other ) const
- bool operator== ( const Element & other ) const
[править] Public Variables
[править] Подробное описание
The 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.
[править] Описание функций-членов
[править] bool Element::isCurveTo () const
Returns true if the element is a curve, otherwise returns false.
See also type and QPainterPath::CurveToElement.
[править] bool Element::isLineTo () const
Returns true if the element is a line, otherwise returns false.
See also type and QPainterPath::LineToElement.
[править] bool Element::isMoveTo () const
Returns true if the element is moving the current position, otherwise returns false.
See also type and QPainterPath::MoveToElement.
[править] Element::operator QPointF () const
Returns the element's position.
[править] bool Element::operator!= ( const Element & other ) const
Returns true if this element is not equal to other; otherwise returns false.
Эта функция была введена в Qt 4.2.
Смотрите также operator==().
[править] bool Element::operator== ( const Element & other ) const
Returns true if this element is equal to other; otherwise returns false.
Эта функция была введена в Qt 4.2.
Смотирте также operator!=().
[править] Member Variable Documentation
[править] ElementType Element::type
This variable holds the type of element.
See also isCurveTo(), isLineTo(), and isMoveTo().
[править] qreal Element::x
This variable holds the x coordinate of the element's position.
See also operator QPointF().
[править] qreal Element::y
This variable holds the y coordinate of the element's position.
See also operator QPointF().
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|