Table of Contents

Method CreateCursorHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

CreateCursorHandler()

Creates cursor handler.

ICursorHandler CreateCursorHandler()

Returns

ICursorHandler

CreateCursorHandler(CursorType)

Creates cursor handler with the specified cursor type.

ICursorHandler CreateCursorHandler(CursorType cursor)

Parameters

cursor CursorType

Returns

ICursorHandler

CreateCursorHandler(string, BitmapType, int, int)

Creates cursor handler by passing a string resource name or filename.

ICursorHandler CreateCursorHandler(string cursorName, BitmapType type, int hotSpotX, int hotSpotY)

Parameters

cursorName string

The name of the resource or the image file to load.

type BitmapType

Icon type to load.

hotSpotX int

Hotspot x coordinate (relative to the top left of the image).

hotSpotY int

Hotspot y coordinate (relative to the top left of the image).

Returns

ICursorHandler

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.

ICursorHandler CreateCursorHandler(Image image, int hotSpotX, int hotSpotY)

Parameters

image Image

Image for the cursor.

hotSpotX int

Hotspot x coordinate (relative to the top left of the image).

hotSpotY int

Hotspot y coordinate (relative to the top left of the image).

Returns

ICursorHandler

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.

ICursorHandler CreateCursorHandler(GenericImage image, int hotSpotX, int hotSpotY)

Parameters

image GenericImage

Image for the cursor.

hotSpotX int

Hotspot x coordinate (relative to the top left of the image).

hotSpotY int

Hotspot y coordinate (relative to the top left of the image).

Returns

ICursorHandler