MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / layerableAt

Method layerableAt

qcustomplot/qcustomplot.cpp:15564–15574  ·  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

15562 \see layerableListAt, layoutElementAt, axisRectAt
15563*/
15564QCPLayerable *QCustomPlot::layerableAt(const QPointF &pos, bool onlySelectable, QVariant *selectionDetails) const
15565{
15566 QList<QVariant> details;
15567 QList<QCPLayerable*> candidates = layerableListAt(pos, onlySelectable, selectionDetails ? &details : 0);
15568 if (selectionDetails && !details.isEmpty())
15569 *selectionDetails = details.first();
15570 if (!candidates.isEmpty())
15571 return candidates.first();
15572 else
15573 return 0;
15574}
15575
15576/*! \internal
15577

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected