Ardour  8.7-14-g57a6773833
cellrenderertoggle.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_CELLRENDERERTOGGLE_H
4 #define _GTKMM_CELLRENDERERTOGGLE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: cellrenderertoggle.hg,v 1.5 2006/05/10 20:59:27 murrayc Exp $ */
11 
12 /* cellrenderertoggle.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/cellrenderer.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class CellRendererToggle_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
53 {
54  public:
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56  typedef CellRendererToggle CppObjectType;
57  typedef CellRendererToggle_Class CppClassType;
58  typedef GtkCellRendererToggle BaseObjectType;
59  typedef GtkCellRendererToggleClass BaseClassType;
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61 
63 
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 
66 private:
67  friend class CellRendererToggle_Class;
68  static CppClassType cellrenderertoggle_class_;
69 
70  // noncopyable
72  CellRendererToggle& operator=(const CellRendererToggle&);
73 
74 protected:
75  explicit CellRendererToggle(const Glib::ConstructParams& construct_params);
76  explicit CellRendererToggle(GtkCellRendererToggle* castitem);
77 
78 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
79 
80 public:
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82  static GType get_type() G_GNUC_CONST;
83 
84 
85  static GType get_base_type() G_GNUC_CONST;
86 #endif
87 
89  GtkCellRendererToggle* gobj() { return reinterpret_cast<GtkCellRendererToggle*>(gobject_); }
90 
92  const GtkCellRendererToggle* gobj() const { return reinterpret_cast<GtkCellRendererToggle*>(gobject_); }
93 
94 
95 public:
96  //C++ methods used to invoke GTK+ virtual functions:
97 
98 protected:
99  //GTK+ Virtual Functions (override these to change behaviour):
100 
101  //Default Signal Handlers::
103  virtual void on_toggled(const Glib::ustring& path);
104 
105 
106 private:
107 
108 public:
109 
111 
112 
117  bool get_radio() const;
118 
129  void set_radio(bool radio = true);
130 
136  bool get_active() const;
137 
142  void set_active(bool setting = true);
143 
149  bool get_activatable() const;
150 
155  void set_activatable(bool setting = true);
156 
157 
158  //TODO: Maybe the parameter should be a TreePath.
159 
169  Glib::SignalProxy1< void,const Glib::ustring& > signal_toggled();
170 
171 
177  Glib::PropertyProxy< bool > property_activatable() ;
178 
184  Glib::PropertyProxy_ReadOnly< bool > property_activatable() const;
185 
191  Glib::PropertyProxy< bool > property_active() ;
192 
198  Glib::PropertyProxy_ReadOnly< bool > property_active() const;
199 
205  Glib::PropertyProxy< bool > property_inconsistent() ;
206 
212  Glib::PropertyProxy_ReadOnly< bool > property_inconsistent() const;
213 
219  Glib::PropertyProxy< bool > property_radio() ;
220 
226  Glib::PropertyProxy_ReadOnly< bool > property_radio() const;
227 
233  Glib::PropertyProxy< int > property_indicator_size() ;
234 
240  Glib::PropertyProxy_ReadOnly< int > property_indicator_size() const;
241 
242 
243  virtual Glib::PropertyProxy_Base _property_renderable();
244 
245 
246 };
247 
248 } /* namespace Gtk */
249 
250 
251 namespace Glib
252 {
261  Gtk::CellRendererToggle* wrap(GtkCellRendererToggle* object, bool take_copy = false);
262 } //namespace Glib
263 
264 
265 #endif /* _GTKMM_CELLRENDERERTOGGLE_H */
266 
Glib::PropertyProxy< int > property_indicator_size()
Glib::SignalProxy1< void, const Glib::ustring & > signal_toggled()
Glib::PropertyProxy_ReadOnly< bool > property_radio() const
Glib::PropertyProxy< bool > property_active()
Glib::PropertyProxy_ReadOnly< bool > property_inconsistent() const
Glib::PropertyProxy_ReadOnly< int > property_indicator_size() const
virtual void on_toggled(const Glib::ustring &path)
This is a default handler for the signal signal_toggled().
Glib::PropertyProxy< bool > property_radio()
Glib::PropertyProxy_ReadOnly< bool > property_active() const
Glib::PropertyProxy_ReadOnly< bool > property_activatable() const
Glib::PropertyProxy< bool > property_inconsistent()
Gtk::CellRendererToggle * wrap(GtkCellRendererToggle *object, bool take_copy=false)
virtual Glib::PropertyProxy_Base _property_renderable()
Glib::PropertyProxy< bool > property_activatable()
GtkCellRendererToggle * gobj()
Provides access to the underlying C GtkObject.
void set_activatable(bool setting=true)
bool get_activatable() const
void set_radio(bool radio=true)
void set_active(bool setting=true)
const GtkCellRendererToggle * gobj() const
Provides access to the underlying C GtkObject.
Definition: ardour_ui.h:188