BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
mouseposinfo.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/view/mvvm/plotting/mouseposinfo.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_MOUSEPOSINFO_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_MOUSEPOSINFO_H
17 
18 #include "mvvm/view_export.h"
19 
20 class QCustomPlot;
21 
22 namespace ModelView {
23 
24 //! Aggregate to hold mouse position info in QCustomPlot context.
25 //! Position is given in axis coordinates corresponding to the current zoom level.
26 
27 struct MVVM_VIEW_EXPORT MousePosInfo {
28  double xpos{0.0};
29  double ypos{0.0};
30  bool in_axes_range{false};
31 };
32 
33 } // namespace ModelView
34 
35 #endif // BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_MOUSEPOSINFO_H
materialitems.h Collection of materials to populate MaterialModel.
Aggregate to hold mouse position info in QCustomPlot context.
Definition: mouseposinfo.h:27