1Gtk2::IconTheme(3)    User Contributed Perl Documentation   Gtk2::IconTheme(3)
2
3
4

NAME

6       Gtk2::IconTheme - wrapper for GtkIconTheme
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::IconTheme
11

METHODS

13   icontheme = Gtk2::IconTheme->new
14   Gtk2::IconTheme->add_builtin_icon ($icon_name, $size, $pixbuf)
15       ·   $icon_name (string)
16
17       ·   $size (integer)
18
19       ·   $pixbuf (Gtk2::Gdk::Pixbuf)
20
21   $icon_theme->append_search_path ($path)
22       ·   $path (localized file name)
23
24   iconinfo or undef = $icon_theme->choose_icon ($icon_names, $size, $flags)
25       ·   $icon_names (scalar)
26
27       ·   $size (integer)
28
29       ·   $flags (Gtk2::IconLookupFlags)
30
31       Since: gtk+ 2.12
32
33   $icon_theme->set_custom_theme ($theme_name)
34       ·   $theme_name (string or undef)
35
36       Cannot be used on a "Gtk2::IconTheme" returned by
37       Gtk2::IconTheme->get_default or Gtk2::IconTheme->get_for_screen.
38
39   icontheme = Gtk2::IconTheme->get_default
40   string or undef = $icon_theme->get_example_icon_name
41   icontheme = Gtk2::IconTheme->get_for_screen ($screen)
42       ·   $screen (Gtk2::Gdk::Screen)
43
44   boolean = $icon_theme->has_icon ($icon_name)
45       ·   $icon_name (string)
46
47   list = $icon_theme->get_icon_sizes ($icon_name)
48       ·   $icon_name (string)
49
50       Since: gtk+ 2.6
51
52   list = $icon_theme->list_contexts
53       Since: gtk+ 2.12
54
55   list = $icon_theme->list_icons ($context)
56       ·   $context (string or undef)
57
58   pixbuf or undef = $icon_theme->load_icon ($icon_name, $size, $flags)
59       ·   $icon_name (string)
60
61       ·   $size (integer)
62
63       ·   $flags (Gtk2::IconLookupFlags)
64
65       May croak with a Glib::Error in $@ on failure.
66
67   iconinfo or undef = $icon_theme->lookup_icon ($icon_name, $size, $flags)
68       ·   $icon_name (string)
69
70       ·   $size (integer)
71
72       ·   $flags (Gtk2::IconLookupFlags)
73
74   $icon_theme->prepend_search_path ($path)
75       ·   $path (localized file name)
76
77   boolean = $icon_theme->rescan_if_needed
78   $icon_theme->set_screen ($screen)
79       ·   $screen (Gtk2::Gdk::Screen)
80
81   list = $icon_theme->get_search_path
82   $icon_theme->set_search_path (...)
83       ·   ... (list)
84

SIGNALS

86       changed (Gtk2::IconTheme)
87

ENUMS AND FLAGS

89   flags Gtk2::IconLookupFlags
90       ·   'no-svg' / 'GTK_ICON_LOOKUP_NO_SVG'
91
92       ·   'force-svg' / 'GTK_ICON_LOOKUP_FORCE_SVG'
93
94       ·   'use-builtin' / 'GTK_ICON_LOOKUP_USE_BUILTIN'
95
96       ·   'generic-fallback' / 'GTK_ICON_LOOKUP_GENERIC_FALLBACK'
97
98       ·   'force-size' / 'GTK_ICON_LOOKUP_FORCE_SIZE'
99
100   enum Gtk2::IconThemeError
101       ·   'not-found' / 'GTK_ICON_THEME_NOT_FOUND'
102
103       ·   'failed' / 'GTK_ICON_THEME_FAILED'
104

SEE ALSO

106       Gtk2, Glib::Object
107
109       Copyright (C) 2003-2011 by the gtk2-perl team.
110
111       This software is licensed under the LGPL.  See Gtk2 for a full notice.
112
113
114
115perl v5.28.0                      2018-07-18                Gtk2::IconTheme(3)
Impressum