Ardour  8.7-14-g57a6773833
imagemenuitem.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_IMAGEMENUITEM_H
4 #define _GTKMM_IMAGEMENUITEM_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: imagemenuitem.hg,v 1.3 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* checkmenuitem.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/menuitem.h>
32 #include <gtkmm/stockid.h>
33 #include <gtkmm/accelgroup.h>
34 
35 
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GtkImageMenuItem GtkImageMenuItem;
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 
41 
42 namespace Gtk
43 { class ImageMenuItem_Class; } // namespace Gtk
44 namespace Gtk
45 {
46 
56 class ImageMenuItem : public MenuItem
57 {
58  public:
59 #ifndef DOXYGEN_SHOULD_SKIP_THIS
60  typedef ImageMenuItem CppObjectType;
61  typedef ImageMenuItem_Class CppClassType;
62  typedef GtkImageMenuItem BaseObjectType;
63  typedef GtkImageMenuItemClass BaseClassType;
64 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
65 
66  virtual ~ImageMenuItem();
67 
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69 
70 private:
71  friend class ImageMenuItem_Class;
72  static CppClassType imagemenuitem_class_;
73 
74  // noncopyable
76  ImageMenuItem& operator=(const ImageMenuItem&);
77 
78 protected:
79  explicit ImageMenuItem(const Glib::ConstructParams& construct_params);
80  explicit ImageMenuItem(GtkImageMenuItem* castitem);
81 
82 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
83 
84 public:
85 #ifndef DOXYGEN_SHOULD_SKIP_THIS
86  static GType get_type() G_GNUC_CONST;
87 
88 
89  static GType get_base_type() G_GNUC_CONST;
90 #endif
91 
93  GtkImageMenuItem* gobj() { return reinterpret_cast<GtkImageMenuItem*>(gobject_); }
94 
96  const GtkImageMenuItem* gobj() const { return reinterpret_cast<GtkImageMenuItem*>(gobject_); }
97 
98 
99 public:
100  //C++ methods used to invoke GTK+ virtual functions:
101 
102 protected:
103  //GTK+ Virtual Functions (override these to change behaviour):
104 
105  //Default Signal Handlers::
106 
107 
108 private:
109 
110 public:
111 
114  const Glib::ustring& label, bool mnemonic = false);
115  explicit ImageMenuItem(const Glib::ustring& label, bool mnemonic = false);
116  explicit ImageMenuItem(const StockID& id);
117 
118 
127  void set_always_show_image(bool always_show = true);
128 
134  bool get_always_show_image() const;
135 
136 
144 
151 
157  const Widget* get_image() const;
158 
159 
165  void set_use_stock(bool use_stock = true);
166 
173  bool get_use_stock() const;
174 
185  void set_accel_group(const Glib::RefPtr<AccelGroup>& accel_group);
186 
192  Glib::PropertyProxy< Widget* > property_image() ;
193 
199  Glib::PropertyProxy_ReadOnly< Widget* > property_image() const;
200 
206  Glib::PropertyProxy< bool > property_use_stock() ;
207 
213  Glib::PropertyProxy_ReadOnly< bool > property_use_stock() const;
214 
220  Glib::PropertyProxy_WriteOnly< Glib::RefPtr<AccelGroup> > property_accel_group() ;
221 
222 
228  Glib::PropertyProxy< bool > property_always_show_image() ;
229 
235  Glib::PropertyProxy_ReadOnly< bool > property_always_show_image() const;
236 
237 
238 };
239 
240 } /* namespace Gtk */
241 
242 
243 namespace Glib
244 {
253  Gtk::ImageMenuItem* wrap(GtkImageMenuItem* object, bool take_copy = false);
254 } //namespace Glib
255 
256 
257 #endif /* _GTKMM_IMAGEMENUITEM_H */
258 
Glib::PropertyProxy< bool > property_always_show_image()
Glib::PropertyProxy_ReadOnly< Widget * > property_image() const
ImageMenuItem(const Glib::ustring &label, bool mnemonic=false)
void set_use_stock(bool use_stock=true)
void set_image(Widget &image)
virtual ~ImageMenuItem()
void set_always_show_image(bool always_show=true)
bool get_use_stock() const
Gtk::ImageMenuItem * wrap(GtkImageMenuItem *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< bool > property_use_stock() const
Glib::PropertyProxy_ReadOnly< bool > property_always_show_image() const
ImageMenuItem(Widget &image, const Glib::ustring &label, bool mnemonic=false)
const GtkImageMenuItem * gobj() const
Provides access to the underlying C GtkObject.
Definition: imagemenuitem.h:96
void set_accel_group(const Glib::RefPtr< AccelGroup > &accel_group)
GtkImageMenuItem * gobj()
Provides access to the underlying C GtkObject.
Definition: imagemenuitem.h:93
Glib::PropertyProxy< bool > property_use_stock()
ImageMenuItem(const StockID &id)
const Widget * get_image() const
Glib::PropertyProxy_WriteOnly< Glib::RefPtr< AccelGroup > > property_accel_group()
bool get_always_show_image() const
Widget * get_image()
Glib::PropertyProxy< Widget * > property_image()
GtkImageImageData image
Definition: gtkimage.h:1
Definition: ardour_ui.h:188