Ardour  9.0-pre0-384-ga76afae0e9
stockitem.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_STOCKITEM_H
4 #define _GTKMM_STOCKITEM_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: stockitem.hg,v 1.2 2004/04/11 21:00:53 murrayc Exp $ */
11 
12 /* Copyright(C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software, ) you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation, ) either
17  * version 2.1 of the License, or(at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY, ) without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library, ) if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 #include <gtkmm/stockid.h>
30 #include <gdkmm/types.h>
31 
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 extern "C"
35 {
36  typedef struct _GtkStockItem GtkStockItem;
37 }
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 namespace Gtk
41 {
42 
43 class StockItem
44 {
45  public:
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47  typedef StockItem CppObjectType;
48  typedef GtkStockItem BaseObjectType;
49 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
50 
56 
57  // Use make_a_copy=true when getting it directly from a struct.
58  explicit StockItem(GtkStockItem* castitem, bool make_a_copy = false);
59 
60  StockItem(const StockItem& src);
62 
64 
65  GtkStockItem* gobj() { return gobject_; }
66  const GtkStockItem* gobj() const { return gobject_; }
67 
70 
71 protected:
73 
74 private:
75 
76 
77 public:
78  StockItem(const Gtk::StockID& stock_id, const Glib::ustring& label,
79  Gdk::ModifierType modifier = Gdk::ModifierType(0), unsigned int keyval = 0,
80  const Glib::ustring& translation_domain = Glib::ustring());
81 
83  Glib::ustring get_label() const;
85  guint get_keyval() const;
86  Glib::ustring get_translation_domain() const;
87 
88  static bool lookup(const Gtk::StockID& stock_id, Gtk::StockItem& item);
89 
90 
91 };
92 
93 } // namespace Gtk
94 
95 
96 namespace Glib
97 {
98 
107 Gtk::StockItem wrap(GtkStockItem* object, bool take_copy = false);
108 
109 } // namespace Glib
110 
111 
112 #endif /* _GTKMM_STOCKITEM_H */
113 
Glib::ustring get_label() const
StockID get_stock_id() const
StockItem(GtkStockItem *castitem, bool make_a_copy=false)
GtkStockItem * gobj()
Definition: stockitem.h:65
GtkStockItem * gobject_
Definition: stockitem.h:72
guint get_keyval() const
Gdk::ModifierType get_modifier() const
StockItem & operator=(const StockItem &src)
Gtk::StockItem wrap(GtkStockItem *object, bool take_copy=false)
const GtkStockItem * gobj() const
Definition: stockitem.h:66
StockItem(const StockItem &src)
static bool lookup(const Gtk::StockID &stock_id, Gtk::StockItem &item)
StockItem(const Gtk::StockID &stock_id, const Glib::ustring &label, Gdk::ModifierType modifier=Gdk::ModifierType(0), unsigned int keyval=0, const Glib::ustring &translation_domain=Glib::ustring())
GtkStockItem * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it....
Glib::ustring get_translation_domain() const
typedefG_BEGIN_DECLS struct _GtkStockItem GtkStockItem
Definition: gtkstock.h:40
Definition: ardour_ui.h:187