2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GTKMM_STOCKITEM_H
4
#define _GTKMM_STOCKITEM_H
9
/* $Id: stockitem.hg,v 1.2 2004/04/11 21:00:53 murrayc Exp $ */
11
/* Copyright(C) 1998-2002 The gtkmm Development Team
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.
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.
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.
28
#include <gdkmm/types.h>
29
#include <gtkmm/stockid.h>
32
#ifndef DOXYGEN_SHOULD_SKIP_THIS
35
typedef struct _GtkStockItem GtkStockItem;
37
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
45
#ifndef DOXYGEN_SHOULD_SKIP_THIS
46
typedef StockItem CppObjectType;
47
typedef GtkStockItem BaseObjectType;
48
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
52
// Use make_a_copy=true when getting it directly from a struct.
53
explicit StockItem(GtkStockItem* castitem, bool make_a_copy = false);
55
StockItem(const StockItem& src);
56
StockItem& operator=(const StockItem& src);
60
GtkStockItem* gobj() { return gobject_; }
61
const GtkStockItem* gobj() const { return gobject_; }
63
///Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
64
GtkStockItem* gobj_copy() const;
67
GtkStockItem* gobject_;
73
StockItem(const Gtk::StockID& stock_id, const Glib::ustring& label,
74
Gdk::ModifierType modifier = Gdk::ModifierType(0), unsigned int keyval = 0,
75
const Glib::ustring& translation_domain = Glib::ustring());
77
StockID get_stock_id() const;
78
Glib::ustring get_label() const;
79
Gdk::ModifierType get_modifier() const;
80
guint get_keyval() const;
81
Glib::ustring get_translation_domain() const;
83
static bool lookup(const Gtk::StockID& stock_id, Gtk::StockItem& item);
94
/** A Glib::wrap() method for this object.
96
* @param object The C instance.
97
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
98
* @result A C++ instance that wraps this C instance.
100
* @relates Gtk::StockItem
102
Gtk::StockItem wrap(GtkStockItem* object, bool take_copy = false);
107
#endif /* _GTKMM_STOCKITEM_H */