gtk.gdk.Cursor — standard and pixmap cursors
class gtk.gdk.Cursor(gobject.GBoxed): |
A gtk.gdk.Cursor represents a bitmap image used for the mouse pointer. Each gtk.gdk.Window can have its own cursor. By default a gtk.gdk.Window uses its parent's cursor. A standard set of cursors is provided in PyGTK:
gtk.gdk.X_CURSOR | ![]() |
gtk.gdk.ARROW | ![]() |
gtk.gdk.BASED_ARROW_DOWN | ![]() |
gtk.gdk.BASED_ARROW_UP | ![]() |
gtk.gdk.BOAT | ![]() |
gtk.gdk.BOGOSITY | ![]() |
gtk.gdk.BOTTOM_LEFT_CORNER | ![]() |
gtk.gdk.BOTTOM_RIGHT_CORNER | ![]() |
gtk.gdk.BOTTOM_SIDE | ![]() |
gtk.gdk.BOTTOM_TEE | ![]() |
gtk.gdk.BOX_SPIRAL | ![]() |
gtk.gdk.CENTER_PTR | ![]() |
gtk.gdk.CIRCLE | ![]() |
gtk.gdk.CLOCK | ![]() |
gtk.gdk.COFFEE_MUG | ![]() |
gtk.gdk.CROSS | ![]() |
gtk.gdk.CROSS_REVERSE | ![]() |
gtk.gdk.CROSSHAIR | ![]() |
gtk.gdk.DIAMOND_CROSS | ![]() |
gtk.gdk.DOT | ![]() |
gtk.gdk.DOTBOX | ![]() |
gtk.gdk.DOUBLE_ARROW | ![]() |
gtk.gdk.DRAFT_LARGE | ![]() |
gtk.gdk.DRAFT_SMALL | ![]() |
gtk.gdk.DRAPED_BOX | ![]() |
gtk.gdk.EXCHANGE | ![]() |
gtk.gdk.FLEUR | ![]() |
gtk.gdk.GOBBLER | ![]() |
gtk.gdk.GUMBY | ![]() |
gtk.gdk.HAND1 | ![]() |
gtk.gdk.HAND2 | ![]() |
gtk.gdk.HEART | ![]() |
gtk.gdk.ICON | ![]() |
gtk.gdk.IRON_CROSS | ![]() |
gtk.gdk.LEFT_PTR | ![]() |
gtk.gdk.LEFT_SIDE | ![]() |
gtk.gdk.LEFT_TEE | ![]() |
gtk.gdk.LEFTBUTTON | ![]() |
gtk.gdk.LL_ANGLE | ![]() |
gtk.gdk.LR_ANGLE | ![]() |
gtk.gdk.MAN | ![]() |
gtk.gdk.MIDDLEBUTTON | ![]() |
gtk.gdk.MOUSE | ![]() |
gtk.gdk.PENCIL | ![]() |
gtk.gdk.PIRATE | ![]() |
gtk.gdk.PLUS | ![]() |
gtk.gdk.QUESTION_ARROW | ![]() |
gtk.gdk.RIGHT_PTR | ![]() |
gtk.gdk.RIGHT_SIDE | ![]() |
gtk.gdk.RIGHT_TEE | ![]() |
gtk.gdk.RIGHTBUTTON | ![]() |
gtk.gdk.RTL_LOGO | ![]() |
gtk.gdk.SAILBOAT | ![]() |
gtk.gdk.SB_DOWN_ARROW | ![]() |
gtk.gdk.SB_H_DOUBLE_ARROW | ![]() |
gtk.gdk.SB_LEFT_ARROW | ![]() |
gtk.gdk.SB_RIGHT_ARROW | ![]() |
gtk.gdk.SB_UP_ARROW | ![]() |
gtk.gdk.SB_V_DOUBLE_ARROW | ![]() |
gtk.gdk.SHUTTLE | ![]() |
gtk.gdk.SIZING | ![]() |
gtk.gdk.SPIDER | ![]() |
gtk.gdk.SPRAYCAN | ![]() |
gtk.gdk.STAR | ![]() |
gtk.gdk.TARGET | ![]() |
gtk.gdk.TCROSS | ![]() |
gtk.gdk.TOP_LEFT_ARROW | ![]() |
gtk.gdk.TOP_LEFT_CORNER | ![]() |
gtk.gdk.TOP_RIGHT_CORNER | ![]() |
gtk.gdk.TOP_SIDE | ![]() |
gtk.gdk.TOP_TEE | ![]() |
gtk.gdk.TREK | ![]() |
gtk.gdk.UL_ANGLE | ![]() |
gtk.gdk.UMBRELLA | ![]() |
gtk.gdk.UR_ANGLE | ![]() |
gtk.gdk.WATCH | ![]() |
gtk.gdk.XTERM | ![]() |
|
cursor_type : | the standard cursor to create |
Returns : | a new gtk.gdk.Cursor |
Creates the new gtk.gdk.Cursor from a builtin cursor specified by cursor_type. To make the cursor invisible, use gtk.gdk.Cursor() to create a cursor with no pixels in it.
|
display : | the gtk.gdk.Display to create the cursor for |
cursor_type : | the standard cursor to create |
Returns : | a new gtk.gdk.Cursor |
This constructor is available in PyGTK 2.4 and above.
Creates the new gtk.gdk.Cursor for the gtk.gdk.Display specified by display from a builtin cursor specified by cursor_type. To make the cursor invisible, use gtk.gdk.Cursor() to create a cursor with no pixels in it.
|
display : | the gtk.gdk.Display to create the cursor for |
pixbuf : | the gtk.gdk.Pixbuf holding the cursor image |
x : | the "hot spot" x offset |
y : | the "hot spot" y offset |
Returns : | a new gtk.gdk.Cursor |
This constructor is available in PyGTK 2.4 and above.
Creates a new gtk.gdk.Cursor for the gtk.gdk.Display specified by display using the gtk.gdk.Pixbuf specified by source as the icon image. The "hotspot" of the cursor will be located as the position specified by x and y.
|
source : | the gtk.gdk.Pixmap holding the cursor image |
mask : | the gtk.gdk.Pixmap to use as a mask |
fg : | the unallocated foreground gtk.gdk.Color |
bg : | the unallocated background gtk.gdk.Color |
x : | the "hot spot" x offset |
y : | the "hot spot" y offset |
Returns : | a new gtk.gdk.Cursor |
Creates a new gtk.gdk.Cursor using:
|
Returns :, : | the associated gtk.gdk.Display |
This method is available in PyGTK 2.2 and above.
The get_display() method returns the display on which the cursor is defined.