Ardour  9.0-pre0-582-g084a23a80d
accellabel.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ACCELLABEL_H
4 #define _GTKMM_ACCELLABEL_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: accellabel.hg,v 1.5 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* accellabel.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/label.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkAccelLabel GtkAccelLabel;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class AccelLabel_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
51 class AccelLabel : public Label
52 {
53  public:
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
55  typedef AccelLabel CppObjectType;
56  typedef AccelLabel_Class CppClassType;
57  typedef GtkAccelLabel BaseObjectType;
58  typedef GtkAccelLabelClass BaseClassType;
59 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
60 
61  virtual ~AccelLabel();
62 
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64 
65 private:
66  friend class AccelLabel_Class;
67  static CppClassType accellabel_class_;
68 
69  // noncopyable
70  AccelLabel(const AccelLabel&);
71  AccelLabel& operator=(const AccelLabel&);
72 
73 protected:
74  explicit AccelLabel(const Glib::ConstructParams& construct_params);
75  explicit AccelLabel(GtkAccelLabel* castitem);
76 
77 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
78 
79 public:
80 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81  static GType get_type() G_GNUC_CONST;
82 
83 
84  static GType get_base_type() G_GNUC_CONST;
85 #endif
86 
88  GtkAccelLabel* gobj() { return reinterpret_cast<GtkAccelLabel*>(gobject_); }
89 
91  const GtkAccelLabel* gobj() const { return reinterpret_cast<GtkAccelLabel*>(gobject_); }
92 
93 
94 public:
95  //C++ methods used to invoke GTK+ virtual functions:
96 
97 protected:
98  //GTK+ Virtual Functions (override these to change behaviour):
99 
100  //Default Signal Handlers::
101 
102 
103 private:
104 
105  //gtkmmproc error: gtk_accel_label_accelerator_width : ignored method defs lookup failed
106 public:
107 
108  //The default ctor doesn't correspond to any _new function, but gtkmenuitem.cc does a simple g_object_new() with no properties.
112 
117  explicit AccelLabel(const Glib::ustring& label, bool mnemonic = false);
118 
119 
124  void set_accel_widget(const Widget& accel_widget);
127 
128 
135 
141  const Widget* get_accel_widget() const;
142 
143 
148  guint get_accel_width() const;
149 
154  bool refetch();
155 
156  //_WRAP_PROPERTY("accel-closure", Glib::Object) //GClosure
162  Glib::PropertyProxy< Gtk::Widget* > property_accel_widget() ;
163 
169  Glib::PropertyProxy_ReadOnly< Gtk::Widget* > property_accel_widget() const;
170 
171 
172 };
173 
174 } /* namespace Gtk */
175 
176 
177 namespace Glib
178 {
187  Gtk::AccelLabel* wrap(GtkAccelLabel* object, bool take_copy = false);
188 } //namespace Glib
189 
190 
191 #endif /* _GTKMM_ACCELLABEL_H */
192 
void unset_accel_widget()
Forget the accel widget previously set by set_accel_widget().
virtual ~AccelLabel()
Glib::PropertyProxy_ReadOnly< Gtk::Widget * > property_accel_widget() const
GtkAccelLabel * gobj()
Provides access to the underlying C GtkObject.
Definition: accellabel.h:88
Glib::PropertyProxy< Gtk::Widget * > property_accel_widget()
const Widget * get_accel_widget() const
AccelLabel(const Glib::ustring &label, bool mnemonic=false)
Widget * get_accel_widget()
Gtk::AccelLabel * wrap(GtkAccelLabel *object, bool take_copy=false)
const GtkAccelLabel * gobj() const
Provides access to the underlying C GtkObject.
Definition: accellabel.h:91
void set_accel_widget(const Widget &accel_widget)
guint get_accel_width() const
Definition: ardour_ui.h:188