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           Anonymous User Data Pointer
58

SIGNALS

60       destroy (Gtk2::Object)
61

ENUMS AND FLAGS

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

SEE ALSO

101       Gtk2, Glib::Object, Glib::InitiallyUnowned
102
104       Copyright (C) 2003-2011 by the gtk2-perl team.
105
106       This software is licensed under the LGPL.  See Gtk2 for a full notice.
107
108
109
110perl v5.28.1                      2019-02-02                   Gtk2::Object(3)
Impressum