Ardour  8.7-15-gadf511264b
toolbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TOOLBUTTON_H
4 #define _GTKMM_TOOLBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /*
11  * Copyright (C) 2003 The gtkmm Development Team
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Lesser General Public
15  * License as published by the Free Software Foundation; either
16  * version 2.1 of the License, or (at your option) any later version.
17  *
18  * This library 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 GNU
21  * Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License along with this library; if not, write to the Free
25  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27 
28 #include <gtkmm/toolitem.h>
29 
30 
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 typedef struct _GtkToolButton GtkToolButton;
34 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
35 
36 
37 namespace Gtk
38 { class ToolButton_Class; } // namespace Gtk
39 namespace Gtk
40 {
41 
42 // TODO: Inherit/Implement Activatable when we can break ABI.
43 
50 class ToolButton : public ToolItem
51 {
52  public:
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54  typedef ToolButton CppObjectType;
55  typedef ToolButton_Class CppClassType;
56  typedef GtkToolButton BaseObjectType;
57  typedef GtkToolButtonClass BaseClassType;
58 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
59 
60  virtual ~ToolButton();
61 
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 
64 private:
65  friend class ToolButton_Class;
66  static CppClassType toolbutton_class_;
67 
68  // noncopyable
69  ToolButton(const ToolButton&);
70  ToolButton& operator=(const ToolButton&);
71 
72 protected:
73  explicit ToolButton(const Glib::ConstructParams& construct_params);
74  explicit ToolButton(GtkToolButton* castitem);
75 
76 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
77 
78 public:
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80  static GType get_type() G_GNUC_CONST;
81 
82 
83  static GType get_base_type() G_GNUC_CONST;
84 #endif
85 
87  GtkToolButton* gobj() { return reinterpret_cast<GtkToolButton*>(gobject_); }
88 
90  const GtkToolButton* gobj() const { return reinterpret_cast<GtkToolButton*>(gobject_); }
91 
92 
93 public:
94  //C++ methods used to invoke GTK+ virtual functions:
95 
96 protected:
97  //GTK+ Virtual Functions (override these to change behaviour):
98 
99  //Default Signal Handlers::
101  virtual void on_clicked();
102 
103 
104 private:
105 
106 public:
107 
111 
118  explicit ToolButton(const Gtk::StockID& stock_id);
119 
120 
127  explicit ToolButton(const Glib::ustring& label);
128 
136  explicit ToolButton(Widget& icon_widget, const Glib::ustring& label = Glib::ustring());
137 
138 
147  void set_label(const Glib::ustring& label);
148 
155  Glib::ustring get_label() const;
156 
168  void set_use_underline(bool use_underline = true);
169 
176  bool get_use_underline() const;
177 
184  void set_stock_id(const Gtk::StockID& stock_id);
185 
191  Glib::ustring get_stock_id() const;
192 
201  void set_icon_name(const Glib::ustring& icon_name);
202 
209  Glib::ustring get_icon_name() const;
210 
217  void set_icon_widget(Widget& icon_widget);
218 
226 
233  const Widget* get_icon_widget() const;
234 
243  void set_label_widget(Widget& label_widget);
244 
252 
259  const Widget* get_label_widget() const;
260 
261 
271  Glib::SignalProxy0< void > signal_clicked();
272 
273 
279  Glib::PropertyProxy< Glib::ustring > property_label() ;
280 
286  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const;
287 
293  Glib::PropertyProxy< bool > property_use_underline() ;
294 
300  Glib::PropertyProxy_ReadOnly< bool > property_use_underline() const;
301 
307  Glib::PropertyProxy< Gtk::Widget* > property_label_widget() ;
308 
314  Glib::PropertyProxy_ReadOnly< Gtk::Widget* > property_label_widget() const;
315 
321  Glib::PropertyProxy< Glib::ustring > property_stock_id() ;
322 
328  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_stock_id() const;
329 
335  Glib::PropertyProxy< Glib::ustring > property_icon_name() ;
336 
342  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name() const;
343 
349  Glib::PropertyProxy< Gtk::Widget > property_icon_widget() ;
350 
356  Glib::PropertyProxy_ReadOnly< Gtk::Widget > property_icon_widget() const;
357 
358 
359 };
360 
361 } // namespace Gtk
362 
363 
364 namespace Glib
365 {
374  Gtk::ToolButton* wrap(GtkToolButton* object, bool take_copy = false);
375 } //namespace Glib
376 
377 
378 #endif /* _GTKMM_TOOLBUTTON_H */
379 
Glib::PropertyProxy< Glib::ustring > property_icon_name()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_label() const
Glib::PropertyProxy< Gtk::Widget > property_icon_widget()
Glib::ustring get_icon_name() const
void set_use_underline(bool use_underline=true)
virtual void on_clicked()
This is a default handler for the signal signal_clicked().
const Widget * get_icon_widget() const
ToolButton(const Gtk::StockID &stock_id)
Glib::ustring get_label() const
void set_stock_id(const Gtk::StockID &stock_id)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name() const
void set_icon_name(const Glib::ustring &icon_name)
GtkToolButton * gobj()
Provides access to the underlying C GtkObject.
Definition: toolbutton.h:87
Glib::PropertyProxy< Gtk::Widget * > property_label_widget()
Glib::PropertyProxy_ReadOnly< Gtk::Widget > property_icon_widget() const
Gtk::ToolButton * wrap(GtkToolButton *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< Gtk::Widget * > property_label_widget() const
bool get_use_underline() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_stock_id() const
ToolButton(const Glib::ustring &label)
void set_label(const Glib::ustring &label)
Widget * get_label_widget()
Glib::ustring get_stock_id() const
const GtkToolButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: toolbutton.h:90
void set_label_widget(Widget &label_widget)
Glib::PropertyProxy< Glib::ustring > property_label()
Glib::PropertyProxy_ReadOnly< bool > property_use_underline() const
void set_icon_widget(Widget &icon_widget)
Glib::PropertyProxy< bool > property_use_underline()
Glib::PropertyProxy< Glib::ustring > property_stock_id()
Widget * get_icon_widget()
const Widget * get_label_widget() const
Glib::SignalProxy0< void > signal_clicked()
ToolButton(Widget &icon_widget, const Glib::ustring &label=Glib::ustring())
virtual ~ToolButton()
Definition: ardour_ui.h:188