Gtk2::IconSource(3) wrapper for GtkIconSource

HIERARCHY

  Glib::Boxed
  +----Gtk2::IconSource

METHODS

iconsource = Gtk2::IconSource->new

textdirection = $source->get_direction

$source->set_direction ($direction)

  • $direction (Gtk2::TextDirection)

boolean = $source->get_direction_wildcarded

$source->set_direction_wildcarded ($setting)

  • $setting (boolean)

localized file name = $source->get_filename

$source->set_filename ($filename)

  • $filename (localized file name)

string = $source->get_icon_name

Since: gtk+ 2.4

$source->set_icon_name ($icon_name)

  • $icon_name (string)

Since: gtk+ 2.4

pixbuf or undef = $source->get_pixbuf

$source->set_pixbuf ($pixbuf)

  • $pixbuf (Gtk2::Gdk::Pixbuf)

iconsize = $source->get_size

$source->set_size ($size)

  • $size (Gtk2::IconSize)

boolean = $source->get_size_wildcarded

$source->set_size_wildcarded ($setting)

  • $setting (boolean)

statetype = $source->get_state

$source->set_state ($state)

  • $state (Gtk2::StateType)

boolean = $source->get_state_wildcarded

$source->set_state_wildcarded ($setting)

  • $setting (boolean)

ENUMS AND FLAGS

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'

COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.