ges-timeline-object: Add convenience macros

This commit is contained in:
Edward Hervey 2009-09-29 15:25:54 +02:00
parent 23d2bdcca1
commit 733aebfb1c
2 changed files with 37 additions and 0 deletions

View file

@ -136,6 +136,10 @@ GES_TYPE_TIMELINE_LAYER
GESTimelineObject
GESTimelineObjectClass
FillTrackObjectFunc
GES_TIMELINE_OBJECT_DURATION
GES_TIMELINE_OBJECT_INPOINT
GES_TIMELINE_OBJECT_PRIORITY
GES_TIMELINE_OBJECT_START
ges_timeline_object_set_inpoint
ges_timeline_object_set_start
ges_timeline_object_set_duration

View file

@ -61,6 +61,39 @@ typedef gboolean (*FillTrackObjectFunc) (GESTimelineObject * object,
GESTrackObject * trobject,
GstElement * gnlobj);
/**
* GES_TIMELINE_OBJECT_START:
* @obj: a #GESTimelineObject
*
* The start position of the object (in nanoseconds).
*/
#define GES_TIMELINE_OBJECT_START(obj) (((GESTimelineObject*)obj)->start)
/**
* GES_TIMELINE_OBJECT_INPOINT:
* @obj: a #GESTimelineObject
*
* The in-point of the object (in nanoseconds).
*/
#define GES_TIMELINE_OBJECT_INPOINT(obj) (((GESTimelineObject*)obj)->inpoint)
/**
* GES_TIMELINE_OBJECT_DURATION:
* @obj: a #GESTimelineObject
*
* The duration position of the object (in nanoseconds).
*/
#define GES_TIMELINE_OBJECT_DURATION(obj) (((GESTimelineObject*)obj)->duration)
/**
* GES_TIMELINE_OBJECT_PRIORITY:
* @obj: a #GESTimelineObject
*
* The priority of the object (in nanoseconds).
*/
#define GES_TIMELINE_OBJECT_PRIORITY(obj) (((GESTimelineObject*)obj)->priority)
/**
* GESTimelineObject:
* @layer: the #GESTImelineLayer where this object is being used.