1Gtk2::IconSet(3) User Contributed Perl Documentation Gtk2::IconSet(3)
2
3
4
6 Gtk2::IconSet - wrapper for GtkIconSet
7
9 Glib::Boxed
10 +----Gtk2::IconSet
11
13 iconset = Gtk2::IconSet->new
14 iconset = Gtk2::IconSet->new_from_pixbuf ($pixbuf)
15 • $pixbuf (Gtk2::Gdk::Pixbuf)
16
17 $icon_set->add_source ($source)
18 • $source (Gtk2::IconSource)
19
20 pixbuf = $icon_set->render_icon ($style, $direction, $state, $size,
21 $widget, $detail=undef)
22 • $style (Gtk2::Style or undef)
23
24 • $direction (Gtk2::TextDirection)
25
26 • $state (Gtk2::StateType)
27
28 • $size (Gtk2::IconSize)
29
30 • $widget (Gtk2::Widget or undef)
31
32 • $detail (string)
33
34 list = $icon_set->get_sizes
35 Returns a list of Gtk2::IconSize's.
36
38 enum Gtk2::IconSize
39 • 'invalid' / 'GTK_ICON_SIZE_INVALID'
40
41 • 'menu' / 'GTK_ICON_SIZE_MENU'
42
43 • 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
44
45 • 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
46
47 • 'button' / 'GTK_ICON_SIZE_BUTTON'
48
49 • 'dnd' / 'GTK_ICON_SIZE_DND'
50
51 • 'dialog' / 'GTK_ICON_SIZE_DIALOG'
52
53 enum Gtk2::StateType
54 • 'normal' / 'GTK_STATE_NORMAL'
55
56 • 'active' / 'GTK_STATE_ACTIVE'
57
58 • 'prelight' / 'GTK_STATE_PRELIGHT'
59
60 • 'selected' / 'GTK_STATE_SELECTED'
61
62 • 'insensitive' / 'GTK_STATE_INSENSITIVE'
63
64 enum Gtk2::TextDirection
65 • 'none' / 'GTK_TEXT_DIR_NONE'
66
67 • 'ltr' / 'GTK_TEXT_DIR_LTR'
68
69 • 'rtl' / 'GTK_TEXT_DIR_RTL'
70
72 Gtk2, Glib::Boxed
73
75 Copyright (C) 2003-2011 by the gtk2-perl team.
76
77 This software is licensed under the LGPL. See Gtk2 for a full notice.
78
79
80
81perl v5.36.0 2023-01-20 Gtk2::IconSet(3)