Method CreateCursorHandler
CreateCursorHandler()
Creates cursor handler.
public virtual ICursorHandler CreateCursorHandler()
Returns
CreateCursorHandler(CursorType)
Creates cursor handler with the specified cursor type.
public virtual ICursorHandler CreateCursorHandler(CursorType cursor)
Parameters
cursorCursorType
Returns
CreateCursorHandler(string, BitmapType, int, int)
Creates cursor handler by passing a string resource name or filename.
public virtual ICursorHandler CreateCursorHandler(string cursorName, BitmapType type, int hotSpotX = 0, int hotSpotY = 0)
Parameters
cursorNamestringThe name of the resource or the image file to load.
typeBitmapTypeIcon type to load.
hotSpotXintHotspot x coordinate (relative to the top left of the image).
hotSpotYintHotspot y coordinate (relative to the top left of the image).
Returns
Remarks
The arguments hotSpotX and hotSpotY are only used when there's no hotspot info in the resource/image-file to load (e.g. when using icon under Windows or xpm under Linux).
CreateCursorHandler(Image, int, int)
Create cursor handler for the specified image.
public virtual ICursorHandler CreateCursorHandler(Image image, int hotSpotX = 0, int hotSpotY = 0)
Parameters
imageImageImage for the cursor.
hotSpotXintHotspot x coordinate (relative to the top left of the image).
hotSpotYintHotspot y coordinate (relative to the top left of the image).
Returns
Remarks
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. The mask (if any) will be used to specify the transparent area.
CreateCursorHandler(GenericImage, int, int)
Create cursor handler for the specified image.
public virtual ICursorHandler CreateCursorHandler(GenericImage image, int hotSpotX = 0, int hotSpotY = 0)
Parameters
imageGenericImageImage for the cursor.
hotSpotXintHotspot x coordinate (relative to the top left of the image).
hotSpotYintHotspot y coordinate (relative to the top left of the image).