From e72f5a6012086538a0fa3fa334bf9051c2daa63e Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sat, 23 Mar 2013 01:31:23 -0300 Subject: [PATCH] timeline-element: Add a macro to get element 'end' --- docs/libs/ges-sections.txt | 1 + ges/ges-timeline-element.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs/libs/ges-sections.txt b/docs/libs/ges-sections.txt index 0f64f48..327014b 100644 --- a/docs/libs/ges-sections.txt +++ b/docs/libs/ges-sections.txt @@ -345,6 +345,7 @@ ges_timeline_element_trim GES_TIMELINE_ELEMENT_PARENT GES_TIMELINE_ELEMENT_TIMELINE GES_TIMELINE_ELEMENT_START +GES_TIMELINE_ELEMENT_END GES_TIMELINE_ELEMENT_INPOINT GES_TIMELINE_ELEMENT_DURATION GES_TIMELINE_ELEMENT_MAX_DURATION diff --git a/ges/ges-timeline-element.h b/ges/ges-timeline-element.h index 6cf1873..b2d0173 100644 --- a/ges/ges-timeline-element.h +++ b/ges/ges-timeline-element.h @@ -45,6 +45,14 @@ typedef struct _GESTimelineElementPrivate GESTimelineElementPrivate; #define GES_TIMELINE_ELEMENT_START(obj) (((GESTimelineElement*)obj)->start) /** + * GES_TIMELINE_ELEMENT_END: + * @obj: a #GESTimelineElement + * + * The end position of the object (in nanoseconds). + */ +#define GES_TIMELINE_ELEMENT_END(obj) ((((GESTimelineElement*)obj)->start) + (((GESTimelineElement*)obj)->duration)) + +/** * GES_TIMELINE_ELEMENT_INPOINT: * @obj: a #GESTimelineElement * -- 2.7.4