Ardour  9.0-pre0-582-g084a23a80d
toggletoolbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TOGGLETOOLBUTTON_H
4 #define _GTKMM_TOGGLETOOLBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: toggletoolbutton.hg,v 1.5 2004/03/07 14:35:47 murrayc Exp $ */
11 
12 /* box.h
13  *
14  * Copyright (C) 2003 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/toolbutton.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class ToggleToolButton_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
53 {
54  public:
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56  typedef ToggleToolButton CppObjectType;
57  typedef ToggleToolButton_Class CppClassType;
58  typedef GtkToggleToolButton BaseObjectType;
59  typedef GtkToggleToolButtonClass BaseClassType;
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61 
62  virtual ~ToggleToolButton();
63 
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 
66 private:
67  friend class ToggleToolButton_Class;
68  static CppClassType toggletoolbutton_class_;
69 
70  // noncopyable
72  ToggleToolButton& operator=(const ToggleToolButton&);
73 
74 protected:
75  explicit ToggleToolButton(const Glib::ConstructParams& construct_params);
76  explicit ToggleToolButton(GtkToggleToolButton* 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  GtkToggleToolButton* gobj() { return reinterpret_cast<GtkToggleToolButton*>(gobject_); }
90 
92  const GtkToggleToolButton* gobj() const { return reinterpret_cast<GtkToggleToolButton*>(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();
104 
105 
106 private:
107 
108 public:
109 
113 
120  explicit ToggleToolButton(const Gtk::StockID& stock_id);
121 
122 
129  explicit ToggleToolButton(const Glib::ustring& label);
130 
138  explicit ToggleToolButton(Widget& icon_widget, const Glib::ustring& label = Glib::ustring());
139 
140 
147  void set_active(bool is_active = true);
148 
154  bool get_active() const;
155 
156 
163  Glib::SignalProxy0< void > signal_toggled();
164 
165 
171  Glib::PropertyProxy< bool > property_active() ;
172 
178  Glib::PropertyProxy_ReadOnly< bool > property_active() const;
179 
180 
181 };
182 
183 } // namespace Gtk
184 
185 
186 namespace Glib
187 {
196  Gtk::ToggleToolButton* wrap(GtkToggleToolButton* object, bool take_copy = false);
197 } //namespace Glib
198 
199 
200 #endif /* _GTKMM_TOGGLETOOLBUTTON_H */
201 
Glib::PropertyProxy< bool > property_active()
Glib::SignalProxy0< void > signal_toggled()
ToggleToolButton(const Gtk::StockID &stock_id)
Glib::PropertyProxy_ReadOnly< bool > property_active() const
Gtk::ToggleToolButton * wrap(GtkToggleToolButton *object, bool take_copy=false)
GtkToggleToolButton * gobj()
Provides access to the underlying C GtkObject.
void set_active(bool is_active=true)
virtual void on_toggled()
This is a default handler for the signal signal_toggled().
const GtkToggleToolButton * gobj() const
Provides access to the underlying C GtkObject.
ToggleToolButton(Widget &icon_widget, const Glib::ustring &label=Glib::ustring())
ToggleToolButton(const Glib::ustring &label)
bool get_active() const
virtual ~ToggleToolButton()
Definition: ardour_ui.h:188