xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::cursor Class Referencefinal
Inheritance diagram for xtd::forms::native::cursor:
xtd::static_object

Definition

Contains cursor native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static intptr create ()
 Creates cursor.
 
static intptr create (const xtd::drawing::image &image, const drawing::point &hot_spot)
 Creates cursor with specified image and hot spot.
 
static intptr copy (intptr cursor)
 Copies the cursor handle.
 
static void current (intptr cursor)
 Sets a cursor object that represents the mouse cursor.
 
static void destroy (intptr cursor)
 Destroys cursor.
 
static void hide ()
 Hides cursor.
 
static drawing::point hot_spot (intptr cursor)
 Gets the cursor hot spot.
 
static drawing::point position ()
 Gets the cursor's position.
 
static void position (const drawing::point &position)
 Sets the cursor's position.
 
static drawing::size size (intptr cursor)
 Gets the size of the cursor object.
 
static void show ()
 Shows cursor.
 

Member Function Documentation

◆ create() [1/2]

static intptr xtd::forms::native::cursor::create ( )
staticprotected

Creates cursor.

Returns
The created cursor handle.
Warning
Internal use only

◆ create() [2/2]

static intptr xtd::forms::native::cursor::create ( const xtd::drawing::image image,
const drawing::point hot_spot 
)
staticprotected

Creates cursor with specified image and hot spot.

Parameters
imageA xtd::drawing::image image will be use by cursor.
hot_spotA xtd::drawing::point hot spot location.
Returns
The created cursor handle.
Warning
Internal use only

◆ copy()

static intptr xtd::forms::native::cursor::copy ( intptr  cursor)
staticprotected

Copies the cursor handle.

Parameters
cursorCursor handle.
Returns
An intptr that represents the cursor's handle.
Warning
Internal use only

◆ current()

static void xtd::forms::native::cursor::current ( intptr  cursor)
staticprotected

Sets a cursor object that represents the mouse cursor.

Parameters
cursorCursor handle.
Warning
Internal use only

◆ destroy()

static void xtd::forms::native::cursor::destroy ( intptr  cursor)
staticprotected

Destroys cursor.

Parameters
cursorCursor handle.
Warning
Internal use only

◆ hide()

static void xtd::forms::native::cursor::hide ( )
staticprotected

Hides cursor.

Parameters
cursorCursor handle.
Warning
Internal use only

◆ hot_spot()

static drawing::point xtd::forms::native::cursor::hot_spot ( intptr  cursor)
staticprotected

Gets the cursor hot spot.

Parameters
cursorCursor handle.
Returns
A point representing the cursor hot spot.
Warning
Internal use only

◆ position() [1/2]

static drawing::point xtd::forms::native::cursor::position ( )
staticprotected

Gets the cursor's position.

Parameters
cursorCursor handle.
Returns
A point that represents the cursor's position in screen coordinates.
Warning
Internal use only

◆ position() [2/2]

static void xtd::forms::native::cursor::position ( const drawing::point position)
staticprotected

Sets the cursor's position.

Parameters
cursorCursor handle.
positionA point that represents the cursor's position in screen coordinates.
Warning
Internal use only

◆ size()

static drawing::size xtd::forms::native::cursor::size ( intptr  cursor)
staticprotected

Gets the size of the cursor object.

Parameters
cursorCursor handle.
Returns
A size that represents the width and height of the cursor.
Warning
Internal use only

◆ show()

static void xtd::forms::native::cursor::show ( )
staticprotected

Shows cursor.

Parameters
cursorCursor handle.
Warning
Internal use only

The documentation for this class was generated from the following file: