! \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
| 15562 | \see layerableListAt, layoutElementAt, axisRectAt |
| 15563 | */ |
| 15564 | QCPLayerable *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 |