1Gtk2::Object(3) User Contributed Perl Documentation Gtk2::Object(3)
2
3
4
6 Gtk2::Object
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12
14 object = Gtk2::Object->new ($object_class, ...)
15
16 * $object_class (string) package name of object to create
17 * ... (list) of property-name => value pairs
18
19 Create a new object of type $object_class, with some optional ini‐
20 tial property values. You may see this used in some code as
21 Gtk2::Widget->new, e.g.
22
23 $window = Gtk2::Widget->new ('Gtk2::Window',
24 title => 'something cool',
25 allow_grow => TRUE);
26
27 This is really just a convenience function that wraps
28 Glib::Object->new.
29
30 $object->destroy
31
32 This is an explicit destroy --- NOT the auto destroy; Gtk2::Object
33 inherits that from Glib::Object!
34
36 'user-data' (gpointer : readable / writable / private)
37 Anonymous User Data Pointer
38
40 destroy (Gtk2::Object)
41
43 Gtk2, Glib::Object, Glib::InitiallyUnowned
44
46 Copyright (C) 2003-2007 by the gtk2-perl team.
47
48 This software is licensed under the LGPL. See Gtk2 for a full notice.
49
50
51
52perl v5.8.8 2007-03-18 Gtk2::Object(3)