add accessor macro

This commit is contained in:
Brandon Lewis 2010-07-09 12:09:08 +02:00 committed by Edward Hervey
parent b02cf5b34e
commit d92d922c52
2 changed files with 9 additions and 0 deletions

View file

@ -255,6 +255,7 @@ GES_TIMELINE_OBJECT_DURATION
GES_TIMELINE_OBJECT_INPOINT
GES_TIMELINE_OBJECT_PRIORITY
GES_TIMELINE_OBJECT_START
GES_TIMELINE_OBJECT_HEIGHT
ges_timeline_object_set_inpoint
ges_timeline_object_set_start
ges_timeline_object_set_duration

View file

@ -127,6 +127,14 @@ typedef gboolean (*CreateTrackObjectsFunc) (GESTimelineObject * object,
*/
#define GES_TIMELINE_OBJECT_PRIORITY(obj) (((GESTimelineObject*)obj)->priority)
/**
* GES_TIMELINE_OBJECT_HEIGHT:
* @obj: a #GESTimelineObject
*
* The span of priorities this object occupies.
*/
#define GES_TIMELINE_OBJECT_HEIGHT(obj) (((GESTimelineObject*)obj)->height)
/**
* GESTimelineObject:
* @layer: the #GESTimelineLayer where this object is being used.