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

NAME

6       Gtk2::IconTheme
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)
35
36   icontheme = Gtk2::IconTheme->get_default
37   string = $icon_theme->get_example_icon_name
38   icontheme = Gtk2::IconTheme->get_for_screen ($screen)
39           ·   $screen (Gtk2::Gdk::Screen)
40
41   boolean = $icon_theme->has_icon ($icon_name)
42           ·   $icon_name (string)
43
44   list = $icon_theme->get_icon_sizes ($icon_name)
45           ·   $icon_name (string)
46
47           Since: gtk+ 2.6
48
49   list = $icon_theme->list_contexts
50           Since: gtk+ 2.12
51
52   list = $icon_theme->list_icons ($context)
53           ·   $context (string or undef)
54
55   pixbuf or undef = $icon_theme->load_icon ($icon_name, $size, $flags)
56           ·   $icon_name (string)
57
58           ·   $size (integer)
59
60           ·   $flags (Gtk2::IconLookupFlags)
61
62           May croak with a Glib::Error in $@ on failure.
63
64   iconinfo or undef = $icon_theme->lookup_icon ($icon_name, $size, $flags)
65           ·   $icon_name (string)
66
67           ·   $size (integer)
68
69           ·   $flags (Gtk2::IconLookupFlags)
70
71   $icon_theme->prepend_search_path ($path)
72           ·   $path (localized file name)
73
74   boolean = $icon_theme->rescan_if_needed
75   $icon_theme->set_screen ($screen)
76           ·   $screen (Gtk2::Gdk::Screen)
77
78   list = $icon_theme->get_search_path
79   $icon_theme->set_search_path (...)
80           ·   ... (list)
81

SIGNALS

83       changed (Gtk2::IconTheme)
84

ENUMS AND FLAGS

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

SEE ALSO

103       Gtk2, Glib::Object
104
106       Copyright (C) 2003-2008 by the gtk2-perl team.
107
108       This software is licensed under the LGPL.  See Gtk2 for a full notice.
109
110
111
112perl v5.12.0                      2010-05-02                Gtk2::IconTheme(3)
Impressum