BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Tracks mouse moves in QCustomPlot canvas. More...
Classes | |
struct | MouseMoveReporterImpl |
Public Types | |
using | callback_t = std::function< void(const MousePosInfo &pos_info)> |
Public Member Functions | |
MouseMoveReporter (QCustomPlot *custom_plot, callback_t callback) | |
~MouseMoveReporter () | |
Private Attributes | |
std::unique_ptr< MouseMoveReporterImpl > | p_impl |
Tracks mouse moves in QCustomPlot canvas.
Notifies client about mouse moves and corresponding pointer coordinates expressed in axes units at current zoom level.
Definition at line 32 of file mousemovereporter.h.
using ModelView::MouseMoveReporter::callback_t = std::function<void(const MousePosInfo& pos_info)> |
Definition at line 34 of file mousemovereporter.h.
MouseMoveReporter::MouseMoveReporter | ( | QCustomPlot * | custom_plot, |
callback_t | callback | ||
) |
Definition at line 61 of file mousemovereporter.cpp.
|
default |
|
private |
Definition at line 40 of file mousemovereporter.h.