summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/types.hpp
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-03-01 16:23:31 +0000
committerCarl Hetherington <carl@carlh.net>2011-03-01 16:23:31 +0000
commit28d3dd69de2d99fabcc556f4c41aafdf3c1cb1cc (patch)
tree6d8c88b132283cfd2f8991b679310bdeed53272c /libs/evoral/evoral/types.hpp
parentc89603465b3f412a9f0a94a374bcbc64090bbfeb (diff)
Update session range on trimming regions.
git-svn-id: svn://localhost/ardour2/branches/3.0@9004 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/types.hpp')
-rw-r--r--libs/evoral/evoral/types.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/evoral/evoral/types.hpp b/libs/evoral/evoral/types.hpp
index 63bfe00027..3d98d23e22 100644
--- a/libs/evoral/evoral/types.hpp
+++ b/libs/evoral/evoral/types.hpp
@@ -47,6 +47,14 @@ static inline bool musical_time_equal (MusicalTime a, MusicalTime b) {
/** Type of an event (opaque, mapped by application) */
typedef uint32_t EventType;
+/** Type to describe a time range */
+template<typename T>
+struct Range {
+ Range (T f, T t) : from (f), to (t) {}
+ T from; ///< start of the range
+ T to; ///< end of the range
+};
+
/** Type to describe the movement of a time range */
template<typename T>
struct RangeMove {