add new sigc++2 directory
[ardour.git] / libs / ardour / ardour / region.h
index 4196aac886bea1799af86bf39ae4146589c44bfe..00315846b2e51e390f4faf14769775499af4b013 100644 (file)
@@ -98,6 +98,16 @@ class Region : public Automatable, public boost::enable_shared_from_this<Region>
 
        const DataType& data_type() const { return _type; }
 
+       /**
+        * Thats how the region parameters play together:
+        * <PRE>
+        * |------------------------------------------------------------------- track
+        *                    |..........[------------------].....| region
+        * |-----------------------------| _position
+        *                               |------------------| _length
+        *                    |----------| _start
+        * </PRE>
+        */
        nframes_t position () const { return _position; }
        nframes_t start ()    const { return _start; }
        nframes_t length()    const { return _length; }
@@ -138,6 +148,7 @@ class Region : public Automatable, public boost::enable_shared_from_this<Region>
 
        PositionLockStyle positional_lock_style() const { return _positional_lock_style; }
        void set_position_lock_style (PositionLockStyle ps);
+       void recompute_position_from_lock_style ();
 
        virtual bool should_save_state () const { return !(_flags & DoNotSaveState); };