summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/types.hpp
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2008-12-16 23:21:01 +0000
committerCarl Hetherington <carl@carlh.net>2008-12-16 23:21:01 +0000
commit2ebb1af2997b8e8f162635b11e8acc5c5d0fe563 (patch)
treea88ebc1e46dbe43cc760626eddd57d0feac81216 /libs/evoral/evoral/types.hpp
parent43b14aa6098e266f07e1d7dfe4a8a65edda36b0a (diff)
Implement #2425: option for automation to follow region moves.
git-svn-id: svn://localhost/ardour2/branches/3.0@4326 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/types.hpp')
-rw-r--r--libs/evoral/evoral/types.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/evoral/evoral/types.hpp b/libs/evoral/evoral/types.hpp
index fc1001c7d8..4bca6f1288 100644
--- a/libs/evoral/evoral/types.hpp
+++ b/libs/evoral/evoral/types.hpp
@@ -20,6 +20,7 @@
#define EVORAL_TYPES_HPP
#include <stdint.h>
+#include <list>
namespace Evoral {
@@ -41,6 +42,16 @@ typedef double EventLength;
/** Type of an event (opaque, mapped by application) */
typedef uint32_t EventType;
+/** Type to describe the movement of a time range */
+struct RangeMove {
+ RangeMove (EventTime f, FrameTime l, EventTime t) : from (f), length (l), to (t) {}
+ EventTime from; ///< start of the range
+ FrameTime length; ///< length of the range
+ EventTime to; ///< new start of the range
+};
+
+typedef std::list<RangeMove> RangeMoveList;
+
} // namespace Evoral
#endif // EVORAL_TYPES_HPP