.\" 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::Gdk::Cursor 3pm" .TH Gtk2::Gdk::Cursor 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::Gdk::Cursor \- wrapper for GdkCursor .SH "DESCRIPTION" .IX Header "DESCRIPTION" For reference, cursors are a per-display resource and can only be used with the display they were created on. .PP As of Gtk 2.22 a cursor doesn't keep a reference to its \&\f(CW\*(C`Gtk2::Gdk::Display\*(C'\fR and if the display object is destroyed before the cursor then a later destroy of the cursor may get a segv. Perl\-Gtk2 doesn't try to do anything about this. Care may be needed if keeping a cursor separate from a widget or window. (Closing the display is fine, but not destroying it.) .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 2 \& Glib::Boxed \& +\-\-\-\-Gtk2::Gdk::Cursor .Ve .SH "METHODS" .IX Header "METHODS" .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew\fP ($cursor_type)" .IX Subsection "cursor = Gtk2::Gdk::Cursor->new ($cursor_type)" .IP "\(bu" 4 \&\f(CW$cursor_type\fR (Gtk2::Gdk::CursorType) .ie n .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_for_display\fP ($display, $cursor_type)" .el .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_for_display\fP ($display, \f(CW$cursor_type\fP)" .IX Subsection "cursor = Gtk2::Gdk::Cursor->new_for_display ($display, $cursor_type)" .IP "\(bu" 4 \&\f(CW$display\fR (Gtk2::Gdk::Display) .IP "\(bu" 4 \&\f(CW$cursor_type\fR (Gtk2::Gdk::CursorType) .PP Since: gtk+ 2.2 .ie n .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_from_name\fP ($display, $name)" .el .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_from_name\fP ($display, \f(CW$name\fP)" .IX Subsection "cursor = Gtk2::Gdk::Cursor->new_from_name ($display, $name)" .IP "\(bu" 4 \&\f(CW$display\fR (Gtk2::Gdk::Display) .IP "\(bu" 4 \&\f(CW$name\fR (string) .PP Since: gtk+ 2.8 .ie n .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_from_pixbuf\fP ($display, $pixbuf, $x, $y)" .el .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_from_pixbuf\fP ($display, \f(CW$pixbuf\fP, \f(CW$x\fP, \f(CW$y\fP)" .IX Subsection "cursor = Gtk2::Gdk::Cursor->new_from_pixbuf ($display, $pixbuf, $x, $y)" .IP "\(bu" 4 \&\f(CW$display\fR (Gtk2::Gdk::Display) .IP "\(bu" 4 \&\f(CW$pixbuf\fR (Gtk2::Gdk::Pixbuf) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .PP Since: gtk+ 2.4 .ie n .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_from_pixmap\fP ($source, $mask, $fg, $bg, $x, $y)" .el .SS "cursor = Gtk2::Gdk::Cursor\->\fBnew_from_pixmap\fP ($source, \f(CW$mask\fP, \f(CW$fg\fP, \f(CW$bg\fP, \f(CW$x\fP, \f(CW$y\fP)" .IX Subsection "cursor = Gtk2::Gdk::Cursor->new_from_pixmap ($source, $mask, $fg, $bg, $x, $y)" .IP "\(bu" 4 \&\f(CW$source\fR (Gtk2::Gdk::Pixmap) .IP "\(bu" 4 \&\f(CW$mask\fR (Gtk2::Gdk::Pixmap) .IP "\(bu" 4 \&\f(CW$fg\fR (Gtk2::Gdk::Color) .IP "\(bu" 4 \&\f(CW$bg\fR (Gtk2::Gdk::Color) .IP "\(bu" 4 \&\f(CW$x\fR (integer) .IP "\(bu" 4 \&\f(CW$y\fR (integer) .ie n .SS "cursortype = $cursor\->\fBget_cursor_type\fP" .el .SS "cursortype = \f(CW$cursor\fP\->\fBget_cursor_type\fP" .IX Subsection "cursortype = $cursor->get_cursor_type" Since: gtk+ 2.22 .ie n .SS "display = $cursor\->\fBget_display\fP" .el .SS "display = \f(CW$cursor\fP\->\fBget_display\fP" .IX Subsection "display = $cursor->get_display" Since: gtk+ 2.2 .ie n .SS "pixbuf = $cursor\->\fBget_image\fP" .el .SS "pixbuf = \f(CW$cursor\fP\->\fBget_image\fP" .IX Subsection "pixbuf = $cursor->get_image" Since: gtk+ 2.8 .ie n .SS "cursortype = $cursor\->\fBtype\fP" .el .SS "cursortype = \f(CW$cursor\fP\->\fBtype\fP" .IX Subsection "cursortype = $cursor->type" .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Gtk2::Gdk::CursorType" .IX Subsection "enum Gtk2::Gdk::CursorType" .IP "\(bu" 4 \&'x\-cursor' / '\s-1GDK_X_CURSOR\s0' .IP "\(bu" 4 \&'arrow' / '\s-1GDK_ARROW\s0' .IP "\(bu" 4 \&'based\-arrow\-down' / '\s-1GDK_BASED_ARROW_DOWN\s0' .IP "\(bu" 4 \&'based\-arrow\-up' / '\s-1GDK_BASED_ARROW_UP\s0' .IP "\(bu" 4 \&'boat' / '\s-1GDK_BOAT\s0' .IP "\(bu" 4 \&'bogosity' / '\s-1GDK_BOGOSITY\s0' .IP "\(bu" 4 \&'bottom\-left\-corner' / '\s-1GDK_BOTTOM_LEFT_CORNER\s0' .IP "\(bu" 4 \&'bottom\-right\-corner' / '\s-1GDK_BOTTOM_RIGHT_CORNER\s0' .IP "\(bu" 4 \&'bottom\-side' / '\s-1GDK_BOTTOM_SIDE\s0' .IP "\(bu" 4 \&'bottom\-tee' / '\s-1GDK_BOTTOM_TEE\s0' .IP "\(bu" 4 \&'box\-spiral' / '\s-1GDK_BOX_SPIRAL\s0' .IP "\(bu" 4 \&'center\-ptr' / '\s-1GDK_CENTER_PTR\s0' .IP "\(bu" 4 \&'circle' / '\s-1GDK_CIRCLE\s0' .IP "\(bu" 4 \&'clock' / '\s-1GDK_CLOCK\s0' .IP "\(bu" 4 \&'coffee\-mug' / '\s-1GDK_COFFEE_MUG\s0' .IP "\(bu" 4 \&'cross' / '\s-1GDK_CROSS\s0' .IP "\(bu" 4 \&'cross\-reverse' / '\s-1GDK_CROSS_REVERSE\s0' .IP "\(bu" 4 \&'crosshair' / '\s-1GDK_CROSSHAIR\s0' .IP "\(bu" 4 \&'diamond\-cross' / '\s-1GDK_DIAMOND_CROSS\s0' .IP "\(bu" 4 \&'dot' / '\s-1GDK_DOT\s0' .IP "\(bu" 4 \&'dotbox' / '\s-1GDK_DOTBOX\s0' .IP "\(bu" 4 \&'double\-arrow' / '\s-1GDK_DOUBLE_ARROW\s0' .IP "\(bu" 4 \&'draft\-large' / '\s-1GDK_DRAFT_LARGE\s0' .IP "\(bu" 4 \&'draft\-small' / '\s-1GDK_DRAFT_SMALL\s0' .IP "\(bu" 4 \&'draped\-box' / '\s-1GDK_DRAPED_BOX\s0' .IP "\(bu" 4 \&'exchange' / '\s-1GDK_EXCHANGE\s0' .IP "\(bu" 4 \&'fleur' / '\s-1GDK_FLEUR\s0' .IP "\(bu" 4 \&'gobbler' / '\s-1GDK_GOBBLER\s0' .IP "\(bu" 4 \&'gumby' / '\s-1GDK_GUMBY\s0' .IP "\(bu" 4 \&'hand1' / '\s-1GDK_HAND1\s0' .IP "\(bu" 4 \&'hand2' / '\s-1GDK_HAND2\s0' .IP "\(bu" 4 \&'heart' / '\s-1GDK_HEART\s0' .IP "\(bu" 4 \&'icon' / '\s-1GDK_ICON\s0' .IP "\(bu" 4 \&'iron\-cross' / '\s-1GDK_IRON_CROSS\s0' .IP "\(bu" 4 \&'left\-ptr' / '\s-1GDK_LEFT_PTR\s0' .IP "\(bu" 4 \&'left\-side' / '\s-1GDK_LEFT_SIDE\s0' .IP "\(bu" 4 \&'left\-tee' / '\s-1GDK_LEFT_TEE\s0' .IP "\(bu" 4 \&'leftbutton' / '\s-1GDK_LEFTBUTTON\s0' .IP "\(bu" 4 \&'ll\-angle' / '\s-1GDK_LL_ANGLE\s0' .IP "\(bu" 4 \&'lr\-angle' / '\s-1GDK_LR_ANGLE\s0' .IP "\(bu" 4 \&'man' / '\s-1GDK_MAN\s0' .IP "\(bu" 4 \&'middlebutton' / '\s-1GDK_MIDDLEBUTTON\s0' .IP "\(bu" 4 \&'mouse' / '\s-1GDK_MOUSE\s0' .IP "\(bu" 4 \&'pencil' / '\s-1GDK_PENCIL\s0' .IP "\(bu" 4 \&'pirate' / '\s-1GDK_PIRATE\s0' .IP "\(bu" 4 \&'plus' / '\s-1GDK_PLUS\s0' .IP "\(bu" 4 \&'question\-arrow' / '\s-1GDK_QUESTION_ARROW\s0' .IP "\(bu" 4 \&'right\-ptr' / '\s-1GDK_RIGHT_PTR\s0' .IP "\(bu" 4 \&'right\-side' / '\s-1GDK_RIGHT_SIDE\s0' .IP "\(bu" 4 \&'right\-tee' / '\s-1GDK_RIGHT_TEE\s0' .IP "\(bu" 4 \&'rightbutton' / '\s-1GDK_RIGHTBUTTON\s0' .IP "\(bu" 4 \&'rtl\-logo' / '\s-1GDK_RTL_LOGO\s0' .IP "\(bu" 4 \&'sailboat' / '\s-1GDK_SAILBOAT\s0' .IP "\(bu" 4 \&'sb\-down\-arrow' / '\s-1GDK_SB_DOWN_ARROW\s0' .IP "\(bu" 4 \&'sb\-h\-double\-arrow' / '\s-1GDK_SB_H_DOUBLE_ARROW\s0' .IP "\(bu" 4 \&'sb\-left\-arrow' / '\s-1GDK_SB_LEFT_ARROW\s0' .IP "\(bu" 4 \&'sb\-right\-arrow' / '\s-1GDK_SB_RIGHT_ARROW\s0' .IP "\(bu" 4 \&'sb\-up\-arrow' / '\s-1GDK_SB_UP_ARROW\s0' .IP "\(bu" 4 \&'sb\-v\-double\-arrow' / '\s-1GDK_SB_V_DOUBLE_ARROW\s0' .IP "\(bu" 4 \&'shuttle' / '\s-1GDK_SHUTTLE\s0' .IP "\(bu" 4 \&'sizing' / '\s-1GDK_SIZING\s0' .IP "\(bu" 4 \&'spider' / '\s-1GDK_SPIDER\s0' .IP "\(bu" 4 \&'spraycan' / '\s-1GDK_SPRAYCAN\s0' .IP "\(bu" 4 \&'star' / '\s-1GDK_STAR\s0' .IP "\(bu" 4 \&'target' / '\s-1GDK_TARGET\s0' .IP "\(bu" 4 \&'tcross' / '\s-1GDK_TCROSS\s0' .IP "\(bu" 4 \&'top\-left\-arrow' / '\s-1GDK_TOP_LEFT_ARROW\s0' .IP "\(bu" 4 \&'top\-left\-corner' / '\s-1GDK_TOP_LEFT_CORNER\s0' .IP "\(bu" 4 \&'top\-right\-corner' / '\s-1GDK_TOP_RIGHT_CORNER\s0' .IP "\(bu" 4 \&'top\-side' / '\s-1GDK_TOP_SIDE\s0' .IP "\(bu" 4 \&'top\-tee' / '\s-1GDK_TOP_TEE\s0' .IP "\(bu" 4 \&'trek' / '\s-1GDK_TREK\s0' .IP "\(bu" 4 \&'ul\-angle' / '\s-1GDK_UL_ANGLE\s0' .IP "\(bu" 4 \&'umbrella' / '\s-1GDK_UMBRELLA\s0' .IP "\(bu" 4 \&'ur\-angle' / '\s-1GDK_UR_ANGLE\s0' .IP "\(bu" 4 \&'watch' / '\s-1GDK_WATCH\s0' .IP "\(bu" 4 \&'xterm' / '\s-1GDK_XTERM\s0' .IP "\(bu" 4 \&'last\-cursor' / '\s-1GDK_LAST_CURSOR\s0' .IP "\(bu" 4 \&'blank\-cursor' / '\s-1GDK_BLANK_CURSOR\s0' .IP "\(bu" 4 \&'cursor\-is\-pixmap' / '\s-1GDK_CURSOR_IS_PIXMAP\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2, Glib::Boxed .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.