.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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::Gdk::Device 3" .TH Gtk2::Gdk::Device 3 2024-09-01 "perl v5.40.0" "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::Gdk::Device \- wrapper for GdkDevice .SH HIERARCHY .IX Header "HIERARCHY" .Vb 2 \& Glib::Object \& +\-\-\-\-Gtk2::Gdk::Device .Ve .SH METHODS .IX Header "METHODS" .ie n .SS "list = $device\->\fBaxes\fP" .el .SS "list = \f(CW$device\fP\->\fBaxes\fP" .IX Subsection "list = $device->axes" Returns a list of hash references that resemble the \fIGdkDeviceAxis\fR structure, i.e. that have three keys: "use", "min", and "max". .ie n .SS "double = $device\->\fBget_axis\fP ($use, ...)" .el .SS "double = \f(CW$device\fP\->\fBget_axis\fP ($use, ...)" .IX Subsection "double = $device->get_axis ($use, ...)" .IP \(bu 4 \&\f(CW$use\fR (Gtk2::Gdk::AxisUse) .IP \(bu 4 \&... (list) of axis values such as the one returned by get_state .ie n .SS "axisuse = $device\->\fBget_axis_use\fP ($index)" .el .SS "axisuse = \f(CW$device\fP\->\fBget_axis_use\fP ($index)" .IX Subsection "axisuse = $device->get_axis_use ($index)" .IP \(bu 4 \&\f(CW$index\fR (integer) .PP Since: gtk+ 2.22 .ie n .SS "$device\->\fBset_axis_use\fP ($index_, $use)" .el .SS "\f(CW$device\fP\->\fBset_axis_use\fP ($index_, \f(CW$use\fP)" .IX Subsection "$device->set_axis_use ($index_, $use)" .IP \(bu 4 \&\f(CW$index_\fR (integer) .IP \(bu 4 \&\f(CW$use\fR (Gtk2::Gdk::AxisUse) .SS "device = Gtk2::Gdk::Device\->\fBget_core_pointer\fP" .IX Subsection "device = Gtk2::Gdk::Device->get_core_pointer" .ie n .SS "boolean = $device\->\fBhas_cursor\fP" .el .SS "boolean = \f(CW$device\fP\->\fBhas_cursor\fP" .IX Subsection "boolean = $device->has_cursor" .ie n .SS "list = $device\->\fBget_history\fP ($window, $start, $stop)" .el .SS "list = \f(CW$device\fP\->\fBget_history\fP ($window, \f(CW$start\fP, \f(CW$stop\fP)" .IX Subsection "list = $device->get_history ($window, $start, $stop)" .IP \(bu 4 \&\f(CW$window\fR (Gtk2::Gdk::Window) .IP \(bu 4 \&\f(CW$start\fR (unsigned) .IP \(bu 4 \&\f(CW$stop\fR (unsigned) .PP Returns a list of hash references that resemble the \fIGdkTimeCoord\fR structure, i.e. that have two keys: "time" and "axes". .ie n .SS "(keyval, modifiers) = $device\->\fBget_key\fP ($index)" .el .SS "(keyval, modifiers) = \f(CW$device\fP\->\fBget_key\fP ($index)" .IX Subsection "(keyval, modifiers) = $device->get_key ($index)" .IP \(bu 4 \&\f(CW$index\fR (integer) .PP Since: gtk+ 2.22 .ie n .SS "$device\->\fBset_key\fP ($index_, $keyval, $modifiers)" .el .SS "\f(CW$device\fP\->\fBset_key\fP ($index_, \f(CW$keyval\fP, \f(CW$modifiers\fP)" .IX Subsection "$device->set_key ($index_, $keyval, $modifiers)" .IP \(bu 4 \&\f(CW$index_\fR (integer) .IP \(bu 4 \&\f(CW$keyval\fR (integer) .IP \(bu 4 \&\f(CW$modifiers\fR (Gtk2::Gdk::ModifierType) .ie n .SS "list = $device\->\fBkeys\fP" .el .SS "list = \f(CW$device\fP\->\fBkeys\fP" .IX Subsection "list = $device->keys" Returns a list of hash references that resemble the \fIGdkDeviceKey\fR structure, i.e. that have two keys: "keyval" and "modifiers". .ie n .SS "inputmode = $device\->\fBmode\fP" .el .SS "inputmode = \f(CW$device\fP\->\fBmode\fP" .IX Subsection "inputmode = $device->mode" .ie n .SS "inputmode = $device\->\fBget_mode\fP" .el .SS "inputmode = \f(CW$device\fP\->\fBget_mode\fP" .IX Subsection "inputmode = $device->get_mode" Since: gtk+ 2.22 .ie n .SS "boolean = $device\->\fBset_mode\fP ($mode)" .el .SS "boolean = \f(CW$device\fP\->\fBset_mode\fP ($mode)" .IX Subsection "boolean = $device->set_mode ($mode)" .IP \(bu 4 \&\f(CW$mode\fR (Gtk2::Gdk::InputMode) .ie n .SS "integer = $device\->\fBget_n_axes\fP" .el .SS "integer = \f(CW$device\fP\->\fBget_n_axes\fP" .IX Subsection "integer = $device->get_n_axes" Since: gtk+ 2.22 .ie n .SS "string = $device\->\fBname\fP" .el .SS "string = \f(CW$device\fP\->\fBname\fP" .IX Subsection "string = $device->name" .ie n .SS "string = $device\->\fBget_name\fP" .el .SS "string = \f(CW$device\fP\->\fBget_name\fP" .IX Subsection "string = $device->get_name" Since: gtk+ 2.22 .ie n .SS "inputsource = $device\->\fBsource\fP" .el .SS "inputsource = \f(CW$device\fP\->\fBsource\fP" .IX Subsection "inputsource = $device->source" .ie n .SS "inputsource = $device\->\fBget_source\fP" .el .SS "inputsource = \f(CW$device\fP\->\fBget_source\fP" .IX Subsection "inputsource = $device->get_source" Since: gtk+ 2.22 .ie n .SS "$device\->\fBset_source\fP ($source)" .el .SS "\f(CW$device\fP\->\fBset_source\fP ($source)" .IX Subsection "$device->set_source ($source)" .IP \(bu 4 \&\f(CW$source\fR (Gtk2::Gdk::InputSource) .ie n .SS "list = $device\->\fBget_state\fP ($window)" .el .SS "list = \f(CW$device\fP\->\fBget_state\fP ($window)" .IX Subsection "list = $device->get_state ($window)" .IP \(bu 4 \&\f(CW$window\fR (Gtk2::Gdk::Window) .PP Returns the modifier mask and a list of values of the axes. .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Gtk2::Gdk::AxisUse" .IX Subsection "enum Gtk2::Gdk::AxisUse" .IP \(bu 4 \&'ignore' / 'GDK_AXIS_IGNORE' .IP \(bu 4 \&'x' / 'GDK_AXIS_X' .IP \(bu 4 \&'y' / 'GDK_AXIS_Y' .IP \(bu 4 \&'pressure' / 'GDK_AXIS_PRESSURE' .IP \(bu 4 \&'xtilt' / 'GDK_AXIS_XTILT' .IP \(bu 4 \&'ytilt' / 'GDK_AXIS_YTILT' .IP \(bu 4 \&'wheel' / 'GDK_AXIS_WHEEL' .IP \(bu 4 \&'last' / 'GDK_AXIS_LAST' .SS "enum Gtk2::Gdk::InputMode" .IX Subsection "enum Gtk2::Gdk::InputMode" .IP \(bu 4 \&'disabled' / 'GDK_MODE_DISABLED' .IP \(bu 4 \&'screen' / 'GDK_MODE_SCREEN' .IP \(bu 4 \&'window' / 'GDK_MODE_WINDOW' .SS "enum Gtk2::Gdk::InputSource" .IX Subsection "enum Gtk2::Gdk::InputSource" .IP \(bu 4 \&'mouse' / 'GDK_SOURCE_MOUSE' .IP \(bu 4 \&'pen' / 'GDK_SOURCE_PEN' .IP \(bu 4 \&'eraser' / 'GDK_SOURCE_ERASER' .IP \(bu 4 \&'cursor' / 'GDK_SOURCE_CURSOR' .SS "flags Gtk2::Gdk::ModifierType" .IX Subsection "flags Gtk2::Gdk::ModifierType" .IP \(bu 4 \&'shift\-mask' / 'GDK_SHIFT_MASK' .IP \(bu 4 \&'lock\-mask' / 'GDK_LOCK_MASK' .IP \(bu 4 \&'control\-mask' / 'GDK_CONTROL_MASK' .IP \(bu 4 \&'mod1\-mask' / 'GDK_MOD1_MASK' .IP \(bu 4 \&'mod2\-mask' / 'GDK_MOD2_MASK' .IP \(bu 4 \&'mod3\-mask' / 'GDK_MOD3_MASK' .IP \(bu 4 \&'mod4\-mask' / 'GDK_MOD4_MASK' .IP \(bu 4 \&'mod5\-mask' / 'GDK_MOD5_MASK' .IP \(bu 4 \&'button1\-mask' / 'GDK_BUTTON1_MASK' .IP \(bu 4 \&'button2\-mask' / 'GDK_BUTTON2_MASK' .IP \(bu 4 \&'button3\-mask' / 'GDK_BUTTON3_MASK' .IP \(bu 4 \&'button4\-mask' / 'GDK_BUTTON4_MASK' .IP \(bu 4 \&'button5\-mask' / 'GDK_BUTTON5_MASK' .IP \(bu 4 \&'super\-mask' / 'GDK_SUPER_MASK' .IP \(bu 4 \&'hyper\-mask' / 'GDK_HYPER_MASK' .IP \(bu 4 \&'meta\-mask' / 'GDK_META_MASK' .IP \(bu 4 \&'release\-mask' / 'GDK_RELEASE_MASK' .IP \(bu 4 \&'modifier\-mask' / 'GDK_MODIFIER_MASK' .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Object .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2003\-2011 by the gtk2\-perl team. .PP This software is licensed under the LGPL. See Gtk2 for a full notice.