25 #ifndef __SYNFIG_STUDIO_WIDGET_VECTOR_H
26 #define __SYNFIG_STUDIO_WIDGET_VECTOR_H
30 #include <gtkmm/box.h>
31 #include <gtkmm/adjustment.h>
32 #include <synfig/vector.h>
33 #include <synfig/distance.h>
34 #include <synfig/canvas.h>
42 namespace Gtk {
class SpinButton; };
46 class Widget_Distance;
53 Gtk::SpinButton* spinbutton_x;
54 Gtk::SpinButton* spinbutton_y;
59 Glib::RefPtr<Gtk::Adjustment> x_adjustment;
60 Glib::RefPtr<Gtk::Adjustment> y_adjustment;
62 synfig::Vector vector;
64 sigc::signal<void> signal_value_changed_;
66 sigc::signal<void> signal_activate_;
68 synfig::Canvas::LooseHandle canvas_;
75 synfig::Canvas::LooseHandle
get_canvas()
const {
return canvas_; }
86 void set_value(
const synfig::Vector &data);