1Gtk2::ItemFactory(3)  User Contributed Perl Documentation Gtk2::ItemFactory(3)
2
3
4

NAME

6       Gtk2::ItemFactory - wrapper for GtkItemFactory
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::ItemFactory
13

DEPRECATION WARNING

15       Gtk2::ItemFactory has been marked as deprecated, and should not be used
16       in newly written code.
17
18       You should use Gtk2::UIManager instead of Gtk2::ItemFactory.
19

METHODS

21   itemfactory = Gtk2::ItemFactory->new ($container_type_package, $path,
22       $accel_group=undef)
23       •   $container_type_package (string)
24
25       •   $path (string)
26
27       •   $accel_group (Gtk2::AccelGroup or undef)
28
29   $ifactory->create_item ($entry_ref, $callback_data=undef)
30       •   $entry_ref (scalar) GtkItemFactoryEntry
31
32       •   $callback_data (scalar)
33
34   $ifactory->create_items ($callback_data, ...)
35       •   $callback_data (scalar)
36
37       •   ... (list) GtkItemFactoryEntry's
38
39   $ifactory->delete_entries (...)
40       •   ... (list) GtkItemFactoryEntry's
41
42   $ifactory->delete_entry ($entry_ref)
43       •   $entry_ref (scalar) GtkItemFactoryEntry
44
45   $ifactory->delete_item ($path)
46       •   $path (string)
47
48   itemfactory or undef = Gtk2::ItemFactory->from_widget ($widget)
49       •   $widget (Gtk2::Widget)
50
51   widget or undef = $ifactory->get_item_by_action ($action)
52       •   $action (integer)
53
54   widget or undef = $ifactory->get_item ($path)
55       •   $path (string)
56
57   string = Gtk2::ItemFactory->path_from_widget ($widget)
58       •   $widget (Gtk2::Widget)
59
60   $ifactory->popup ($x, $y, $mouse_button, $time_, $popup_data=undef)
61       •   $x (integer)
62
63       •   $y (integer)
64
65       •   $mouse_button (integer)
66
67       •   $time_ (unsigned)
68
69       •   $popup_data (scalar)
70
71   scalar = $ifactory->popup_data
72   scalar = Gtk2::ItemFactory->popup_data_from_widget ($widget)
73       •   $widget (Gtk2::Widget)
74
75   $ifactory->set_translate_func ($func, $data=undef)
76       •   $func (scalar)
77
78       •   $data (scalar)
79
80   widget or undef = $ifactory->get_widget_by_action ($action)
81       •   $action (integer)
82
83   widget or undef = $ifactory->get_widget ($path)
84       •   $path (string)
85

SEE ALSO

87       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object
88
90       Copyright (C) 2003-2011 by the gtk2-perl team.
91
92       This software is licensed under the LGPL.  See Gtk2 for a full notice.
93
94
95
96perl v5.36.0                      2023-01-20              Gtk2::ItemFactory(3)
Impressum