Gtk2::IconSet − wrapper for GtkIconSet
Glib::Boxed
+−−−−Gtk2::IconSet
iconset =
Gtk2::IconSet−>new
iconset = Gtk2::IconSet−>new_from_pixbuf
($pixbuf)
• |
$pixbuf (Gtk2::Gdk::Pixbuf) |
$icon_set−>add_source ($source)
• |
$source (Gtk2::IconSource) |
pixbuf = $icon_set−>render_icon ($style, $direction, $state, $size, $widget, $detail=undef)
• |
$style (Gtk2::Style or undef) |
|||
• |
$direction (Gtk2::TextDirection) |
|||
• |
$state (Gtk2::StateType) |
|||
• |
$size (Gtk2::IconSize) |
|||
• |
$widget (Gtk2::Widget or undef) |
|||
• |
$detail (string) |
list =
$icon_set−>get_sizes
Returns a list of Gtk2::IconSize’s.
enum Gtk2::IconSize
• |
’invalid’ / ’ GTK_ICON_SIZE_INVALID ’ |
|||
• |
’menu’ / ’ GTK_ICON_SIZE_MENU ’ |
|||
• |
’small−toolbar’ / ’ GTK_ICON_SIZE_SMALL_TOOLBAR ’ |
|||
• |
’large−toolbar’ / ’ GTK_ICON_SIZE_LARGE_TOOLBAR ’ |
|||
• |
’button’ / ’ GTK_ICON_SIZE_BUTTON ’ |
|||
• |
’dnd’ / ’ GTK_ICON_SIZE_DND ’ |
|||
• |
’dialog’ / ’ GTK_ICON_SIZE_DIALOG ’ |
enum Gtk2::StateType
• |
’normal’ / ’ GTK_STATE_NORMAL ’ |
|||
• |
’active’ / ’ GTK_STATE_ACTIVE ’ |
|||
• |
’prelight’ / ’ GTK_STATE_PRELIGHT ’ |
|||
• |
’selected’ / ’ GTK_STATE_SELECTED ’ |
|||
• |
’insensitive’ / ’ GTK_STATE_INSENSITIVE ’ |
enum Gtk2::TextDirection
• |
’none’ / ’ GTK_TEXT_DIR_NONE ’ |
|||
• |
’ltr’ / ’ GTK_TEXT_DIR_LTR ’ |
|||
• |
’rtl’ / ’ GTK_TEXT_DIR_RTL ’ |
Gtk2, Glib::Boxed
Copyright (C) 2003−2011 by the gtk2−perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.