3 #ifndef _GTKMM_ICONTHEME_H
4 #define _GTKMM_ICONTHEME_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
31 #include <giomm/icon.h>
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 {
class IconTheme_Class; }
73 {
return static_cast<IconLookupFlags>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
77 {
return static_cast<IconLookupFlags>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
81 {
return static_cast<IconLookupFlags>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
89 {
return (lhs =
static_cast<IconLookupFlags>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
93 {
return (lhs =
static_cast<IconLookupFlags>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
97 {
return (lhs =
static_cast<IconLookupFlags>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
117 #ifndef DOXYGEN_SHOULD_SKIP_THIS
120 static void throw_func(GError* gobject);
129 #ifndef DOXYGEN_SHOULD_SKIP_THIS
134 class Value<
Gtk::IconThemeError::Code> :
public Glib::Value_Enum<Gtk::IconThemeError::Code>
137 static GType value_type() G_GNUC_CONST;
151 #ifndef DOXYGEN_SHOULD_SKIP_THIS
160 static CppClassType icontheme_class_;
168 explicit IconTheme(
const Glib::ConstructParams& construct_params);
180 #ifndef DOXYGEN_SHOULD_SKIP_THIS
183 static GType get_base_type() G_GNUC_CONST;
230 static Glib::RefPtr<IconTheme>
get_for_screen(
const Glib::RefPtr<Gdk::Screen>& screen);
273 bool has_icon(
const Glib::ustring& icon_name)
const;
362 Glib::ListHandle<Glib::ustring>
list_icons(
const Glib::ustring& context)
const;
IconThemeError(GError *gobject)
IconThemeError(Code error_code, const Glib::ustring &error_message)
void set_screen(const Glib::RefPtr< Gdk::Screen > &screen)
Glib::ArrayHandle< int > get_icon_sizes(const Glib::ustring &icon_name) const
void prepend_search_path(const Glib::ustring &path)
static Glib::RefPtr< IconTheme > get_default()
IconInfo lookup_icon(const Glib::ustring &icon_name, int size, IconLookupFlags flags) const
IconInfo lookup_icon(const Glib::RefPtr< const Gio::Icon > &icon, int size, IconLookupFlags flags) const
IconInfo choose_icon(const Glib::StringArrayHandle &icon_names, int size, IconLookupFlags flags)
GtkIconTheme * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Glib::ListHandle< Glib::ustring > list_icons(const Glib::ustring &context) const
Glib::RefPtr< Gtk::IconTheme > wrap(GtkIconTheme *object, bool take_copy=false)
void set_search_path(const Glib::ArrayHandle< Glib::ustring > &path)
Glib::ListHandle< Glib::ustring > list_icons() const
bool has_icon(const Glib::ustring &icon_name) const
void append_search_path(const Glib::ustring &path)
static GType get_type() G_GNUC_CONST
const GtkIconTheme * gobj() const
Provides access to the underlying C GObject.
Glib::RefPtr< Gdk::Pixbuf > load_icon(const Glib::ustring &icon_name, int size, IconLookupFlags flags=(IconLookupFlags) 0) const
GtkIconTheme * gobj()
Provides access to the underlying C GObject.
Glib::SignalProxy0< void > signal_changed()
static Glib::RefPtr< IconTheme > create()
Glib::ListHandle< Glib::ustring > list_contexts() const
void set_custom_theme(const Glib::ustring &theme_name)
Glib::ustring get_example_icon_name() const
virtual void on_changed()
This is a default handler for the signal signal_changed().
static Glib::RefPtr< IconTheme > get_for_screen(const Glib::RefPtr< Gdk::Screen > &screen)
static void add_builtin_icon(const Glib::ustring &icon_name, int size, const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
Glib::ArrayHandle< Glib::ustring > get_search_path() const
GtkImagePixbufData pixbuf