

In wxMSW the foreground will be white and the background black. The mask (if any) will be used to specify the transparent area. If cursor are monochrome on the current platform, colors with the RGB elements all greater than 127 will be foreground, colors less than this background. ParametersĬursorId ( StockCursor) – A stock cursor identifier. HotSpotY ( int) – Hotspot y coordinate (relative to the top left of the image).Ĭonstructs a cursor using a cursor identifier. HotSpotX ( int) – Hotspot x coordinate (relative to the top left of the image). Under Motif, it defaults to BITMAP_TYPE_XBM. Under X11, it defaults to BITMAP_TYPE_XPM. See the wx.Cursor constructor for more info. Under GTK, it defaults to BITMAP_TYPE_XPM. Note that resource forks are deprecated on macOS so this is only available for legacy reasons and should not be used in new code. Under MacOS, it defaults to BITMAP_TYPE_MACCURSOR_RESOURCE when specifying a string resource name, first the color cursors ‘crsr’ and then the black/white cursors ‘ CURS’ in the resource chain are scanned through. ico icon file) and BITMAP_TYPE_ANI (to load a cursor from a. cur cursor file), BITMAP_TYPE_ICO (to load a cursor from a. Other permitted types under Windows are BITMAP_TYPE_CUR (to load a cursor from a. Under Windows, it defaults to BITMAP_TYPE_CUR_RESOURCE.

It defaults to CURSOR_DEFAULT_TYPE, which is a #define associated to different values on different platforms: ParametersĬursorName ( string) – The name of the resource or the image file to load. when using BITMAP_TYPE_ICO under wxMSW or BITMAP_TYPE_XPM under wxGTK). The arguments hotSpotX and hotSpotY are only used when there’s no hotspot info in the resource/image-file to load (e.g. _init_ (self, cursorName, type=BITMAP_TYPE_ANY, hotSpotX=0, hotSpotY=0)Ĭonstructs a cursor by passing a string resource name or filename. Pointer is, with a picture that might indicate the interpretation of a BLACK )Ĭursor () Cursor ( cursorName, type = BITMAP_TYPE_ANY, hotSpotX = 0, hotSpotY = 0 ) Cursor ( cursorId ) Cursor ( image ) Cursor ( cursor )Ī cursor is a small bitmap usually used for denoting where the mouse

IMAGE_OPTION_CUR_HOTSPOT_Y, 14 ) down_cursor = wx. IMAGE_OPTION_CUR_HOTSPOT_X, 6 ) down_image. Mask ( down_mask_bitmap )) down_image = down_bitmap. BitmapFromBits ( down_mask, 32, 32 ) down_bitmap. BitmapFromBits ( down_bits, 32, 32 ) down_mask_bitmap = wx.
