gstreamermm: colorbalance.h Source File

- Main Page
- Modules
- Namespaces
- Classes
- Files

# colorbalance.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // Generated by gtkmmproc -- DO NOT MODIFY!
    00003 #ifndef _GSTREAMERMM_COLORBALANCE_H
    00004 #define _GSTREAMERMM_COLORBALANCE_H
    00005
    00006
    00007 #include <glibmm.h>
    00008
    00009 /* gstreamermm - a C++ wrapper for gstreamer
    00010  *
    00011  * Copyright 2008 The gstreamermm Development Team
    00012  *
    00013  * This library is free software; you can redistribute it and/or
    00014  * modify it under the terms of the GNU Lesser General Public
    00015  * License as published by the Free Software Foundation; either
    00016  * version 2.1 of the License, or (at your option) any later version.
    00017  *
    00018  * This library is distributed in the hope that it will be useful,
    00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00021  * Lesser General Public License for more details.
    00022  *
    00023  * You should have received a copy of the GNU Lesser General Public
    00024  * License along with this library; if not, write to the Free
    00025  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00026  */
    00027
    00028 #include <gst/interfaces/colorbalance.h>
    00029 #include <glibmm/interface.h>
    00030
    00031
    00032 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00033 typedef struct _GstColorBalance GstColorBalance;
    00034 typedef struct _GstColorBalanceClass GstColorBalanceClass;
    00035 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00036
    00037
    00038 namespace Gst
    00039 { class ColorBalance_Class; } // namespace Gst
    00040 namespace Gst
    00041 {
    00042
    00048 enum ColorBalanceType
    00049 {
    00050   COLOR_BALANCE_HARDWARE,
    00051   COLOR_BALANCE_SOFTWARE
    00052 };
    00053
    00054 } // namespace Gst
    00055
    00056
    00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00058 namespace Glib
    00059 {
    00060
    00061 template <>
    00062 class Value<Gst::ColorBalanceType> : public Glib::Value_Enum<Gst::ColorBalanceType>
    00063 {
    00064 public:
    00065   static GType value_type() G_GNUC_CONST;
    00066 };
    00067
    00068 } // namespace Glib
    00069 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00070
    00071
    00072 namespace Gst
    00073 {
    00074
    00075
    00076 class ColorBalanceChannel;
    00077
    00082 class ColorBalance : public Glib::Interface
    00083 {
    00084
    00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00086
    00087 public:
    00088   typedef ColorBalance CppObjectType;
    00089   typedef ColorBalance_Class CppClassType;
    00090   typedef GstColorBalance BaseObjectType;
    00091   typedef GstColorBalanceClass BaseClassType;
    00092
    00093 private:
    00094   friend class ColorBalance_Class;
    00095   static CppClassType colorbalance_class_;
    00096
    00097   // noncopyable
    00098   ColorBalance(const ColorBalance&);
    00099   ColorBalance& operator=(const ColorBalance&);
    00100
    00101 protected:
    00102   ColorBalance(); // you must derive from this class
    00103
    00110   explicit ColorBalance(const Glib::Interface_Class& interface_class);
    00111
    00112 public:
    00113   // This is public so that C++ wrapper instances can be
    00114   // created for C instances of unwrapped types.
    00115   // For instance, if an unexpected C type implements the C interface.
    00116   explicit ColorBalance(GstColorBalance* castitem);
    00117
    00118 protected:
    00119 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00120
    00121 public:
    00122   virtual ~ColorBalance();
    00123
    00124   static void add_interface(GType gtype_implementer);
    00125
    00126 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00127   static GType get_type()      G_GNUC_CONST;
    00128   static GType get_base_type() G_GNUC_CONST;
    00129 #endif
    00130
    00132   GstColorBalance*       gobj()       { return reinterpret_cast<GstColorBalance*>(gobject_); }
    00133
    00135   const GstColorBalance* gobj() const { return reinterpret_cast<GstColorBalance*>(gobject_); }
    00136
    00137 private:
    00138
    00139
    00140 public:
    00141
    00142
    00148   Glib::ListHandle< Glib::RefPtr<ColorBalanceChannel> > list_channels();
    00149
    00150
    00156   Glib::ListHandle< Glib::RefPtr<const ColorBalanceChannel> > list_channels() const;
    00157
    00158
    00168   int get_value(const Glib::RefPtr<const ColorBalanceChannel>& channel) const;
    00169
    00179   void set_value(const Glib::RefPtr<ColorBalanceChannel>& channel, int value);
    00180
    00188   void value_changed(const Glib::RefPtr<ColorBalanceChannel>& channel, int value);
    00189
    00190
    00197   Glib::SignalProxy2< void,const Glib::RefPtr<ColorBalanceChannel>&,int > signal_value_changed();
    00198
    00199
    00200   //TODO: Include when bug #530416 is resolved.
    00202    //*/
    00203   //_WRAP_VFUNC(Glib::ListHandle< Glib::RefPtr<ColorBalanceChannel> > list_channels(), "list_channels")
    00204
    00207   #ifdef GLIBMM_VFUNCS_ENABLED
    00208   virtual void set_value_vfunc(const Glib::RefPtr<ColorBalanceChannel>& channel, int value);
    00209 #endif //GLIBMM_VFUNCS_ENABLED
    00210
    00211
    00214   #ifdef GLIBMM_VFUNCS_ENABLED
    00215   virtual int get_value_vfunc(const Glib::RefPtr<const ColorBalanceChannel>& channel) const;
    00216 #endif //GLIBMM_VFUNCS_ENABLED
    00217
    00218
    00219 public:
    00220
    00221 public:
    00222   //C++ methods used to invoke GTK+ virtual functions:
    00223 #ifdef GLIBMM_VFUNCS_ENABLED
    00224 #endif //GLIBMM_VFUNCS_ENABLED
    00225
    00226 protected:
    00227   //GTK+ Virtual Functions (override these to change behaviour):
    00228 #ifdef GLIBMM_VFUNCS_ENABLED
    00229 #endif //GLIBMM_VFUNCS_ENABLED
    00230
    00231   //Default Signal Handlers::
    00232 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
    00233   virtual void on_value_changed(const Glib::RefPtr<ColorBalanceChannel>& channel, int value);
    00234 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
    00235
    00236
    00237 };
    00238
    00239 } // namespace Gst
    00240
    00241
    00242 namespace Glib
    00243 {
    00252   Glib::RefPtr<Gst::ColorBalance> wrap(GstColorBalance* object, bool take_copy = false);
    00253
    00254 } // namespace Glib
    00255
    00256
    00257 #endif /* _GSTREAMERMM_COLORBALANCE_H */
    00258