Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Gtk2::Gdk::Cursor(3)  User Contributed Perl Documentation Gtk2::Gdk::Cursor(3)

NAME
       Gtk2::Gdk::Cursor - wrapper for GdkCursor

DESCRIPTION
       For reference, cursors are a per-display	resource and can only be used
       with the	display	they were created on.

       As of Gtk 2.22 a	cursor doesn't keep a reference	to its
       "Gtk2::Gdk::Display" 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.)

HIERARCHY
	 Glib::Boxed
	 +----Gtk2::Gdk::Cursor

METHODS
   cursor = Gtk2::Gdk::Cursor->new ($cursor_type)
       o   $cursor_type	(Gtk2::Gdk::CursorType)

   cursor = Gtk2::Gdk::Cursor->new_for_display ($display, $cursor_type)
       o   $display (Gtk2::Gdk::Display)

       o   $cursor_type	(Gtk2::Gdk::CursorType)

       Since: gtk+ 2.2

   cursor = Gtk2::Gdk::Cursor->new_from_name ($display,	$name)
       o   $display (Gtk2::Gdk::Display)

       o   $name (string)

       Since: gtk+ 2.8

   cursor = Gtk2::Gdk::Cursor->new_from_pixbuf ($display, $pixbuf, $x, $y)
       o   $display (Gtk2::Gdk::Display)

       o   $pixbuf (Gtk2::Gdk::Pixbuf)

       o   $x (integer)

       o   $y (integer)

       Since: gtk+ 2.4

   cursor = Gtk2::Gdk::Cursor->new_from_pixmap ($source, $mask,	$fg, $bg, $x,
       $y)
       o   $source (Gtk2::Gdk::Pixmap)

       o   $mask (Gtk2::Gdk::Pixmap)

       o   $fg (Gtk2::Gdk::Color)

       o   $bg (Gtk2::Gdk::Color)

       o   $x (integer)

       o   $y (integer)

   cursortype =	$cursor->get_cursor_type
       Since: gtk+ 2.22

   display = $cursor->get_display
       Since: gtk+ 2.2

   pixbuf = $cursor->get_image
       Since: gtk+ 2.8

   cursortype =	$cursor->type
