Debian Codegraph @

gtk/src/iconsource.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 <gdkmm/pixbuf.h>
21 #include <gtkmm/enums.h>
22
23 _DEFS(gtkmm,gtk)
24
25 #m4 _PUSH(SECTION_CC_PRE_INCLUDES)
26 #undef GTK_DISABLE_DEPRECATED
27 #define GDK_DISABLE_DEPRECATION_WARNINGS 1
28 #m4 _POP()
29
30 _IS_DEPRECATED // This whole file is deprecated.
31
32 namespace Gtk
33 {
34
35 /** @deprecated Use Gtk::IconTheme instead.
36 */
37 class GTKMM_API IconSource
38 {
39 _CLASS_BOXEDTYPE(IconSource, GtkIconSource, gtk_icon_source_new, gtk_icon_source_copy, gtk_icon_source_free, GTKMM_API)
40 _IGNORE(gtk_icon_source_copy, gtk_icon_source_free)
41 public:
42
43 _WRAP_METHOD(void set_filename(const Glib::ustring& filename), gtk_icon_source_set_filename)
44 _WRAP_METHOD(void set_pixbuf(const Glib::RefPtr<Gdk::Pixbuf>&pixbuf), gtk_icon_source_set_pixbuf)
45
46 _WRAP_METHOD(Glib::ustring get_filename() const, gtk_icon_source_get_filename)
47 _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> get_pixbuf(), gtk_icon_source_get_pixbuf, refreturn)
48 _WRAP_METHOD(Glib::RefPtr<const Gdk::Pixbuf> get_pixbuf() const, gtk_icon_source_get_pixbuf, refreturn, constversion)
49
50 _WRAP_METHOD(void set_direction_wildcarded(bool setting = true), gtk_icon_source_set_direction_wildcarded)
51 _WRAP_METHOD(void set_state_wildcarded(bool setting = true), gtk_icon_source_set_state_wildcarded)
52 _WRAP_METHOD(void set_size_wildcarded (bool setting = true), gtk_icon_source_set_size_wildcarded)
53 _WRAP_METHOD(bool get_size_wildcarded() const, gtk_icon_source_get_size_wildcarded)
54 _WRAP_METHOD(bool get_state_wildcarded() const, gtk_icon_source_get_state_wildcarded)
55 _WRAP_METHOD(bool get_direction_wildcarded() const, gtk_icon_source_get_direction_wildcarded)
56 _WRAP_METHOD(void set_direction(TextDirection direction), gtk_icon_source_set_direction)
57 _WRAP_METHOD(void set_state(Gtk::StateType state), gtk_icon_source_set_state)
58 _WRAP_METHOD(void set_size(IconSize size), gtk_icon_source_set_size)
59 _WRAP_METHOD(TextDirection get_direction() const, gtk_icon_source_get_direction)
60 _WRAP_METHOD(Gtk::StateType get_state() const, gtk_icon_source_get_state)
61 _WRAP_METHOD(IconSize get_size() const, gtk_icon_source_get_size)
62
63 _WRAP_METHOD(void set_icon_name(const Glib::ustring& icon_name), gtk_icon_source_set_icon_name)
64 _WRAP_METHOD(Glib::ustring get_icon_name() const, gtk_icon_source_get_icon_name)
65 };
66
67 } //namespace Gtk