Remove 'pipex' from my pbd.vcproj as it's not needed for Ardour3
[ardour.git] / gtk2_ardour / shuttle_control.h
index c16328e3848c969020529c60424e8faf21d9e4bd..0b289c51801086058fdf5adaec0361e1b932821f 100644 (file)
@@ -40,7 +40,7 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
 
        void map_transport_state ();
        void update_speed_display ();
-       void set_shuttle_fract (double);
+        void set_shuttle_fract (double, bool zero_ok = false);
        double get_shuttle_fract () const { return shuttle_fract; }
        void set_session (ARDOUR::Session*);
 
@@ -49,6 +49,9 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
                void set_value (double);
                double get_value (void) const;
 
+                double lower() const { return -1.0; }
+                double upper() const { return  1.0; }
+
                ShuttleControl& sc;
        };
 
@@ -84,13 +87,13 @@ class ShuttleControl : public CairoWidget, public ARDOUR::SessionHandlePtr
        bool on_scroll_event (GdkEventScroll*);
        bool on_motion_notify_event(GdkEventMotion*);
 
-       void render (cairo_t *);
+       void render (cairo_t *, cairo_rectangle_t*);
 
        void on_size_allocate (Gtk::Allocation&);
        bool on_query_tooltip (int, int, bool, const Glib::RefPtr<Gtk::Tooltip>&);
 
-       gint mouse_shuttle (double x, bool force);
-       void use_shuttle_fract (bool force);
+        gint mouse_shuttle (double x, bool force);
+        void use_shuttle_fract (bool force, bool zero_ok = false);
        void parameter_changed (std::string);
 
        void set_shuttle_units (ARDOUR::ShuttleUnits);