ENUMS AND FLAGS
   enum	Gtk2::Gdk::CursorType
       o   'x-cursor' /	'GDK_X_CURSOR'

       o   'arrow' / 'GDK_ARROW'

       o   'based-arrow-down' /	'GDK_BASED_ARROW_DOWN'

       o   'based-arrow-up' / 'GDK_BASED_ARROW_UP'

       o   'boat' / 'GDK_BOAT'

       o   'bogosity' /	'GDK_BOGOSITY'

       o   'bottom-left-corner'	/ 'GDK_BOTTOM_LEFT_CORNER'

       o   'bottom-right-corner' / 'GDK_BOTTOM_RIGHT_CORNER'

       o   'bottom-side' / 'GDK_BOTTOM_SIDE'

       o   'bottom-tee'	/ 'GDK_BOTTOM_TEE'

       o   'box-spiral'	/ 'GDK_BOX_SPIRAL'

       o   'center-ptr'	/ 'GDK_CENTER_PTR'

       o   'circle' / 'GDK_CIRCLE'

       o   'clock' / 'GDK_CLOCK'

       o   'coffee-mug'	/ 'GDK_COFFEE_MUG'

       o   'cross' / 'GDK_CROSS'

       o   'cross-reverse' / 'GDK_CROSS_REVERSE'

       o   'crosshair' / 'GDK_CROSSHAIR'

       o   'diamond-cross' / 'GDK_DIAMOND_CROSS'

       o   'dot' / 'GDK_DOT'

       o   'dotbox' / 'GDK_DOTBOX'

       o   'double-arrow' / 'GDK_DOUBLE_ARROW'

       o   'draft-large' / 'GDK_DRAFT_LARGE'

       o   'draft-small' / 'GDK_DRAFT_SMALL'

       o   'draped-box'	/ 'GDK_DRAPED_BOX'

       o   'exchange' /	'GDK_EXCHANGE'

       o   'fleur' / 'GDK_FLEUR'

       o   'gobbler' / 'GDK_GOBBLER'

       o   'gumby' / 'GDK_GUMBY'

       o   'hand1' / 'GDK_HAND1'

       o   'hand2' / 'GDK_HAND2'

       o   'heart' / 'GDK_HEART'

       o   'icon' / 'GDK_ICON'

       o   'iron-cross'	/ 'GDK_IRON_CROSS'

       o   'left-ptr' /	'GDK_LEFT_PTR'

       o   'left-side' / 'GDK_LEFT_SIDE'

       o   'left-tee' /	'GDK_LEFT_TEE'

       o   'leftbutton'	/ 'GDK_LEFTBUTTON'

       o   'll-angle' /	'GDK_LL_ANGLE'

       o   'lr-angle' /	'GDK_LR_ANGLE'

       o   'man' / 'GDK_MAN'

       o   'middlebutton' / 'GDK_MIDDLEBUTTON'

       o   'mouse' / 'GDK_MOUSE'

       o   'pencil' / 'GDK_PENCIL'

       o   'pirate' / 'GDK_PIRATE'

       o   'plus' / 'GDK_PLUS'

       o   'question-arrow' / 'GDK_QUESTION_ARROW'

       o   'right-ptr' / 'GDK_RIGHT_PTR'

       o   'right-side'	/ 'GDK_RIGHT_SIDE'

       o   'right-tee' / 'GDK_RIGHT_TEE'

       o   'rightbutton' / 'GDK_RIGHTBUTTON'

       o   'rtl-logo' /	'GDK_RTL_LOGO'

       o   'sailboat' /	'GDK_SAILBOAT'

       o   'sb-down-arrow' / 'GDK_SB_DOWN_ARROW'

       o   'sb-h-double-arrow' / 'GDK_SB_H_DOUBLE_ARROW'

       o   'sb-left-arrow' / 'GDK_SB_LEFT_ARROW'

       o   'sb-right-arrow' / 'GDK_SB_RIGHT_ARROW'

       o   'sb-up-arrow' / 'GDK_SB_UP_ARROW'

       o   'sb-v-double-arrow' / 'GDK_SB_V_DOUBLE_ARROW'

       o   'shuttle' / 'GDK_SHUTTLE'

       o   'sizing' / 'GDK_SIZING'

       o   'spider' / 'GDK_SPIDER'

       o   'spraycan' /	'GDK_SPRAYCAN'

       o   'star' / 'GDK_STAR'

       o   'target' / 'GDK_TARGET'

       o   'tcross' / 'GDK_TCROSS'

       o   'top-left-arrow' / 'GDK_TOP_LEFT_ARROW'

       o   'top-left-corner' / 'GDK_TOP_LEFT_CORNER'

       o   'top-right-corner' /	'GDK_TOP_RIGHT_CORNER'

       o   'top-side' /	'GDK_TOP_SIDE'

       o   'top-tee' / 'GDK_TOP_TEE'

       o   'trek' / 'GDK_TREK'

       o   'ul-angle' /	'GDK_UL_ANGLE'

       o   'umbrella' /	'GDK_UMBRELLA'

       o   'ur-angle' /	'GDK_UR_ANGLE'

       o   'watch' / 'GDK_WATCH'

       o   'xterm' / 'GDK_XTERM'

       o   'last-cursor' / 'GDK_LAST_CURSOR'

       o   'blank-cursor' / 'GDK_BLANK_CURSOR'

       o   'cursor-is-pixmap' /	'GDK_CURSOR_IS_PIXMAP'

SEE ALSO
       Gtk2, Glib::Boxed

COPYRIGHT
       Copyright (C) 2003-2011 by the gtk2-perl	team.

       This software is	licensed under the LGPL.  See Gtk2 for a full notice.

perl v5.24.1			  2017-07-08		  Gtk2::Gdk::Cursor(3)

NAME | DESCRIPTION | HIERARCHY | METHODS | ENUMS AND FLAGS | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Gtk2::Gdk::Cursor&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help