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

NAME

6       Gtk2::Object - wrapper for GtkObject
7

HIERARCHY

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

METHODS

14   object = Gtk2::Object->new ($object_class, ...)
15       ·   $object_class (string) package name of object to create
16
17       ·   ... (list) of property-name => value pairs
18
19       Create a new object of type $object_class, with some optional initial
20       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   boolean = $object->bindings_activate ($keyval, $modifiers)
31       ·   $keyval (integer)
32
33       ·   $modifiers (Gtk2::Gdk::ModifierType)
34
35       Although "activate" and "activate_event" are "Gtk2::Object" methods, as
36       of Gtk 2.12 binding sets are only associated with widgets so on an
37       object as such the return is always false (no binding activated).
38
39       Further, although "activate" and binding sets are both expressed in
40       terms of keyvals, internally the lookup is by keycode.  If a keyval
41       cannot be generated by at least one keycode/modifier combination (see
42       Gtk2::Gdk::Keymap) then it cannot be activated.  In particular this
43       means keyvals like "Pointer_Button1" which are not actual keys cannot
44       be dispatched by "activate" (returning false for no binding activated).
45
46   boolean = $object->bindings_activate_event ($event)
47       ·   $event (Gtk2::Gdk::Event)
48
49       Since: gtk+ 2.4
50
51   $object->destroy
52       This is an explicit destroy --- NOT the auto destroy; Gtk2::Object
53       inherits that from Glib::Object!
54

PROPERTIES

56       'user-data' (gpointer : default 0 : readable / writable / private /
57       static-nick / static-blurb)
58           Anonymous User Data Pointer
59

SIGNALS

61       destroy (Gtk2::Object)
62

ENUMS AND FLAGS

64   flags Gtk2::Gdk::ModifierType
65       ·   'shift-mask' / 'GDK_SHIFT_MASK'
66
67       ·   'lock-mask' / 'GDK_LOCK_MASK'
68
69       ·   'control-mask' / 'GDK_CONTROL_MASK'
70
71       ·   'mod1-mask' / 'GDK_MOD1_MASK'
72
73       ·   'mod2-mask' / 'GDK_MOD2_MASK'
74
75       ·   'mod3-mask' / 'GDK_MOD3_MASK'
76
77       ·   'mod4-mask' / 'GDK_MOD4_MASK'
78
79       ·   'mod5-mask' / 'GDK_MOD5_MASK'
80
81       ·   'button1-mask' / 'GDK_BUTTON1_MASK'
82
83       ·   'button2-mask' / 'GDK_BUTTON2_MASK'
84
85       ·   'button3-mask' / 'GDK_BUTTON3_MASK'
86
87       ·   'button4-mask' / 'GDK_BUTTON4_MASK'
88
89       ·   'button5-mask' / 'GDK_BUTTON5_MASK'
90
91       ·   'super-mask' / 'GDK_SUPER_MASK'
92
93       ·   'hyper-mask' / 'GDK_HYPER_MASK'
94
95       ·   'meta-mask' / 'GDK_META_MASK'
96
97       ·   'release-mask' / 'GDK_RELEASE_MASK'
98
99       ·   'modifier-mask' / 'GDK_MODIFIER_MASK'
100

SEE ALSO

102       Gtk2, Glib::Object, Glib::InitiallyUnowned
103
105       Copyright (C) 2003-2011 by the gtk2-perl team.
106
107       This software is licensed under the LGPL.  See Gtk2 for a full notice.
108
109
110
111perl v5.32.0                      2020-07-28                   Gtk2::Object(3)
Impressum