Debian Codegraph @

gtk/src/iconfactory.hg

raw
1 /* Copyright (C) 1998-2002 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 // To exclude this file from the documentation when build-deprecated-api=false.
18 _CONFIGINCLUDE(gtkmmconfig.h)
19
20 #include <gtkmm/enums.h>
21 #include <glibmm/object.h>
22 #include <gtkmm/enums.h>
23 #include <gtkmm/iconset.h>
24 #include <gtkmm/stockid.h>
25
26 _DEFS(gtkmm,gtk)
27 _PINCLUDE(glibmm/private/object_p.h)
28
29 #m4 _PUSH(SECTION_CC_PRE_INCLUDES)
30 #undef GTK_DISABLE_DEPRECATED
31 #define GDK_DISABLE_DEPRECATION_WARNINGS 1
32 #m4 _POP()
33
34 _IS_DEPRECATED // This whole file is deprecated.
35
36 namespace Gtk
37 {
38
39 /** @deprecated Use Gtk::IconTheme instead.
40 */
41 class GTKMM_API IconFactory : public Glib::Object
42 {
43 _CLASS_GOBJECT(IconFactory, GtkIconFactory, GTK_ICON_FACTORY, Glib::Object, GObject, , , GTKMM_API)
44 _IGNORE(gtk_icon_factory_lookup)
45 protected:
46
47 _CTOR_DEFAULT()
48
49 public:
50 _WRAP_CREATE()
51
52 _WRAP_METHOD(void add(const Gtk::StockID& stock_id, const Glib::RefPtr<IconSet>& icon_set), gtk_icon_factory_add)
53 _WRAP_METHOD(void add_default(), gtk_icon_factory_add_default)
54 _WRAP_METHOD(void remove_default(), gtk_icon_factory_remove_default)
55 };
56
57 } // namespace Gtk