Guitarix
controlparameter.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GXWMM_CONTROLPARAMETER_H
4 #define _GXWMM_CONTROLPARAMETER_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /*
11  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
12  *
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program 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
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
28 
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 extern "C"
31 {
32 typedef struct _GxControlParameterIface GxControlParameterIface;
33 }
34 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
35 
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GxControlParameter GxControlParameter;
38 typedef struct _GxControlParameterClass GxControlParameterClass;
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 
41 
42 namespace Gxw
43 { class ControlParameter_Class; } // namespace Gxw
44 namespace Gxw
45 {
46 
47 
48 class ControlParameter: public Glib::Interface
49 {
50 
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 
53 public:
58 
59 private:
60  friend class ControlParameter_Class;
61  static CppClassType controlparameter_class_;
62 
63  // noncopyable
65  ControlParameter& operator=(const ControlParameter&);
66 
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68 protected:
73 
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75 
81  explicit ControlParameter(const Glib::Interface_Class& interface_class);
82 
83 public:
84  // This is public so that C++ wrapper instances can be
85  // created for C instances of unwrapped types.
86  // For instance, if an unexpected C type implements the C interface.
87  explicit ControlParameter(GxControlParameter* castitem);
88 
89 protected:
90 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
91 
92 public:
93  virtual ~ControlParameter();
94 
95  static void add_interface(GType gtype_implementer);
96 
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
98  static GType get_type() G_GNUC_CONST;
99  static GType get_base_type() G_GNUC_CONST;
100 #endif
101 
103  GxControlParameter* gobj() { return reinterpret_cast<GxControlParameter*>(gobject_); }
104 
106  const GxControlParameter* gobj() const { return reinterpret_cast<GxControlParameter*>(gobject_); }
107 
108 private:
109 
110  public:
111 
112  void cp_configure(Glib::ustring group, Glib::ustring name, double lower, double upper, double step);
113 
114  void cp_set_value(double value);
115 
116  double cp_get_value();
117 
118  int cp_get_int_value();
119 
120  Glib::ustring cp_get_var();
121 
122  void cp_set_var(Glib::ustring p1);
123  #ifdef GLIBMM_PROPERTIES_ENABLED
124 
130  Glib::PropertyProxy< Glib::ustring > property_var_id() ;
131 #endif //#GLIBMM_PROPERTIES_ENABLED
132 
133 #ifdef GLIBMM_PROPERTIES_ENABLED
134 
140  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_var_id() const;
141 #endif //#GLIBMM_PROPERTIES_ENABLED
142 
143 
144 public:
145 
146 public:
147  //C++ methods used to invoke GTK+ virtual functions:
148 
149 protected:
150  //GTK+ Virtual Functions (override these to change behaviour):
151 
152  //Default Signal Handlers::
153 
154 
155 };
156 
157 } // namespace Gxw
158 
159 
160 namespace Glib
161 {
170  Glib::RefPtr<Gxw::ControlParameter> wrap(GxControlParameter* object, bool take_copy = false);
171 
172 } // namespace Glib
173 
174 
175 #endif /* _GXWMM_CONTROLPARAMETER_H */
176 
Glib::RefPtr< Gxw::ControlParameter > wrap(GxControlParameter *object, bool take_copy=false)
A Glib::wrap() method for this object.
struct _GxControlParameterIface GxControlParameterIface
ControlParameter_Class CppClassType
static void add_interface(GType gtype_implementer)
ControlParameter CppObjectType
void cp_configure(Glib::ustring group, Glib::ustring name, double lower, double upper, double step)
void cp_set_value(double value)
GxControlParameter BaseObjectType
static GType get_type() G_GNUC_CONST
Definition: bigknob.cc:51
void cp_set_var(Glib::ustring p1)
const GxControlParameter * gobj() const
Provides access to the underlying C GObject.
static GType get_base_type() G_GNUC_CONST
friend class ControlParameter_Class
Glib::ustring cp_get_var()
GxControlParameter * gobj()
Provides access to the underlying C GObject.
Definition: bigknob.cc:41
struct _GxControlParameter GxControlParameter
struct _GxControlParameterClass GxControlParameterClass
GxControlParameterIface BaseClassType
ControlParameter()
You should derive from this class to use it.
#define G_GNUC_CONST
Definition: wrap_init.cc:8