static void ges_timeline_text_overlay_class_init (GESTimelineTextOverlayClass * klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTimelineObjectClass *timobj_class = GES_TIMELINE_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTimelineTextOverlayPrivate)); object_class->get_property = ges_timeline_text_overlay_get_property; object_class->set_property = ges_timeline_text_overlay_set_property; object_class->dispose = ges_timeline_text_overlay_dispose; /** * GESTimelineTextOverlay:text * * The text to diplay */ g_object_class_install_property (object_class, PROP_TEXT, g_param_spec_string ("text", "Text", "The text to display", DEFAULT_PROP_TEXT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); /** * GESTimelineTextOverlay:font-desc * * Pango font description string */ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FONT_DESC, g_param_spec_string ("font-desc", "font description", "Pango font description of font to be used for rendering. " "See documentation of pango_font_description_from_string " "for syntax.", DEFAULT_PROP_FONT_DESC, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTimelineTextOverlay:valignment * * Vertical alignent of the text */ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_VALIGNMENT, g_param_spec_enum ("valignment", "vertical alignment", "Vertical alignment of the text", GES_TEXT_VALIGN_TYPE, DEFAULT_PROP_VALIGNMENT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); /** * GESTimelineTextOverlay:halignment * * Horizontal alignment of the text */ g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_HALIGNMENT, g_param_spec_enum ("halignment", "horizontal alignment", "Horizontal alignment of the text", GES_TEXT_HALIGN_TYPE, DEFAULT_PROP_HALIGNMENT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); timobj_class->create_track_object = ges_timeline_text_overlay_create_track_object; timobj_class->need_fill_track = FALSE; }
static void ges_timeline_standard_transition_class_init (GESTimelineStandardTransitionClass * klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GESTimelineObjectClass *timobj_class = GES_TIMELINE_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (GESTimelineStandardTransitionPrivate)); object_class->get_property = ges_timeline_standard_transition_get_property; object_class->set_property = ges_timeline_standard_transition_set_property; /** * GESTimelineStandardTransition:vtype: * * a #GESVideoStandardTransitionType representing the wipe to use */ g_object_class_install_property (object_class, PROP_VTYPE, g_param_spec_enum ("vtype", "VType", "The SMPTE video wipe to use, or 0 for crossfade", GES_VIDEO_STANDARD_TRANSITION_TYPE_TYPE, GES_VIDEO_STANDARD_TRANSITION_TYPE_CROSSFADE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); timobj_class->create_track_object = ges_tl_transition_create_track_object; timobj_class->need_fill_track = FALSE; timobj_class->track_object_added = ges_timeline_standard_transition_track_object_added; timobj_class->track_object_released = ges_timeline_standard_transition_track_object_released; }