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

NAME

6       Gtk2::IconSet
7

HIERARCHY

9         Glib::Boxed
10         +----Gtk2::IconSet
11

METHODS

13       iconset = Gtk2::IconSet->new
14
15       iconset = Gtk2::IconSet->new_from_pixbuf ($pixbuf)
16
17           * $pixbuf (Gtk2::Gdk::Pixbuf)
18
19       $icon_set->add_source ($source)
20
21           * $source (Gtk2::IconSource)
22
23       pixbuf = $icon_set->render_icon ($style, $direction, $state, $size,
24       $widget, $detail=undef)
25
26           * $style (Gtk2::Style or undef)
27           * $direction (Gtk2::TextDirection)
28           * $state (Gtk2::StateType)
29           * $size (Gtk2::IconSize)
30           * $widget (Gtk2::Widget or undef)
31           * $detail (string)
32
33       list = $icon_set->get_sizes
34
35           Returns a list of Gtk2::IconSize's.
36

ENUMS AND FLAGS

38       enum Gtk2::IconSize
39
40       * 'invalid' / 'GTK_ICON_SIZE_INVALID'
41       * 'menu' / 'GTK_ICON_SIZE_MENU'
42       * 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR'
43       * 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR'
44       * 'button' / 'GTK_ICON_SIZE_BUTTON'
45       * 'dnd' / 'GTK_ICON_SIZE_DND'
46       * 'dialog' / 'GTK_ICON_SIZE_DIALOG'
47
48       enum Gtk2::StateType
49
50       * 'normal' / 'GTK_STATE_NORMAL'
51       * 'active' / 'GTK_STATE_ACTIVE'
52       * 'prelight' / 'GTK_STATE_PRELIGHT'
53       * 'selected' / 'GTK_STATE_SELECTED'
54       * 'insensitive' / 'GTK_STATE_INSENSITIVE'
55
56       enum Gtk2::TextDirection
57
58       * 'none' / 'GTK_TEXT_DIR_NONE'
59       * 'ltr' / 'GTK_TEXT_DIR_LTR'
60       * 'rtl' / 'GTK_TEXT_DIR_RTL'
61

SEE ALSO

63       Gtk2, Glib::Boxed
64
66       Copyright (C) 2003-2007 by the gtk2-perl team.
67
68       This software is licensed under the LGPL.  See Gtk2 for a full notice.
69
70
71
72perl v5.8.8                       2007-03-18                  Gtk2::IconSet(3)
Impressum