MCPcopy Create free account
hub / github.com/cutechess/cutechess / layerableAt

Method layerableAt

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:16317–16327  ·  view source on GitHub ↗

! \internal Returns the top-most layerable at pixel position \a pos. If \a onlySelectable is set to true, only those layerables that are selectable will be considered. (Layerable subclasses communicate their selectability via the QCPLayerable::selectTest method, by returning -1.) \a selectionDetails is an output parameter that contains selection specifics of the affected layerable. Thi

Source from the content-addressed store, hash-verified

16315 \see layerableListAt, layoutElementAt, axisRectAt
16316*/
16317QCPLayerable *QCustomPlot::layerableAt(const QPointF &pos, bool onlySelectable, QVariant *selectionDetails) const
16318{
16319 QList<QVariant> details;
16320 QList<QCPLayerable*> candidates = layerableListAt(pos, onlySelectable, selectionDetails ? &details : nullptr);
16321 if (selectionDetails && !details.isEmpty())
16322 *selectionDetails = details.first();
16323 if (!candidates.isEmpty())
16324 return candidates.first();
16325 else
16326 return nullptr;
16327}
16328
16329/*! \internal
16330

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected