MCPcopy Create free account
hub / github.com/LUX-Core/lux / pixelPosition

Method pixelPosition

src/qt/qcustomplot.cpp:11344–11361  ·  view source on GitHub ↗

! Returns the final absolute pixel position of the QCPItemAnchor on the QCustomPlot surface. The pixel information is internally retrieved via QCPAbstractItem::anchorPixelPosition of the parent item, QCPItemAnchor is just an intermediary. */

Source from the content-addressed store, hash-verified

11342 parent item, QCPItemAnchor is just an intermediary.
11343*/
11344QPointF QCPItemAnchor::pixelPosition() const
11345{
11346 if (mParentItem)
11347 {
11348 if (mAnchorId > -1)
11349 {
11350 return mParentItem->anchorPixelPosition(mAnchorId);
11351 } else
11352 {
11353 qDebug() << Q_FUNC_INFO << "no valid anchor id set:" << mAnchorId;
11354 return QPointF();
11355 }
11356 } else
11357 {
11358 qDebug() << Q_FUNC_INFO << "no parent item set";
11359 return QPointF();
11360 }
11361}
11362
11363/*! \internal
11364

Callers 5

setPixelPositionMethod · 0.80
selectTestMethod · 0.80
drawMethod · 0.80
anchorPixelPositionMethod · 0.80
getFinalRectMethod · 0.80

Calls 3

anchorPixelPositionMethod · 0.80
coordToPixelMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected