2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GTKMM_IMAGEMENUITEM_H
4
#define _GTKMM_IMAGEMENUITEM_H
12
* Copyright (C) 1998-2002 The gtkmm Development Team
14
* This library is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU Library General Public
16
* License as published by the Free Software Foundation; either
17
* version 2 of the License, or (at your option) any later version.
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
* Library General Public License for more details.
24
* You should have received a copy of the GNU Library 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.
29
#include <gtkmm/menuitem.h>
30
#include <gtkmm/stockid.h>
33
#ifndef DOXYGEN_SHOULD_SKIP_THIS
34
typedef struct _GtkImageMenuItem GtkImageMenuItem;
35
typedef struct _GtkImageMenuItemClass GtkImageMenuItemClass;
36
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
40
{ class ImageMenuItem_Class; } // namespace Gtk
44
/** A menu item with an icon.
46
* A GtkImageMenuItem is a menu item which has an icon next to the text label. Note that the
47
* user can disable display of menu icons, so make sure to still fill in the text label.
53
class ImageMenuItem : public MenuItem
56
#ifndef DOXYGEN_SHOULD_SKIP_THIS
57
typedef ImageMenuItem CppObjectType;
58
typedef ImageMenuItem_Class CppClassType;
59
typedef GtkImageMenuItem BaseObjectType;
60
typedef GtkImageMenuItemClass BaseClassType;
61
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
63
virtual ~ImageMenuItem();
65
#ifndef DOXYGEN_SHOULD_SKIP_THIS
68
friend class ImageMenuItem_Class;
69
static CppClassType imagemenuitem_class_;
72
ImageMenuItem(const ImageMenuItem&);
73
ImageMenuItem& operator=(const ImageMenuItem&);
76
explicit ImageMenuItem(const Glib::ConstructParams& construct_params);
77
explicit ImageMenuItem(GtkImageMenuItem* castitem);
79
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
82
#ifndef DOXYGEN_SHOULD_SKIP_THIS
83
static GType get_type() G_GNUC_CONST;
84
static GType get_base_type() G_GNUC_CONST;
87
///Provides access to the underlying C GtkObject.
88
GtkImageMenuItem* gobj() { return reinterpret_cast<GtkImageMenuItem*>(gobject_); }
90
///Provides access to the underlying C GtkObject.
91
const GtkImageMenuItem* gobj() const { return reinterpret_cast<GtkImageMenuItem*>(gobject_); }
95
//C++ methods used to invoke GTK+ virtual functions:
98
//GTK+ Virtual Functions (override these to change behaviour):
100
//Default Signal Handlers::
108
explicit ImageMenuItem(Widget& image,
109
const Glib::ustring& label, bool mnemonic = false);
110
explicit ImageMenuItem(const Glib::ustring& label, bool mnemonic = false);
111
explicit ImageMenuItem(const StockID& id);
114
/** Sets the image of @a image_menu_item to the given widget.
115
* Note that it depends on the show-menu-images setting whether
116
* the image will be displayed or not.
117
* @param image A widget to set as the image for the menu item.
119
void set_image(Widget& image);
121
/** Gets the widget that is currently set as the image of @a image_menu_item .
123
* @return The widget set as image of @a image_menu_item .
127
/** Gets the widget that is currently set as the image of @a image_menu_item .
129
* @return The widget set as image of @a image_menu_item .
131
const Widget* get_image() const;
136
} /* namespace Gtk */
141
/** @relates Gtk::ImageMenuItem
142
* @param object The C instance
143
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
144
* @result A C++ instance that wraps this C instance.
146
Gtk::ImageMenuItem* wrap(GtkImageMenuItem* object, bool take_copy = false);
148
#endif /* _GTKMM_IMAGEMENUITEM_H */