Guitarix
switch.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GXWMM_SWITCH_H
4 #define _GXWMM_SWITCH_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/togglebutton.h>
29 #include <gtkmm/label.h>
30 #include <gxwmm/controlparameter.h>
31 
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GxSwitch GxSwitch;
35 typedef struct _GxSwitchClass GxSwitchClass;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 
38 
39 namespace Gxw
40 { class Switch_Class; } // namespace Gxw
41 namespace Gxw {
42 
43 
44 class Switch: public Gtk::ToggleButton, public ControlParameter {
45  public:
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
52 
53  virtual ~Switch();
54 
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 
57 private:
58  friend class Switch_Class;
59  static CppClassType switch_class_;
60 
61  // noncopyable
62  Switch(const Switch&);
63  Switch& operator=(const Switch&);
64 
65 protected:
66  explicit Switch(const Glib::ConstructParams& construct_params);
67  explicit Switch(GxSwitch* castitem);
68 
69 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
70 
71 public:
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS
73  static GType get_type() G_GNUC_CONST;
74 
75 
76  static GType get_base_type() G_GNUC_CONST;
77 #endif
78 
80  GxSwitch* gobj() { return reinterpret_cast<GxSwitch*>(gobject_); }
81 
83  const GxSwitch* gobj() const { return reinterpret_cast<GxSwitch*>(gobject_); }
84 
85 
86 public:
87  //C++ methods used to invoke GTK+ virtual functions:
88 
89 protected:
90  //GTK+ Virtual Functions (override these to change behaviour):
91 
92  //Default Signal Handlers::
93 
94 
95 private:
96 
97 
98  public:
99  Switch();
100  explicit Switch(const Glib::ustring& base_name);
101 
102  void set_label_ref(Gtk::Label* p1);
103 
104  Gtk::Label* get_label_ref();
105 
106  void set_base_name(const Glib::ustring& p1);
107 
108  Glib::ustring get_base_name();
109  #ifdef GLIBMM_PROPERTIES_ENABLED
110 
116  Glib::PropertyProxy< Glib::ustring > property_base_name() ;
117 #endif //#GLIBMM_PROPERTIES_ENABLED
118 
119 #ifdef GLIBMM_PROPERTIES_ENABLED
120 
126  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_base_name() const;
127 #endif //#GLIBMM_PROPERTIES_ENABLED
128 
129  #ifdef GLIBMM_PROPERTIES_ENABLED
130 
136  Glib::PropertyProxy< Gtk::Label > property_label_ref() ;
137 #endif //#GLIBMM_PROPERTIES_ENABLED
138 
139 #ifdef GLIBMM_PROPERTIES_ENABLED
140 
146  Glib::PropertyProxy_ReadOnly< Gtk::Label > property_label_ref() const;
147 #endif //#GLIBMM_PROPERTIES_ENABLED
148 
149 #ifdef GLIBMM_PROPERTIES_ENABLED
150 
156  Glib::PropertyProxy< Glib::ustring > property_var_id() ;
157 #endif //#GLIBMM_PROPERTIES_ENABLED
158 
159 #ifdef GLIBMM_PROPERTIES_ENABLED
160 
166  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_var_id() const;
167 #endif //#GLIBMM_PROPERTIES_ENABLED
168 
169 
170 };
171 
172 } // namespace Gxw
173 
174 
175 namespace Glib
176 {
185  Gxw::Switch* wrap(GxSwitch* object, bool take_copy = false);
186 } //namespace Glib
187 
188 
189 #endif /* _GXWMM_SWITCH_H */
190 
void set_label_ref(Gtk::Label *p1)
Definition: switch.cc:139
static GType get_type() G_GNUC_CONST
Definition: switch.cc:117
struct _GxSwitchClass GxSwitchClass
Definition: switch.h:35
static GType get_base_type() G_GNUC_CONST
Definition: switch.cc:123
virtual ~Switch()
Definition: switch.cc:110
Gtk::Label * get_label_ref()
Definition: switch.cc:144
struct _GxSwitch GxSwitch
Definition: switch.h:34
Switch CppObjectType
Definition: switch.h:47
Definition: bigknob.cc:51
void set_base_name(const Glib::ustring &p1)
Definition: switch.cc:149
GxSwitchClass BaseClassType
Definition: switch.h:50
GxSwitch * gobj()
Provides access to the underlying C GtkObject.
Definition: switch.h:80
Glib::ustring get_base_name()
Definition: switch.cc:154
const GxSwitch * gobj() const
Provides access to the underlying C GtkObject.
Definition: switch.h:83
Definition: bigknob.cc:41
Switch_Class CppClassType
Definition: switch.h:48
Gxw::Switch * wrap(GxSwitch *object, bool take_copy=false)
A Glib::wrap() method for this object.
Definition: switch.cc:44
GxSwitch BaseObjectType
Definition: switch.h:49
#define G_GNUC_CONST
Definition: wrap_init.cc:8