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

Gtk2::ItemFactory - wrapper for GtkItemFactory

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::ItemFactory

Gtk2::ItemFactory has been marked as deprecated, and should not be used in newly written code.

You should use Gtk2::UIManager instead of Gtk2::ItemFactory.

  • $container_type_package (string)
  • $path (string)
  • $accel_group (Gtk2::AccelGroup or undef)

$ifactory->create_item ($entry_ref, $callback_data=undef)

  • $entry_ref (scalar) GtkItemFactoryEntry
  • $callback_data (scalar)

$ifactory->create_items ($callback_data, ...)

  • $callback_data (scalar)
  • ... (list) GtkItemFactoryEntry's

$ifactory->delete_entries (...)

... (list) GtkItemFactoryEntry's

$ifactory->delete_entry ($entry_ref)

$entry_ref (scalar) GtkItemFactoryEntry

$ifactory->delete_item ($path)

$path (string)

$widget (Gtk2::Widget)

widget or undef = $ifactory->get_item_by_action ($action)

$action (integer)

widget or undef = $ifactory->get_item ($path)

$path (string)

$widget (Gtk2::Widget)

$ifactory->popup ($x, $y, $mouse_button, $time_, $popup_data=undef)

  • $x (integer)
  • $y (integer)
  • $mouse_button (integer)
  • $time_ (unsigned)
  • $popup_data (scalar)

$widget (Gtk2::Widget)

$ifactory->set_translate_func ($func, $data=undef)

  • $func (scalar)
  • $data (scalar)

widget or undef = $ifactory->get_widget_by_action ($action)

$action (integer)

widget or undef = $ifactory->get_widget ($path)

$path (string)

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object

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

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

2022-05-29 perl v5.36.0