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
Definition: bigknob.cc:41
Gxw::ControlParameter::gobj
GxControlParameter * gobj()
Provides access to the underlying C GObject.
Definition: controlparameter.h:103
Gxw::ControlParameter::cp_set_value
void cp_set_value(double value)
Definition: controlparameter.cc:131
GxControlParameterClass
struct _GxControlParameterClass GxControlParameterClass
Definition: controlparameter.h:38
Gxw::ControlParameter::CppClassType
ControlParameter_Class CppClassType
Definition: controlparameter.h:55
Gxw::ControlParameter::~ControlParameter
virtual ~ControlParameter()
Definition: controlparameter.cc:103
Gxw::ControlParameter::cp_configure
void cp_configure(Glib::ustring group, Glib::ustring name, double lower, double upper, double step)
Definition: controlparameter.cc:126
GxControlParameterIface
struct _GxControlParameterIface GxControlParameterIface
Definition: controlparameter.h:32
Gxw::ControlParameter::BaseObjectType
GxControlParameter BaseObjectType
Definition: controlparameter.h:56
Gxw::ControlParameter::get_base_type
static GType get_base_type() G_GNUC_CONST
Definition: controlparameter.cc:120
Gxw::ControlParameter::BaseClassType
GxControlParameterIface BaseClassType
Definition: controlparameter.h:57
Gxw::ControlParameter::get_type
static GType get_type() G_GNUC_CONST
Definition: controlparameter.cc:114
Gxw::ControlParameter::add_interface
static void add_interface(GType gtype_implementer)
Definition: controlparameter.cc:107
Gxw::ControlParameter
Definition: controlparameter.h:48
Gxw::ControlParameter::cp_set_var
void cp_set_var(Glib::ustring p1)
Definition: controlparameter.cc:151
GxControlParameter
struct _GxControlParameter GxControlParameter
Definition: controlparameter.h:37
Gxw
Definition: bigknob.cc:51
Glib::wrap
Gxw::BigKnob * wrap(GxBigKnob *object, bool take_copy)
Definition: bigknob.cc:44
Gxw::ControlParameter::ControlParameter
ControlParameter()
You should derive from this class to use it.
Definition: controlparameter.cc:88
Gxw::ControlParameter::cp_get_value
double cp_get_value()
Definition: controlparameter.cc:136
Gxw::ControlParameter::cp_get_int_value
int cp_get_int_value()
Definition: controlparameter.cc:141
Gxw::ControlParameter::ControlParameter_Class
friend class ControlParameter_Class
Definition: controlparameter.h:60
G_GNUC_CONST
#define G_GNUC_CONST
Definition: wrap_init.cc:8
Gxw::ControlParameter::cp_get_var
Glib::ustring cp_get_var()
Definition: controlparameter.cc:146
Gxw::ControlParameter::gobj
const GxControlParameter * gobj() const
Provides access to the underlying C GObject.
Definition: controlparameter.h:106
Gxw::ControlParameter::CppObjectType
ControlParameter CppObjectType
Definition: controlparameter.h:54