mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
GESTrackObject: Add convenience macros for accessing properties
This commit is contained in:
parent
09c08e320a
commit
ab8ea4c6a5
1 changed files with 32 additions and 0 deletions
|
@ -45,6 +45,38 @@ G_BEGIN_DECLS
|
||||||
#define GES_TRACK_OBJECT_GET_CLASS(obj) \
|
#define GES_TRACK_OBJECT_GET_CLASS(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_OBJECT, GESTrackObjectClass))
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_OBJECT, GESTrackObjectClass))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GES_TRACK_OBJECT_START:
|
||||||
|
* @obj: a #GESTrackObject
|
||||||
|
*
|
||||||
|
* The start position of the object (in nanoseconds).
|
||||||
|
*/
|
||||||
|
#define GES_TRACK_OBJECT_START(obj) (((GESTrackObject*)obj)->start)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GES_TRACK_OBJECT_INPOINT:
|
||||||
|
* @obj: a #GESTrackObject
|
||||||
|
*
|
||||||
|
* The in-point of the object (in nanoseconds).
|
||||||
|
*/
|
||||||
|
#define GES_TRACK_OBJECT_INPOINT(obj) (((GESTrackObject*)obj)->inpoint)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GES_TRACK_OBJECT_DURATION:
|
||||||
|
* @obj: a #GESTrackObject
|
||||||
|
*
|
||||||
|
* The duration position of the object (in nanoseconds).
|
||||||
|
*/
|
||||||
|
#define GES_TRACK_OBJECT_DURATION(obj) (((GESTrackObject*)obj)->duration)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GES_TRACK_OBJECT_PRIORITY:
|
||||||
|
* @obj: a #GESTrackObject
|
||||||
|
*
|
||||||
|
* The priority of the object (in nanoseconds).
|
||||||
|
*/
|
||||||
|
#define GES_TRACK_OBJECT_PRIORITY(obj) (((GESTrackObject*)obj)->priority)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GESTrackObject:
|
* GESTrackObject:
|
||||||
* @timelineobj: The #GESTimelineObject to which this object belongs.
|
* @timelineobj: The #GESTimelineObject to which this object belongs.
|
||||||
|
|
Loading…
Reference in a new issue