Debian Codegraph @

gstreamer/gstreamermm/videoorientation.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_VIDEOORIENTATION_H
3 #define _GSTREAMERMM_VIDEOORIENTATION_H
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gst/video/videoorientation.h>
29 #include <glibmm/interface.h>
30
31
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 using GstVideoOrientation = struct _GstVideoOrientation;
34 using GstVideoOrientationClass = struct _GstVideoOrientationClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36
37
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 namespace Gst
40 { class VideoOrientation_Class; } // namespace Gst
41 #endif // DOXYGEN_SHOULD_SKIP_THIS
42
43 namespace Gst
44 {
45
46 /** An interface for elements providing video orientation controls.
47 * The interface allows unified access to control flipping and autocenter
48 * operation of video-sources or operators.
49 * @ingroup GstInterfaces
50 */
51
52 class VideoOrientation : public Glib::Interface
53 {
54
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56
57 public:
58 using CppObjectType = VideoOrientation;
59 using CppClassType = VideoOrientation_Class;
60 using BaseObjectType = GstVideoOrientation;
61 using BaseClassType = GstVideoOrientationInterface;
62
63 // noncopyable
64 VideoOrientation(const VideoOrientation&) = delete;
65 VideoOrientation& operator=(const VideoOrientation&) = delete;
66
67 private:
68 friend class VideoOrientation_Class;
69 static CppClassType videoorientation_class_;
70
71 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
72 protected:
73 /**
74 * You should derive from this class to use it.
75 */
76 VideoOrientation();
77
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79 /** Called by constructors of derived classes. Provide the result of
80 * the Class init() function to ensure that it is properly
81 * initialized.
82 *
83 * @param interface_class The Class object for the derived type.
84 */
85 explicit VideoOrientation(const Glib::Interface_Class& interface_class);
86
87 public:
88 // This is public so that C++ wrapper instances can be
89 // created for C instances of unwrapped types.
90 // For instance, if an unexpected C type implements the C interface.
91 explicit VideoOrientation(GstVideoOrientation* castitem);
92
93 protected:
94 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
95
96 public:
97
98 VideoOrientation(VideoOrientation&& src) noexcept;
99 VideoOrientation& operator=(VideoOrientation&& src) noexcept;
100
101 ~VideoOrientation() noexcept override;
102
103 static void add_interface(GType gtype_implementer);
104
105 /** Get the GType for this class, for use with the underlying GObject type system.
106 */
107 static GType get_type() G_GNUC_CONST;
108
109 #ifndef DOXYGEN_SHOULD_SKIP_THIS
110 static GType get_base_type() G_GNUC_CONST;
111 #endif
112
113 ///Provides access to the underlying C GObject.
114 GstVideoOrientation* gobj() { return reinterpret_cast<GstVideoOrientation*>(gobject_); }
115
116 ///Provides access to the underlying C GObject.
117 const GstVideoOrientation* gobj() const { return reinterpret_cast<GstVideoOrientation*>(gobject_); }
118
119 private:
120
121
122 public:
123
124 /** Get the horizontal centering offset from the given object.
125 *
126 * @param center Return location for the result.
127 * @return <tt>true</tt> in case the element supports centering.
128 */
129 bool get_hcenter(int& center) const;
130
131 /** Get the horizontal flipping state (<tt>true</tt> for flipped) from the given object.
132 *
133 * @param flip Return location for the result.
134 * @return <tt>true</tt> in case the element supports flipping.
135 */
136
137 bool get_hflip(bool& flip) const;
138
139 /** Get the vertical centering offset from the given object.
140 *
141 * @param center Return location for the result.
142 * @return <tt>true</tt> in case the element supports centering.
143 */
144 bool get_vcenter(int& center) const;
145
146 /** Get the vertical flipping state (<tt>true</tt> for flipped) from the given object.
147 *
148 * @param flip Return location for the result.
149 * @return <tt>true</tt> in case the element supports flipping.
150 */
151
152 bool get_vflip(bool& flip) const;
153
154 /** Set the horizontal centering offset for the given object.
155 *
156 * @param center Centering offset.
157 * @return <tt>true</tt> in case the element supports centering.
158 */
159 bool set_hcenter(int center);
160
161 /** Set the horizontal flipping state (<tt>true</tt> for flipped) for the given object.
162 *
163 * @param flip Use flipping.
164 * @return <tt>true</tt> in case the element supports flipping.
165 */
166 bool set_hflip(bool flip);
167
168 /** Set the vertical centering offset for the given object.
169 *
170 * @param center Centering offset.
171 * @return <tt>true</tt> in case the element supports centering.
172 */
173 bool set_vcenter(int center);
174
175 /** Set the vertical flipping state (<tt>true</tt> for flipped) for the given object.
176 *
177 * @param flip Use flipping.
178 * @return <tt>true</tt> in case the element supports flipping.
179 */
180 bool set_vflip(bool flip);
181
182 virtual bool get_hflip_vfunc(bool& flip) const;
183 virtual bool get_vflip_vfunc(bool& flip) const;
184
185 virtual bool get_hcenter_vfunc(int& center) const;
186
187 virtual bool get_vcenter_vfunc(int& center) const;
188
189 virtual bool set_hflip_vfunc(bool flip);
190
191 virtual bool set_vflip_vfunc(bool flip);
192
193 virtual bool set_hcenter_vfunc(int center);
194
195 virtual bool set_vcenter_vfunc(int center);
196
197
198 protected:
199
200
201 public:
202
203 public:
204 //C++ methods used to invoke GTK+ virtual functions:
205
206 protected:
207 //GTK+ Virtual Functions (override these to change behaviour):
208
209 //Default Signal Handlers::
210
211
212 };
213
214 } // namespace Gst
215
216
217 namespace Glib
218 {
219 /** A Glib::wrap() method for this object.
220 *
221 * @param object The C instance.
222 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
223 * @result A C++ instance that wraps this C instance.
224 *
225 * @relates Gst::VideoOrientation
226 */
227 Glib::RefPtr<Gst::VideoOrientation> wrap(GstVideoOrientation* object, bool take_copy = false);
228
229 } // namespace Glib
230
231
232 #endif /* _GSTREAMERMM_VIDEOORIENTATION_H */
233