Guitarix
tuner.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GXWMM_TUNER_H
4 #define _GXWMM_TUNER_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 #include <gtkmm/drawingarea.h>
29 
30 
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 typedef struct _GxTuner GxTuner;
33 typedef struct _GxTunerClass GxTunerClass;
34 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
35 
36 
37 namespace Gxw
38 { class Tuner_Class; } // namespace Gxw
39 namespace Gxw {
40 
41 
42 class Tuner: public Gtk::DrawingArea {
43  public:
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
50 
51  virtual ~Tuner();
52 
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54 
55 private:
56  friend class Tuner_Class;
57  static CppClassType tuner_class_;
58 
59  // noncopyable
60  Tuner(const Tuner&);
61  Tuner& operator=(const Tuner&);
62 
63 protected:
64  explicit Tuner(const Glib::ConstructParams& construct_params);
65  explicit Tuner(GxTuner* castitem);
66 
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68 
69 public:
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71  static GType get_type() G_GNUC_CONST;
72 
73 
74  static GType get_base_type() G_GNUC_CONST;
75 #endif
76 
78  GxTuner* gobj() { return reinterpret_cast<GxTuner*>(gobject_); }
79 
81  const GxTuner* gobj() const { return reinterpret_cast<GxTuner*>(gobject_); }
82 
83 
84 public:
85  //C++ methods used to invoke GTK+ virtual functions:
86 
87 protected:
88  //GTK+ Virtual Functions (override these to change behaviour):
89 
90  //Default Signal Handlers::
91 
92 
93 private:
94 
95  public:
96  Tuner();
97 
98  void set_freq(double p1);
99 
100  void set_reference_pitch(double p1);
101 
102  double get_reference_pitch();
103 
104  void set_scale(double p1);
105 
106  double get_scale();
107  #ifdef GLIBMM_PROPERTIES_ENABLED
108 
114  Glib::PropertyProxy< double > property_freq() ;
115 #endif //#GLIBMM_PROPERTIES_ENABLED
116 
117 #ifdef GLIBMM_PROPERTIES_ENABLED
118 
124  Glib::PropertyProxy_ReadOnly< double > property_freq() const;
125 #endif //#GLIBMM_PROPERTIES_ENABLED
126 
127  #ifdef GLIBMM_PROPERTIES_ENABLED
128 
134  Glib::PropertyProxy< double > property_reference_pitch() ;
135 #endif //#GLIBMM_PROPERTIES_ENABLED
136 
137 #ifdef GLIBMM_PROPERTIES_ENABLED
138 
144  Glib::PropertyProxy_ReadOnly< double > property_reference_pitch() const;
145 #endif //#GLIBMM_PROPERTIES_ENABLED
146 
147  #ifdef GLIBMM_PROPERTIES_ENABLED
148 
154  Glib::PropertyProxy< double > property_scale() ;
155 #endif //#GLIBMM_PROPERTIES_ENABLED
156 
157 #ifdef GLIBMM_PROPERTIES_ENABLED
158 
164  Glib::PropertyProxy_ReadOnly< double > property_scale() const;
165 #endif //#GLIBMM_PROPERTIES_ENABLED
166 
167 
168 };
169 
170 } // namespace Gxw
171 
172 
173 namespace Glib
174 {
183  Gxw::Tuner* wrap(GxTuner* object, bool take_copy = false);
184 } //namespace Glib
185 
186 
187 #endif /* _GXWMM_TUNER_H */
188 
Glib
Definition: bigknob.cc:41
Gxw::Tuner::gobj
GxTuner * gobj()
Provides access to the underlying C GtkObject.
Definition: tuner.h:78
Gxw::Tuner::gobj
const GxTuner * gobj() const
Provides access to the underlying C GtkObject.
Definition: tuner.h:81
GxTuner
struct _GxTuner GxTuner
Definition: tuner.h:32
Gxw::Tuner::get_reference_pitch
double get_reference_pitch()
Definition: tuner.cc:142
Gxw::Tuner::BaseClassType
GxTunerClass BaseClassType
Definition: tuner.h:48
Gxw::Tuner::BaseObjectType
GxTuner BaseObjectType
Definition: tuner.h:47
Gxw::Tuner::CppClassType
Tuner_Class CppClassType
Definition: tuner.h:46
Gxw::Tuner::CppObjectType
Tuner CppObjectType
Definition: tuner.h:45
Gxw::Tuner::get_scale
double get_scale()
Definition: tuner.cc:152
Gxw::Tuner::set_reference_pitch
void set_reference_pitch(double p1)
Definition: tuner.cc:137
Gxw
Definition: bigknob.cc:51
Glib::wrap
Gxw::BigKnob * wrap(GxBigKnob *object, bool take_copy)
Definition: bigknob.cc:44
Gxw::Tuner::Tuner
Tuner()
Definition: tuner.cc:122
GxTunerClass
struct _GxTunerClass GxTunerClass
Definition: tuner.h:33
Gxw::Tuner::get_type
static GType get_type() G_GNUC_CONST
Definition: tuner.cc:110
Gxw::Tuner::set_freq
void set_freq(double p1)
Definition: tuner.cc:132
G_GNUC_CONST
#define G_GNUC_CONST
Definition: wrap_init.cc:8
Gxw::Tuner_Class
Definition: wrap_init.cc:107
Gxw::Tuner::set_scale
void set_scale(double p1)
Definition: tuner.cc:147
Gxw::Tuner::~Tuner
virtual ~Tuner()
Definition: tuner.cc:103
Gxw::Tuner::get_base_type
static GType get_base_type() G_GNUC_CONST
Definition: tuner.cc:116
Gxw::Tuner
Definition: tuner.h:42