command-line-formatter: Stop uselessly looping over options
[platform/upstream/gstreamer.git] / ges / ges-text-overlay.h
1 /* GStreamer Editing Services
2  * Copyright (C) 2010 Brandon Lewis <brandon.lewis@collabora.co.uk>
3  *               2010 Nokia Corporation
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20
21 #pragma once
22
23 #include <glib-object.h>
24 #include <ges/ges-types.h>
25 #include <ges/ges-title-source.h>
26 #include <ges/ges-operation.h>
27
28 G_BEGIN_DECLS
29 #define GES_TYPE_TEXT_OVERLAY ges_text_overlay_get_type()
30 GES_DECLARE_TYPE(TextOverlay, text_overlay, TEXT_OVERLAY);
31
32 /**
33  * GESTextOverlay:
34  */
35 struct _GESTextOverlay
36 {
37   GESOperation parent;
38
39   /*< private > */
40   GESTextOverlayPrivate *priv;
41
42   /* Padding for API extension */
43   gpointer _ges_reserved[GES_PADDING];
44 };
45
46 struct _GESTextOverlayClass
47 {
48   GESOperationClass parent_class;
49
50   /*< private > */
51
52   /* Padding for API extension */
53   gpointer _ges_reserved[GES_PADDING];
54 };
55
56 GES_API
57 void ges_text_overlay_set_text (GESTextOverlay * self,
58     const gchar * text);
59 GES_API
60 void ges_text_overlay_set_font_desc (GESTextOverlay * self,
61     const gchar * font_desc);
62
63 GES_API
64 void ges_text_overlay_set_halignment (GESTextOverlay * self,
65     GESTextHAlign halign);
66
67 GES_API
68 void ges_text_overlay_set_valignment (GESTextOverlay * self,
69     GESTextVAlign valign);
70 GES_API
71 void ges_text_overlay_set_color (GESTextOverlay * self,
72     guint32 color);
73 GES_API
74 void ges_text_overlay_set_xpos (GESTextOverlay * self,
75     gdouble position);
76 GES_API
77 void ges_text_overlay_set_ypos (GESTextOverlay * self,
78     gdouble position);
79
80 GES_DEPRECATED
81 GESTextOverlay *ges_text_overlay_new (void);
82
83 GES_API
84 const gchar *ges_text_overlay_get_text (GESTextOverlay * self);
85 GES_API
86 const char *ges_text_overlay_get_font_desc (GESTextOverlay * self);
87 GES_API
88 GESTextHAlign ges_text_overlay_get_halignment (GESTextOverlay *
89     self);
90 GES_API
91 GESTextVAlign ges_text_overlay_get_valignment (GESTextOverlay *
92     self);
93 GES_API
94 const guint32 ges_text_overlay_get_color (GESTextOverlay * self);
95 GES_API
96 const gdouble ges_text_overlay_get_xpos (GESTextOverlay * self);
97 GES_API
98 const gdouble ges_text_overlay_get_ypos (GESTextOverlay * self);
99
100 G_END_DECLS