.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::Object 3pm" .TH Gtk2::Object 3pm "2019-09-16" "perl v5.28.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::Object \- wrapper for GtkObject .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 3 \& Glib::Object \& +\-\-\-\-Glib::InitiallyUnowned \& +\-\-\-\-Gtk2::Object .Ve .SH "METHODS" .IX Header "METHODS" .SS "object = Gtk2::Object\->\fBnew\fP ($object_class, ...)" .IX Subsection "object = Gtk2::Object->new ($object_class, ...)" .IP "\(bu" 4 \&\f(CW$object_class\fR (string) package name of object to create .IP "\(bu" 4 \&... (list) of property-name => value pairs .PP Create a new object of type \fI\f(CI$object_class\fI\fR, with some optional initial property values. You may see this used in some code as Gtk2::Widget\->new, e.g. .PP .Vb 3 \& $window = Gtk2::Widget\->new (\*(AqGtk2::Window\*(Aq, \& title => \*(Aqsomething cool\*(Aq, \& allow_grow => TRUE); .Ve .PP This is really just a convenience function that wraps Glib::Object\->new. .ie n .SS "boolean = $object\->\fBbindings_activate\fP ($keyval, $modifiers)" .el .SS "boolean = \f(CW$object\fP\->\fBbindings_activate\fP ($keyval, \f(CW$modifiers\fP)" .IX Subsection "boolean = $object->bindings_activate ($keyval, $modifiers)" .IP "\(bu" 4 \&\f(CW$keyval\fR (integer) .IP "\(bu" 4 \&\f(CW$modifiers\fR (Gtk2::Gdk::ModifierType) .PP Although \f(CW\*(C`activate\*(C'\fR and \f(CW\*(C`activate_event\*(C'\fR are \f(CW\*(C`Gtk2::Object\*(C'\fR methods, as of Gtk 2.12 binding sets are only associated with widgets so on an object as such the return is always false (no binding activated). .PP Further, although \f(CW\*(C`activate\*(C'\fR and binding sets are both expressed in terms of keyvals, internally the lookup is by keycode. If a keyval cannot be generated by at least one keycode/modifier combination (see Gtk2::Gdk::Keymap) then it cannot be activated. In particular this means keyvals like \f(CW\*(C`Pointer_Button1\*(C'\fR which are not actual keys cannot be dispatched by \f(CW\*(C`activate\*(C'\fR (returning false for no binding activated). .ie n .SS "boolean = $object\->\fBbindings_activate_event\fP ($event)" .el .SS "boolean = \f(CW$object\fP\->\fBbindings_activate_event\fP ($event)" .IX Subsection "boolean = $object->bindings_activate_event ($event)" .IP "\(bu" 4 \&\f(CW$event\fR (Gtk2::Gdk::Event) .PP Since: gtk+ 2.4 .ie n .SS "$object\->\fBdestroy\fP" .el .SS "\f(CW$object\fP\->\fBdestroy\fP" .IX Subsection "$object->destroy" This is an explicit destroy \-\-\- \s-1NOT\s0 the auto destroy; Gtk2::Object inherits that from Glib::Object! .SH "PROPERTIES" .IX Header "PROPERTIES" .IP "'user\-data' (gpointer : default 0 : readable / writable / private)" 4 .IX Item "'user-data' (gpointer : default 0 : readable / writable / private)" Anonymous User Data Pointer .SH "SIGNALS" .IX Header "SIGNALS" .IP "\fBdestroy\fR (Gtk2::Object)" 4 .IX Item "destroy (Gtk2::Object)" .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "flags Gtk2::Gdk::ModifierType" .IX Subsection "flags Gtk2::Gdk::ModifierType" .PD 0 .IP "\(bu" 4 .PD \&'shift\-mask' / '\s-1GDK_SHIFT_MASK\s0' .IP "\(bu" 4 \&'lock\-mask' / '\s-1GDK_LOCK_MASK\s0' .IP "\(bu" 4 \&'control\-mask' / '\s-1GDK_CONTROL_MASK\s0' .IP "\(bu" 4 \&'mod1\-mask' / '\s-1GDK_MOD1_MASK\s0' .IP "\(bu" 4 \&'mod2\-mask' / '\s-1GDK_MOD2_MASK\s0' .IP "\(bu" 4 \&'mod3\-mask' / '\s-1GDK_MOD3_MASK\s0' .IP "\(bu" 4 \&'mod4\-mask' / '\s-1GDK_MOD4_MASK\s0' .IP "\(bu" 4 \&'mod5\-mask' / '\s-1GDK_MOD5_MASK\s0' .IP "\(bu" 4 \&'button1\-mask' / '\s-1GDK_BUTTON1_MASK\s0' .IP "\(bu" 4 \&'button2\-mask' / '\s-1GDK_BUTTON2_MASK\s0' .IP "\(bu" 4 \&'button3\-mask' / '\s-1GDK_BUTTON3_MASK\s0' .IP "\(bu" 4 \&'button4\-mask' / '\s-1GDK_BUTTON4_MASK\s0' .IP "\(bu" 4 \&'button5\-mask' / '\s-1GDK_BUTTON5_MASK\s0' .IP "\(bu" 4 \&'super\-mask' / '\s-1GDK_SUPER_MASK\s0' .IP "\(bu" 4 \&'hyper\-mask' / '\s-1GDK_HYPER_MASK\s0' .IP "\(bu" 4 \&'meta\-mask' / '\s-1GDK_META_MASK\s0' .IP "\(bu" 4 \&'release\-mask' / '\s-1GDK_RELEASE_MASK\s0' .IP "\(bu" 4 \&'modifier\-mask' / '\s-1GDK_MODIFIER_MASK\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Object, Glib::InitiallyUnowned .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the \s-1LGPL.\s0 See Gtk2 for a full notice.