pub struct Cursor<'window> { /* private fields */ }
Expand description

A system cursor controller.

Implementations§

Constructs a system cursor from kind.

Errors

Returns Err if the feature of cursor is unsupported.

Constructs a colored cursor from surface and hot spot point.

Errors

Returns Err if coloring a cursor is unsupported.

Constructs a completely customized color from data, mask and hot spot point.

Errors

Returns Err if failed to create a custom cursor.

Constructs a default cursor, or None if unavailable.

Sets the cursor to the current.

Redraws a cursor.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.