Horizon
Loading...
Searching...
No Matches
msd_tuning_window.hpp
1#pragma once
2#include <gtkmm.h>
3#include "util/changeable.hpp"
4#include "util/msd.hpp"
5
6namespace horizon {
7class MSDTuningWindow : public Gtk::Window, public Changeable {
8public:
10
11 MSD::Params get_msd_params() const;
12
13private:
14 Gtk::SpinButton *sp_mass = nullptr;
15 Gtk::SpinButton *sp_springyness = nullptr;
16 Gtk::SpinButton *sp_damping = nullptr;
17 Gtk::SpinButton *sp_time = nullptr;
18
19 Gtk::DrawingArea *area = nullptr;
20
21 Glib::RefPtr<Pango::Layout> layout;
22 void create_layout();
23 void reset();
24
25
26 bool draw_graph(const Cairo::RefPtr<Cairo::Context> &cr);
27};
28} // namespace horizon
Definition changeable.hpp:5
Definition msd_tuning_window.hpp:7
Definition msd.hpp:13