Qt 4.8
|
The QPointF class defines a point in the plane using floating point precision. More...
#include <qpoint.h>
Public Functions | |
bool | isNull () const |
Returns true if both the x and y coordinates are set to +0. More... | |
qreal | manhattanLength () const |
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" of the vector from the origin to the point. More... | |
QPointF & | operator*= (qreal c) |
Multiplies this point's coordinates by the given factor, and returns a reference to this point. More... | |
QPointF & | operator+= (const QPointF &p) |
Adds the given point to this point and returns a reference to this point. More... | |
QPointF & | operator-= (const QPointF &p) |
Subtracts the given point from this point and returns a reference to this point. More... | |
QPointF & | operator/= (qreal c) |
Divides both x and y by the given divisor, and returns a reference to this point. More... | |
QPointF () | |
Constructs a null point, i. More... | |
QPointF (const QPoint &p) | |
Constructs a copy of the given point. More... | |
QPointF (qreal xpos, qreal ypos) | |
Constructs a point with the given coordinates (x, y). More... | |
qreal & | rx () |
Returns a reference to the x coordinate of this point. More... | |
qreal & | ry () |
Returns a reference to the y coordinate of this point. More... | |
void | setX (qreal x) |
Sets the x coordinate of this point to the given x coordinate. More... | |
void | setY (qreal y) |
Sets the y coordinate of this point to the given y coordinate. More... | |
QPoint | toPoint () const |
Rounds the coordinates of this point to the nearest integer, and returns a QPoint object with the rounded coordinates. More... | |
qreal | x () const |
Returns the x-coordinate of this point. More... | |
qreal | y () const |
Returns the y-coordinate of this point. More... | |
Properties | |
qreal | xp |
qreal | yp |
Friends | |
bool | operator!= (const QPointF &, const QPointF &) |
Returns true if p1 is not equal to p2; otherwise returns false. More... | |
const QPointF | operator* (qreal, const QPointF &) |
const QPointF | operator* (const QPointF &, qreal) |
const QPointF | operator+ (const QPointF &, const QPointF &) |
Returns a QPointF object that is the sum of the given points, p1 and p2; each component is added separately. More... | |
const QPointF | operator- (const QPointF &, const QPointF &) |
Returns a QPointF object that is formed by subtracting p2 from p1; each component is subtracted separately. More... | |
const QPointF | operator- (const QPointF &) |
Returns a QPointF object that is formed by changing the sign of both components of the given point. More... | |
const QPointF | operator/ (const QPointF &, qreal) |
Returns the QPointF object formed by dividing both components of the given point by the given divisor. More... | |
bool | operator== (const QPointF &, const QPointF &) |
Returns true if p1 is equal to p2; otherwise returns false. More... | |
class | QMatrix |
class | QTransform |
Related Functions | |
(Note that these are not member functions.) | |
QDataStream & | operator<< (QDataStream &stream, const QPointF &point) |
Writes the given point to the given stream and returns a reference to the stream. More... | |
QDataStream & | operator>> (QDataStream &stream, QPointF &point) |
Reads a point from the given stream into the given point and returns a reference to the stream. More... | |
The QPointF class defines a point in the plane using floating point precision.
A point is specified by a x coordinate and an y coordinate which can be accessed using the x() and y() functions. The coordinates of the point are specified using floating point numbers for accuracy. The isNull() function returns true if both x and y are set to 0.0. The coordinates can be set (or altered) using the setX() and setY() functions, or alternatively the rx() and ry() functions which return references to the coordinates (allowing direct manipulation).
Given a point p, the following statements are all equivalent:
A QPointF object can also be used as a vector: Addition and subtraction are defined as for vectors (each component is added separately). A QPointF object can also be divided or multiplied by an int
or a qreal
.
In addition, the QPointF class provides a constructor converting a QPoint object into a QPointF object, and a corresponding toPoint() function which returns a QPoint copy of this point. Finally, QPointF objects can be streamed as well as compared.
|
inline |
Constructs a null point, i.
e. with coordinates (0.0, 0.0)
\sa isNull()
Definition at line 271 of file qpoint.h.
Referenced by operator*(), operator+(), operator-(), and operator/().
|
inline |
|
inline |
Returns true if both the x and y coordinates are set to +0.
0; otherwise returns false.
Definition at line 277 of file qpoint.h.
Referenced by QGraphicsItemGroup::addToGroup(), QGraphicsItemPrivate::childrenBoundingRectHelper(), QTextControl::createStandardContextMenu(), QVGPixmapConvolutionFilter::draw(), QVGPixmapColorizeFilter::draw(), QVGPixmapDropShadowFilter::draw(), QVGPixmapBlurFilter::draw(), QSvgUse::draw(), QGraphicsScenePrivate::drawItemHelper(), QVGPaintEngine::drawPixmapFragments(), QWin32PrintEngine::drawTiledPixmap(), drawVGImage(), QAbstractScrollArea::event(), QPlainTextEdit::event(), printPage(), QGraphicsItemGroup::removeFromGroup(), and QPolygonF::translate().
qreal QPointF::manhattanLength | ( | ) | const |
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" of the vector from the origin to the point.
Definition at line 603 of file qpoint.cpp.
Referenced by QmlJSDebugger::ZoomTool::mouseMoveEvent().
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
For example:
Definition at line 324 of file qpoint.h.
Adds the given point to this point and returns a reference to this point.
For example:
Definition at line 312 of file qpoint.h.
Subtracts the given point from this point and returns a reference to this point.
For example:
Definition at line 319 of file qpoint.h.
Divides both x and y by the given divisor, and returns a reference to this point.
For example:
Definition at line 364 of file qpoint.h.
|
inline |
Returns a reference to the x coordinate of this point.
Using a reference makes it possible to directly manipulate x. For example:
Definition at line 302 of file qpoint.h.
Referenced by QDirectFBPaintEnginePrivate::drawTiledPixmap(), QAbstractScrollArea::event(), QPlainTextEdit::event(), QX11PaintEnginePrivate::fillPath(), QGraphicsView::mapFromScene(), QGraphicsView::mapToScene(), QGraphicsViewPrivate::mapToScene(), qt_find_ellipse_coords(), QRasterizer::rasterizeLine(), QmlJSDebugger::ZoomTool::scaleView(), QLineF::setAngle(), QGraphicsWidgetPrivate::windowFrameHoverMoveEvent(), and QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent().
|
inline |
Returns a reference to the y coordinate of this point.
Using a reference makes it possible to directly manipulate y. For example:
Definition at line 307 of file qpoint.h.
Referenced by QPlainTextEditControl::blockBoundingRect(), QDirectFBPaintEnginePrivate::drawTiledPixmap(), QPlainTextEditControl::hitTest(), QGraphicsView::mapFromScene(), QGraphicsView::mapToScene(), QGraphicsViewPrivate::mapToScene(), QPlainTextEdit::paintEvent(), qt_find_ellipse_coords(), QRasterizer::rasterizeLine(), QmlJSDebugger::ZoomTool::scaleView(), QLineF::setAngle(), QGraphicsWidgetPrivate::windowFrameHoverMoveEvent(), and QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent().
|
inline |
Sets the x coordinate of this point to the given x coordinate.
Definition at line 292 of file qpoint.h.
Referenced by QTriangulator< T >::ComplexToSimple::Event::operator<(), operator>>(), QDeclarativePointFValueType::setX(), and sign().
|
inline |
Sets the y coordinate of this point to the given y coordinate.
Definition at line 297 of file qpoint.h.
Referenced by QTriangulator< T >::ComplexToSimple::Event::operator<(), operator>>(), QDeclarativePointFValueType::setY(), and sign().
|
inline |
Rounds the coordinates of this point to the nearest integer, and returns a QPoint object with the rounded coordinates.
Definition at line 376 of file qpoint.h.
Referenced by QPainter::brushOrigin(), QGraphicsProxyWidget::contextMenuEvent(), QGestureManager::deliverEvents(), QGraphicsProxyWidget::dragEnterEvent(), QGraphicsProxyWidget::dragMoveEvent(), QTextDocumentLayoutPrivate::drawListItem(), QWidget::event(), QPlainTextEdit::inputMethodQuery(), QTextEdit::inputMethodQuery(), QGraphicsTextItem::inputMethodQuery(), QGraphicsProxyWidgetPrivate::inputMethodQueryHelper(), QOpenGLPaintEnginePrivate::isFastRect(), QGraphicsView::mapFromScene(), QWidget::mapToGlobal(), QGestureEvent::mapToGraphicsScene(), QmlJSDebugger::LiveSelectionTool::mouseMoveEvent(), QTextControlPrivate::mouseMoveEvent(), QTextControlPrivate::mousePressEvent(), QmlJSDebugger::LiveSelectionTool::mouseReleaseEvent(), QGraphicsEffectSource::pixmap(), QGraphicsItemEffectSourcePrivate::pixmap(), QCursor::pos(), QLineControl::processEvent(), qt_mac_handleTabletEvent(), QSwipeGestureRecognizer::recognize(), QTapGestureRecognizer::recognize(), QTapAndHoldGestureRecognizer::recognize(), QDeclarativePathView::sendMouseEvent(), QDeclarativeMouseArea::sendMouseEvent(), QDeclarativeFlickable::sendMouseEvent(), QDeclarativePinchArea::sendMouseEvent(), QGraphicsScenePrivate::sendTouchBeginEvent(), QGraphicsProxyWidgetPrivate::sendWidgetMouseEvent(), QLineF::toLine(), QGraphicsScenePrivate::touchEventHandler(), QApplicationPrivate::translateRawTouchEvent(), QETWidget::translateTabletEvent(), QGraphicsPixmapItemPrivate::updateShape(), QApplicationPrivate::updateTouchPointsForWidget(), QGraphicsProxyWidget::wheelEvent(), QGraphicsWidgetPrivate::windowFrameHoverMoveEvent(), and QGraphicsWidgetPrivate::windowFrameMouseReleaseEvent().
|
inline |
Returns the x-coordinate of this point.
Definition at line 282 of file qpoint.h.
Referenced by QFreetypeFace::addBitmapToPath(), QPdfEnginePrivate::addBrushPattern(), addCircle(), QPainterPath::addEllipse(), addGlyphToPath(), addLineTo(), QGL2PEXVertexArray::addPath(), QPathSegments::addPath(), QPainterPath::addPolygon(), QPainterPath::addText(), QGraphicsItemGroup::addToGroup(), QStyleHelper::angle(), QLineF::angle(), boundingRect(), QPolygonF::boundingRect(), QSvgLine::bounds(), QRasterPaintEnginePrivate::brushMatrix(), QGraphicsView::centerOn(), QAccessibleTextWidget::characterRect(), comparePoints(), component(), computeAngle(), QRectF::contains(), QOutlineMapper::convertElements(), QPainter::PixmapFragment::create(), QTriangulatingStroker::cubicTo(), QPainterPath::cubicTo(), QOutlineMapper::curveTo(), QCoreGraphicsPaintEnginePrivate::devicePixelSize(), QGraphicsItem::deviceTransform(), QDeclarativeParentChangePrivate::doChange(), dot(), QDeclarativeTextLayout::draw(), QPixmapConvolutionFilter::draw(), QSvgText::draw(), QTextLine::draw(), draw_text_item_win(), QRasterPaintEngine::drawBitmap(), QPaintEnginePrivate::drawBoxTextItem(), QVGPaintEngine::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), QTextLayout::drawCursor(), QStyleHelper::drawDial(), QPainter::drawEllipse(), QTextDocumentLayoutPrivate::drawFrame(), QX11PaintEngine::drawFreetype(), QVGPaintEngine::drawImage(), QRasterPaintEngine::drawImage(), QRasterPaintEnginePrivate::drawImage(), QPainter::drawImage(), QGraphicsScenePrivate::drawItemHelper(), QCosmeticStroker::drawLine(), QCoreGraphicsPaintEngine::drawLines(), QVGPaintEngine::drawLines(), QOpenGLPaintEngine::drawLines(), QGLEllipseMaskGenerator::drawMask(), QCosmeticStroker::drawPath(), QWin32PrintEngine::drawPixmap(), QPainter::drawPixmap(), QCoreGraphicsPaintEngine::drawPoints(), QX11PaintEngine::drawPoints(), QCosmeticStroker::drawPoints(), QOpenGLPaintEngine::drawPoints(), QVGPaintEngine::drawPoints(), QPaintEngine::drawPoints(), QPaintEngineEx::drawPoints(), QVGPaintEngine::drawPolygon(), QOpenGLPaintEngine::drawPolygon(), QSvgPaintEngine::drawPolygon(), QPaintBufferEngine::drawPolygon(), QVGPaintEngine::drawRects(), QPainter::drawStaticText(), QPainter::drawText(), QEmulationPaintEngine::drawTextItem(), QAlphaPaintEngine::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), QPicturePaintEngine::drawTextItem(), QGL2PaintEngineEx::drawTextItem(), QOpenGLPaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QSvgPaintEngine::drawTextItem(), QPaintEngine::drawTextItem(), QRasterPaintEngine::drawTextItem(), QPdfBaseEnginePrivate::drawTextItem(), QPainter::drawTextItem(), drawTextItemDecoration(), QOpenGLPaintEnginePrivate::drawTiledImageAsPath(), QPSPrintEngine::drawTiledPixmap(), QCoreGraphicsPaintEngine::drawTiledPixmap(), QDirectFBPaintEnginePrivate::drawTiledPixmap(), QX11PaintEngine::drawTiledPixmap(), QOpenGLPaintEngine::drawTiledPixmap(), QVGPaintEngine::drawTiledPixmap(), QPaintEngine::drawTiledPixmap(), QRasterPaintEngine::drawTiledPixmap(), QPaintEngineEx::drawTiledPixmap(), QPainter::drawTiledPixmap(), drawVGImage(), QX11PaintEngine::drawXLFD(), QLineF::dx(), QOutlineMapper::endOutline(), epsilonCompare(), QAbstractScrollArea::event(), QPlainTextEdit::event(), QPicture::exec(), QTextControlPrivate::extendWordwiseSelection(), QBlitterPaintEngine::fillRect(), QDirectFBPaintEngine::fillRect(), QVGPaintEngine::fillRect(), findCrossings(), flipPoint(), QFixedPoint::fromPointF(), QBezier::fromPoints(), QGLRectMaskGenerator::generateTrapezoids(), QDeclarativeCompiler::genLiteralAssignment(), QStaticTextPrivate::get(), good_offset(), QDeclarativePathViewPrivate::handleMouseMoveEvent(), QDeclarativeFlickablePrivate::handleMouseMoveEvent(), QDeclarativePathViewPrivate::handleMousePressEvent(), QDeclarativeFlickablePrivate::handleMouseReleaseEvent(), QIntersectionFinder::hasIntersections(), QTextDocumentLayout::hitTest(), QPlainTextEditControl::hitTest(), QTextDocumentLayoutPrivate::hitTest(), QGraphicsSceneBspTree::initialize(), QTriangulator< T >::initialize(), QLineF::intersect(), QWingedEdge::isInside(), QLineF::isNull(), QGraphicsItem::itemTransform(), QStroker::joinPoints(), QTextDocumentLayoutPrivate::layoutBlock(), QLineF::length(), QIntersectionFinder::linesIntersect(), QPainterPath::lineTo(), QOutlineMapper::lineTo(), QMatrix::map(), QTransform::map(), QDeclarativeItem::mapFromItem(), QGraphicsItem::mapFromScene(), mapHomogeneous(), QMatrix4x4::mapRect(), QDeclarativeItem::mapToItem(), QGraphicsItem::mapToScene(), QGraphicsViewPrivate::mapToViewRect(), QBezier::midTangent(), QDeclarativeTextInput::mouseDoubleClickEvent(), QTextControlPrivate::mouseMoveEvent(), QDeclarativeMouseArea::mouseMoveEvent(), QDeclarativeTextInput::mouseMoveEvent(), QGraphicsItem::mouseMoveEvent(), QTextControlPrivate::mousePressEvent(), QDeclarativeTextInput::mousePressEvent(), QmlJSDebugger::ZoomTool::mouseReleaseEvent(), QRectF::moveBottomLeft(), QRectF::moveBottomRight(), QRectF::moveCenter(), QPainterPath::moveTo(), QOutlineMapper::moveTo(), QRectF::moveTo(), QRectF::moveTopLeft(), QRectF::moveTopRight(), QKdPointFinder::operator()(), operator*(), QTriangulator< T >::ComplexToSimple::Event::operator<(), QPdf::ByteStream::operator<<(), operator<<(), QVGPaintEnginePrivate::painterPathToVGPath(), QPlainTextEdit::paintEvent(), parsePathDataFast(), QPdf::patternForBrush(), QPaintBufferEngine::penChanged(), QLineF::pointAt(), QDeclarativePathViewPrivate::pointNear(), PointToVector(), QGraphicsItemAnimation::posAt(), printPage(), QDashedStrokeProcessor::process(), QDashStroker::processCurrentSubpath(), QTextControl::processEvent(), QConicalGradient::QConicalGradient(), QKdPointFinder::QKdPointFinder(), QLinearGradient::QLinearGradient(), qMapGradientToRect(), QPainterPath::QPainterPath(), QRadialGradient::QRadialGradient(), QRectF::QRectF(), qt_find_ellipse_coords(), qt_isExtendedRadialGradient(), qt_mac_compose_path(), qt_painterpath_check_crossing(), qt_painterpath_isect_curve(), qt_painterpath_isect_line(), qt_polygon_isect_line(), qt_stroke_side(), qt_vg_drawVGImageStencil(), QTextLineItemIterator::QTextLineItemIterator(), QPainterPath::quadTo(), QRasterizer::rasterizeLine(), QPanGestureRecognizer::recognize(), QSwipeGestureRecognizer::recognize(), QTextControlPrivate::rectForPosition(), QGraphicsItemGroup::removeFromGroup(), QCosmeticStroker::renderCubic(), QMacPinchGestureRecognizer::reset(), QDeclarativeFlickable::resizeContent(), QSvgPaintEngine::saveLinearGradientBrush(), QSvgPaintEngine::saveRadialGradientBrush(), QmlJSDebugger::ZoomTool::scaleView(), QGLEllipseMaskGenerator::screenRect(), QDeclarativeTextInputPrivate::sendMouseEventToInputContext(), QLineF::setAngle(), QRectF::setBottomLeft(), QRectF::setBottomRight(), QVGPaintEnginePrivate::setBrush(), QPainter::setBrushOrigin(), QVGPaintEnginePrivate::setBrushTransform(), QRadialGradient::setCenter(), QConicalGradient::setCenter(), QPrintPreviewWidgetPrivate::setCurrentPage(), QCoreGraphicsPaintEnginePrivate::setFillBrush(), QLinearGradient::setFinalStop(), QRadialGradient::setFocalPoint(), QLineF::setLength(), QGraphicsItemAnimation::setPosAt(), QGraphicsItemPrivate::setPosHelper(), QDeclarativeItemPrivate::setPosHelper(), QTextLine::setPosition(), QmlJSDebugger::LiveSelectionRectangle::setRect(), QLinearGradient::setStart(), QRectF::setTopLeft(), QRectF::setTopRight(), QGraphicsItem::setTransformOriginPoint(), QGLShaderProgram::setUniformValue(), QSpanData::setup(), QDeclarativeTextPrivate::setupTextLayout(), QDeclarativePointFValueType::setValue(), QGraphicsItem::setY(), snapTo26Dot6Grid(), splitPolygon(), QPaintEngineEx::stroke(), QRasterPaintEngine::stroke(), QStrokerOps::strokeEllipse(), QStrokerOps::strokePath(), QStrokerOps::strokePolygon(), QTessellator::tessellateRect(), QTest::toString(), QDeclarativeParentAnimation::transition(), QPainterPath::translate(), QPainter::translate(), QRectF::translate(), QGLTrapezoid::translated(), QPainterPath::translated(), QRectF::translated(), QApplicationPrivate::translateTouchEvent(), QLineF::unitVector(), QX11PaintEngine::updateBrush(), QGL2PaintEngineExPrivate::updateBrushUniforms(), QOpenGLPaintEnginePrivate::updateGradient(), QDeclarativePathViewPrivate::updateItem(), QDeclarativePinchArea::updatePinch(), QDeclarativeFlipablePrivate::updateSceneTransformFromParent(), QGraphicsPixmapItemPrivate::updateShape(), QVGPaintEnginePrivate::vectorPathToVGPath(), QCommonStylePrivate::viewItemDrawText(), QGraphicsWidget::windowFrameSectionAt(), QGraphicsItem::x(), QLineF::x1(), QLineF::x2(), and QGraphicsDropShadowEffect::xOffset().
|
inline |
Returns the y-coordinate of this point.
Definition at line 287 of file qpoint.h.
Referenced by QFreetypeFace::addBitmapToPath(), QPdfEnginePrivate::addBrushPattern(), addCircle(), QPainterPath::addEllipse(), addGlyphToPath(), addLineTo(), QGL2PEXVertexArray::addPath(), QPathSegments::addPath(), QPainterPath::addPolygon(), addSelectedRegionsToPath(), QPainterPath::addText(), QGraphicsItemGroup::addToGroup(), QStyleHelper::angle(), QLineF::angle(), QPlainTextEditControl::blockBoundingRect(), boundingRect(), QPolygonF::boundingRect(), QSvgLine::bounds(), QRasterPaintEnginePrivate::brushMatrix(), QGraphicsView::centerOn(), QAccessibleTextWidget::characterRect(), QTessellatorPrivate::collectAndSortVertices(), comparePoints(), component(), computeAngle(), QRectF::contains(), QOutlineMapper::convertElements(), QPainter::PixmapFragment::create(), QTriangulatingStroker::cubicTo(), QPainterPath::cubicTo(), QOutlineMapper::curveTo(), QCoreGraphicsPaintEnginePrivate::devicePixelSize(), QGraphicsItem::deviceTransform(), QDeclarativeParentChangePrivate::doChange(), dot(), QDeclarativeTextLayout::draw(), QPixmapConvolutionFilter::draw(), QTextLayout::draw(), QSvgText::draw(), QTextLine::draw(), draw_text_item_win(), QRasterPaintEngine::drawBitmap(), QPaintEnginePrivate::drawBoxTextItem(), QVGPaintEngine::drawCachedGlyphs(), QRasterPaintEngine::drawCachedGlyphs(), QTextLayout::drawCursor(), QStyleHelper::drawDial(), QPainter::drawEllipse(), QTextDocumentLayoutPrivate::drawFrame(), QX11PaintEngine::drawFreetype(), QVGPaintEngine::drawImage(), QRasterPaintEngine::drawImage(), QRasterPaintEnginePrivate::drawImage(), QPainter::drawImage(), QGraphicsScenePrivate::drawItemHelper(), QCosmeticStroker::drawLine(), QCoreGraphicsPaintEngine::drawLines(), QVGPaintEngine::drawLines(), QOpenGLPaintEngine::drawLines(), QGLEllipseMaskGenerator::drawMask(), QCosmeticStroker::drawPath(), QWin32PrintEngine::drawPixmap(), QPainter::drawPixmap(), QCoreGraphicsPaintEngine::drawPoints(), QX11PaintEngine::drawPoints(), QCosmeticStroker::drawPoints(), QOpenGLPaintEngine::drawPoints(), QVGPaintEngine::drawPoints(), QPaintEngine::drawPoints(), QPaintEngineEx::drawPoints(), QPainter::drawPoints(), QVGPaintEngine::drawPolygon(), QOpenGLPaintEngine::drawPolygon(), QSvgPaintEngine::drawPolygon(), QPaintBufferEngine::drawPolygon(), QVGPaintEngine::drawRects(), QPainter::drawStaticText(), QPainter::drawText(), QEmulationPaintEngine::drawTextItem(), QAlphaPaintEngine::drawTextItem(), QCoreGraphicsPaintEngine::drawTextItem(), QPicturePaintEngine::drawTextItem(), QGL2PaintEngineEx::drawTextItem(), QOpenGLPaintEngine::drawTextItem(), QPdfEnginePrivate::drawTextItem(), QSvgPaintEngine::drawTextItem(), QPaintEngine::drawTextItem(), QRasterPaintEngine::drawTextItem(), QPdfBaseEnginePrivate::drawTextItem(), QPainter::drawTextItem(), drawTextItemDecoration(), QOpenGLPaintEnginePrivate::drawTiledImageAsPath(), QPSPrintEngine::drawTiledPixmap(), QCoreGraphicsPaintEngine::drawTiledPixmap(), QDirectFBPaintEnginePrivate::drawTiledPixmap(), QX11PaintEngine::drawTiledPixmap(), QOpenGLPaintEngine::drawTiledPixmap(), QVGPaintEngine::drawTiledPixmap(), QPaintEngine::drawTiledPixmap(), QRasterPaintEngine::drawTiledPixmap(), QPaintEngineEx::drawTiledPixmap(), QPainter::drawTiledPixmap(), drawVGImage(), QX11PaintEngine::drawXLFD(), QLineF::dy(), QOutlineMapper::endOutline(), QPlainTextEditPrivate::ensureVisible(), epsilonCompare(), QAbstractScrollArea::event(), QPlainTextEdit::event(), QPicture::exec(), QBlitterPaintEngine::fillRect(), QDirectFBPaintEngine::fillRect(), QVGPaintEngine::fillRect(), findCrossings(), flipPoint(), flowPosition(), QFixedPoint::fromPointF(), QBezier::fromPoints(), QGLRectMaskGenerator::generateTrapezoids(), QDeclarativeCompiler::genLiteralAssignment(), QStaticTextPrivate::get(), good_offset(), QDeclarativePathViewPrivate::handleMouseMoveEvent(), QDeclarativeFlickablePrivate::handleMouseMoveEvent(), QDeclarativePathViewPrivate::handleMousePressEvent(), QDeclarativeFlickablePrivate::handleMouseReleaseEvent(), QIntersectionFinder::hasIntersections(), QTextDocumentLayout::hitTest(), QPlainTextEditControl::hitTest(), QTextDocumentLayoutPrivate::hitTest(), QGraphicsSceneBspTree::initialize(), QTriangulator< T >::initialize(), QLineF::intersect(), isAbove(), QWingedEdge::isInside(), QLineF::isNull(), QGraphicsItem::itemTransform(), QStroker::joinPoints(), QTextDocumentLayoutPrivate::layoutBlock(), QLineF::length(), QIntersectionFinder::linesIntersect(), QPainterPath::lineTo(), QOutlineMapper::lineTo(), QMatrix::map(), QTransform::map(), QDeclarativeItem::mapFromItem(), QGraphicsItem::mapFromScene(), mapHomogeneous(), QMatrix4x4::mapRect(), QDeclarativeItem::mapToItem(), QGraphicsItem::mapToScene(), QGraphicsViewPrivate::mapToViewRect(), QBezier::midTangent(), QDeclarativeMouseArea::mouseMoveEvent(), QGraphicsItem::mouseMoveEvent(), QmlJSDebugger::ZoomTool::mouseReleaseEvent(), QRectF::moveBottomLeft(), QRectF::moveBottomRight(), QRectF::moveCenter(), QPainterPath::moveTo(), QOutlineMapper::moveTo(), QRectF::moveTo(), QRectF::moveTopLeft(), QRectF::moveTopRight(), QKdPointFinder::operator()(), operator*(), QTriangulator< T >::ComplexToSimple::Event::operator<(), QPdf::ByteStream::operator<<(), operator<<(), QVGPaintEnginePrivate::painterPathToVGPath(), QPlainTextEdit::paintEvent(), parsePathDataFast(), QPdf::patternForBrush(), QLineF::pointAt(), QDeclarativePathViewPrivate::pointNear(), PointToVector(), QGraphicsItemAnimation::posAt(), printPage(), QDashedStrokeProcessor::process(), QDashStroker::processCurrentSubpath(), QTextControl::processEvent(), QConicalGradient::QConicalGradient(), QKdPointFinder::QKdPointFinder(), QLinearGradient::QLinearGradient(), QPainterPath::QPainterPath(), QRadialGradient::QRadialGradient(), QRectF::QRectF(), qt_find_ellipse_coords(), qt_isExtendedRadialGradient(), qt_mac_compose_path(), qt_painterpath_check_crossing(), qt_painterpath_isect_curve(), qt_painterpath_isect_line(), qt_polygon_isect_line(), qt_stroke_side(), qt_vg_drawVGImageStencil(), QPainterPath::quadTo(), QRasterizer::rasterizeLine(), QPanGestureRecognizer::recognize(), QSwipeGestureRecognizer::recognize(), QTextControlPrivate::rectForPosition(), QGraphicsItemGroup::removeFromGroup(), QCosmeticStroker::renderCubic(), QMacPinchGestureRecognizer::reset(), QDeclarativeFlickable::resizeContent(), QSvgPaintEngine::saveLinearGradientBrush(), QSvgPaintEngine::saveRadialGradientBrush(), QmlJSDebugger::ZoomTool::scaleView(), QGLEllipseMaskGenerator::screenRect(), QTextEdit::scrollToAnchor(), QLineF::setAngle(), QRectF::setBottomLeft(), QRectF::setBottomRight(), QPainter::setBrushOrigin(), QVGPaintEnginePrivate::setBrushTransform(), QRadialGradient::setCenter(), QConicalGradient::setCenter(), QPrintPreviewWidgetPrivate::setCurrentPage(), QCoreGraphicsPaintEnginePrivate::setFillBrush(), QLinearGradient::setFinalStop(), QRadialGradient::setFocalPoint(), QLineF::setLength(), QGraphicsItemAnimation::setPosAt(), QGraphicsItemPrivate::setPosHelper(), QDeclarativeItemPrivate::setPosHelper(), QTextLine::setPosition(), QmlJSDebugger::LiveSelectionRectangle::setRect(), QLinearGradient::setStart(), QRectF::setTopLeft(), QRectF::setTopRight(), QGraphicsItem::setTransformOriginPoint(), QGLShaderProgram::setUniformValue(), QSpanData::setup(), QDeclarativeTextPrivate::setupTextLayout(), QDeclarativePointFValueType::setValue(), QGraphicsItem::setX(), snapTo26Dot6Grid(), splitPolygon(), QPaintEngineEx::stroke(), QRasterPaintEngine::stroke(), QStrokerOps::strokeEllipse(), QStrokerOps::strokePath(), QStrokerOps::strokePolygon(), QTessellator::tessellateRect(), QBezier::tForY(), QTest::toString(), QDeclarativeParentAnimation::transition(), QPainterPath::translate(), QPainter::translate(), QRectF::translate(), QGLTrapezoid::translated(), QPainterPath::translated(), QRectF::translated(), QApplicationPrivate::translateTouchEvent(), QLineF::unitVector(), QX11PaintEngine::updateBrush(), QGL2PaintEngineExPrivate::updateBrushUniforms(), QOpenGLPaintEnginePrivate::updateGradient(), QDeclarativePathViewPrivate::updateItem(), QDeclarativePinchArea::updatePinch(), QDeclarativeFlipablePrivate::updateSceneTransformFromParent(), QGraphicsPixmapItemPrivate::updateShape(), QVGPaintEnginePrivate::vectorPathToVGPath(), QCommonStylePrivate::viewItemDrawText(), QGraphicsWidget::windowFrameSectionAt(), QGraphicsItem::y(), QLineF::y1(), QLineF::y2(), and QGraphicsDropShadowEffect::yOffset().
Returns a copy of the given point, multiplied by the given factor.
Definition at line 349 of file qpoint.h.
Returns a QPointF object that is the sum of the given points, p1 and p2; each component is added separately.
Definition at line 339 of file qpoint.h.
Returns a QPointF object that is formed by subtracting p2 from p1; each component is subtracted separately.
Definition at line 344 of file qpoint.h.
Returns a QPointF object that is formed by changing the sign of both components of the given point.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Equivalent to {QPointF(0,0)
- point}.
Definition at line 359 of file qpoint.h.
Returns the QPointF object formed by dividing both components of the given point by the given divisor.
Definition at line 371 of file qpoint.h.
|
related |
Writes the given point to the given stream and returns a reference to the stream.
Definition at line 849 of file qpoint.cpp.
Referenced by toPoint().
|
related |
Reads a point from the given stream into the given point and returns a reference to the stream.
Definition at line 868 of file qpoint.cpp.
|
friend |
|
private |
Definition at line 253 of file qpoint.h.
Referenced by isNull(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), rx(), setX(), toPoint(), and x().
|
private |
Definition at line 254 of file qpoint.h.
Referenced by isNull(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator==(), ry(), setY(), toPoint(), and y().