Q3CanvasLine Class ReferenceThe Q3CanvasLine class provides a line on a Q3Canvas. Далее... #include <Q3CanvasLine> Данный класс является частью библиотеки поддержки Qt 3. Он предоставлен для поддержки ранее написанного кода. Мы настоятельно не рекомендуем использовать этот класс в новом коде. Для получения дополнительной информации смотрите Портирование на Qt 4. Унаследован от: Q3CanvasPolygonalItem. Открытые функции
Переопределённые открытые функции
Переопределённые защищённые функции
Подробное описаниеThe Q3CanvasLine class provides a line on a Q3Canvas. The line inherits functionality from Q3CanvasPolygonalItem, for example the setPen() function. The start and end points of the line are set with setPoints(). Like any other canvas item lines can be moved with Q3CanvasItem::move() and Q3CanvasItem::moveBy(), or by setting coordinates with Q3CanvasItem::setX(), Q3CanvasItem::setY() and Q3CanvasItem::setZ(). Смотрите также QtCanvas и Переход на графическое представление. Описание функций-членовQ3CanvasLine::Q3CanvasLine ( Q3Canvas * canvas )Constructs a line from (0,0) to (0,0) on canvas. Смотрите также setPoints(). Q3CanvasLine::~Q3CanvasLine ()Destroys the line. Q3PointArray Q3CanvasLine::areaPoints () const [virtual protected]Reimplemented from Q3CanvasPolygonalItem::areaPoints(). Note that the area defined by the line is somewhat thicker than the line that is actually drawn. void Q3CanvasLine::drawShape ( QPainter & p ) [virtual protected]Reimplemented from Q3CanvasPolygonalItem::drawShape(). QPoint Q3CanvasLine::endPoint () constReturns the end point of the line. Смотрите также setPoints() и startPoint(). void Q3CanvasLine::moveBy ( double dx, double dy ) [virtual]Reimplemented from Q3CanvasItem::moveBy(). int Q3CanvasLine::rtti () const [virtual]Reimplemented from Q3CanvasItem::rtti(). Returns 7 (Q3CanvasItem::Rtti_Line). Смотрите также Q3CanvasItem::rtti(). void Q3CanvasLine::setPen ( QPen p ) [virtual]Reimplemented from Q3CanvasPolygonalItem::setPen(). void Q3CanvasLine::setPoints ( int xa, int ya, int xb, int yb )Sets the line's start point to (xa, ya) and its end point to (xb, yb). QPoint Q3CanvasLine::startPoint () constReturns the start point of the line. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |