Gtk2::IconSet(3) User Contributed Perl Documentation Gtk2::IconSet(3)

Gtk2::IconSet - wrapper for GtkIconSet

Glib::Boxed
+----Gtk2::IconSet

iconset = Gtk2::IconSet->new

iconset = Gtk2::IconSet->new_from_pixbuf ($pixbuf)

$pixbuf (Gtk2::Gdk::Pixbuf)

$source (Gtk2::IconSource)

  • $style (Gtk2::Style or undef)
  • $direction (Gtk2::TextDirection)
  • $state (Gtk2::StateType)
  • $size (Gtk2::IconSize)
  • $widget (Gtk2::Widget or undef)
  • $detail (string)

Returns a list of Gtk2::IconSize's.

  • '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'

  • 'normal' / 'GTK_STATE_NORMAL'
  • 'active' / 'GTK_STATE_ACTIVE'
  • 'prelight' / 'GTK_STATE_PRELIGHT'
  • 'selected' / 'GTK_STATE_SELECTED'
  • 'insensitive' / 'GTK_STATE_INSENSITIVE'

  • '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.

2023-07-25 perl v5.38.0