Gtk2::IconSet(3) User Contributed Perl Documentation Gtk2::IconSet(3) NAME Gtk2::IconSet - wrapper for GtkIconSet HIERARCHY Glib::Boxed +----Gtk2::IconSet METHODS iconset = Gtk2::IconSet->new iconset = Gtk2::IconSet->new_from_pixbuf ($pixbuf) o $pixbuf (Gtk2::Gdk::Pixbuf) $icon_set->add_source ($source) o $source (Gtk2::IconSource) pixbuf = $icon_set->render_icon ($style, $direction, $state, $size, $widget, $detail=undef) o $style (Gtk2::Style or undef) o $direction (Gtk2::TextDirection) o $state (Gtk2::StateType) o $size (Gtk2::IconSize) o $widget (Gtk2::Widget or undef) o $detail (string) list = $icon_set->get_sizes Returns a list of Gtk2::IconSize's. ENUMS AND FLAGS enum Gtk2::IconSize o 'invalid' / 'GTK_ICON_SIZE_INVALID' o 'menu' / 'GTK_ICON_SIZE_MENU' o 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR' o 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR' o 'button' / 'GTK_ICON_SIZE_BUTTON' o 'dnd' / 'GTK_ICON_SIZE_DND' o 'dialog' / 'GTK_ICON_SIZE_DIALOG' enum Gtk2::StateType o 'normal' / 'GTK_STATE_NORMAL' o 'active' / 'GTK_STATE_ACTIVE' o 'prelight' / 'GTK_STATE_PRELIGHT' o 'selected' / 'GTK_STATE_SELECTED' o 'insensitive' / 'GTK_STATE_INSENSITIVE' enum Gtk2::TextDirection o 'none' / 'GTK_TEXT_DIR_NONE' o 'ltr' / 'GTK_TEXT_DIR_LTR' o 'rtl' / 'GTK_TEXT_DIR_RTL' SEE ALSO Gtk2, Glib::Boxed COPYRIGHT Copyright (C) 2003-2011 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.38.0 2023-07-25 Gtk2::IconSet(3)