/* Copyright (C) 1998-2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, see . */ // To exclude this file from the documentation when build-deprecated-api=false. _CONFIGINCLUDE(gtkmmconfig.h) #include #include _DEFS(gtkmm,gtk) #m4 _PUSH(SECTION_CC_PRE_INCLUDES) #undef GTK_DISABLE_DEPRECATED #define GDK_DISABLE_DEPRECATION_WARNINGS 1 #m4 _POP() _IS_DEPRECATED // This whole file is deprecated. namespace Gtk { /** @deprecated Use Gtk::IconTheme instead. */ class GTKMM_API IconSource { _CLASS_BOXEDTYPE(IconSource, GtkIconSource, gtk_icon_source_new, gtk_icon_source_copy, gtk_icon_source_free, GTKMM_API) _IGNORE(gtk_icon_source_copy, gtk_icon_source_free) public: _WRAP_METHOD(void set_filename(const Glib::ustring& filename), gtk_icon_source_set_filename) _WRAP_METHOD(void set_pixbuf(const Glib::RefPtr&pixbuf), gtk_icon_source_set_pixbuf) _WRAP_METHOD(Glib::ustring get_filename() const, gtk_icon_source_get_filename) _WRAP_METHOD(Glib::RefPtr get_pixbuf(), gtk_icon_source_get_pixbuf, refreturn) _WRAP_METHOD(Glib::RefPtr get_pixbuf() const, gtk_icon_source_get_pixbuf, refreturn, constversion) _WRAP_METHOD(void set_direction_wildcarded(bool setting = true), gtk_icon_source_set_direction_wildcarded) _WRAP_METHOD(void set_state_wildcarded(bool setting = true), gtk_icon_source_set_state_wildcarded) _WRAP_METHOD(void set_size_wildcarded (bool setting = true), gtk_icon_source_set_size_wildcarded) _WRAP_METHOD(bool get_size_wildcarded() const, gtk_icon_source_get_size_wildcarded) _WRAP_METHOD(bool get_state_wildcarded() const, gtk_icon_source_get_state_wildcarded) _WRAP_METHOD(bool get_direction_wildcarded() const, gtk_icon_source_get_direction_wildcarded) _WRAP_METHOD(void set_direction(TextDirection direction), gtk_icon_source_set_direction) _WRAP_METHOD(void set_state(Gtk::StateType state), gtk_icon_source_set_state) _WRAP_METHOD(void set_size(IconSize size), gtk_icon_source_set_size) _WRAP_METHOD(TextDirection get_direction() const, gtk_icon_source_get_direction) _WRAP_METHOD(Gtk::StateType get_state() const, gtk_icon_source_get_state) _WRAP_METHOD(IconSize get_size() const, gtk_icon_source_get_size) _WRAP_METHOD(void set_icon_name(const Glib::ustring& icon_name), gtk_icon_source_set_icon_name) _WRAP_METHOD(Glib::ustring get_icon_name() const, gtk_icon_source_get_icon_name) }; } //namespace Gtk