C# Class LitDev.LDCursors

Exibir arquivo Open project: litdev1/LitDev

Public Methods

Method Description
Arrow ( ) : void

Arrow Cursor (default).

ArrowCD ( ) : void

Arrow with CD Cursor.

CreateCursor ( Primitive imageName, Primitive xHotSpot, Primitive yHotSpot ) : Primitive

Create a cursor that can be set using SetUserCursor or SetShapeCursor. An ImageList image can be resized with LDImage.Resize.

Cross ( ) : void

Cross Cursor.

Hand ( ) : void

Hand Cursor.

Help ( ) : void

Help Cursor.

IBeam ( ) : void

IBeam Cursor.

Invalid ( ) : void

Invalid Cursor.

None ( ) : void

No Cursor.

Pen ( ) : void

Pen Cursor.

Scroll ( ) : void

Scroll Cursor.

SetShapeCursor ( Primitive shapeName, Primitive cursor ) : void

Set the cursor for a shape or control when the mouse is over the shape.

SetUserCursor ( Primitive cursor ) : void

Sets a custom cursor as a pointer in the Graphics Window.

SizeAll ( ) : void

Size All Cursor (Resizing).

SizeNESW ( ) : void

NESW DoubleArrow Cursor (Resizing).

SizeNS ( ) : void

NS DoubleArrow (Resizing).

SizeNWSE ( ) : void

NWSE DoubleArrow Cursor (Resizing).

SizeWE ( ) : void

WE DoubleArrow (Resizing).

Starting ( ) : void

Starting Cursor.

UpArrow ( ) : void

Up Arrow Cursor (Insertion).

Wait ( ) : void

Wait Cursor.

Private Methods

Method Description
createCursor ( Bitmap bmp, int xHotSpot, int yHotSpot ) : System.Windows.Input.Cursor
getCursor ( string cursor ) : System.Windows.Input.Cursor
setCursor ( System.Windows.Input.Cursor cursor ) : void
setCursor ( string shapeName, System.Windows.Input.Cursor cursor ) : void

Method Details

Arrow() public static method

Arrow Cursor (default).
public static Arrow ( ) : void
return void

ArrowCD() public static method

Arrow with CD Cursor.
public static ArrowCD ( ) : void
return void

CreateCursor() public static method

Create a cursor that can be set using SetUserCursor or SetShapeCursor. An ImageList image can be resized with LDImage.Resize.
public static CreateCursor ( Primitive imageName, Primitive xHotSpot, Primitive yHotSpot ) : Primitive
imageName Primitive The file path or ImageList image.
xHotSpot Primitive The x pixel to use as the hot spot.
yHotSpot Primitive The y pixel to use as the hot spot.
return Primitive

Cross() public static method

Cross Cursor.
public static Cross ( ) : void
return void

Hand() public static method

Hand Cursor.
public static Hand ( ) : void
return void

Help() public static method

Help Cursor.
public static Help ( ) : void
return void

IBeam() public static method

IBeam Cursor.
public static IBeam ( ) : void
return void

Invalid() public static method

Invalid Cursor.
public static Invalid ( ) : void
return void

None() public static method

No Cursor.
public static None ( ) : void
return void

Pen() public static method

Pen Cursor.
public static Pen ( ) : void
return void

Scroll() public static method

Scroll Cursor.
public static Scroll ( ) : void
return void

SetShapeCursor() public static method

Set the cursor for a shape or control when the mouse is over the shape.
public static SetShapeCursor ( Primitive shapeName, Primitive cursor ) : void
shapeName Primitive The shape or control name.
cursor Primitive A cursor created with CreateCursor or /// a standard cursor in this object (e.g. "ArrowCD") or /// the full path to a *.cur or *.ani file to use as a cursor.
return void

SetUserCursor() public static method

Sets a custom cursor as a pointer in the Graphics Window.
public static SetUserCursor ( Primitive cursor ) : void
cursor Primitive A cursor created with CreateCursor or /// a standard cursor in this object (e.g. "ArrowCD") or /// the full path to a *.cur or *.ani file to use as a cursor.
return void

SizeAll() public static method

Size All Cursor (Resizing).
public static SizeAll ( ) : void
return void

SizeNESW() public static method

NESW DoubleArrow Cursor (Resizing).
public static SizeNESW ( ) : void
return void

SizeNS() public static method

NS DoubleArrow (Resizing).
public static SizeNS ( ) : void
return void

SizeNWSE() public static method

NWSE DoubleArrow Cursor (Resizing).
public static SizeNWSE ( ) : void
return void

SizeWE() public static method

WE DoubleArrow (Resizing).
public static SizeWE ( ) : void
return void

Starting() public static method

Starting Cursor.
public static Starting ( ) : void
return void

UpArrow() public static method

Up Arrow Cursor (Insertion).
public static UpArrow ( ) : void
return void

Wait() public static method

Wait Cursor.
public static Wait ( ) : void
return void