[][src]Struct wlroots::output::Cursor

pub struct Cursor { /* fields omitted */ }

Methods

impl Cursor
[src]

Creates a new output::Cursor that's bound to the given Output.

When the Output is destroyed each call will return an Error.

Ergonomics

To make this easier for you, I would suggest putting the output::Cursor in your OutputHandler implementor's state so that when the Output is removed you just don't have to think about it and it will clean itself up by itself.

Return a copy of the output handle used by this cursor.

There are no guarantees that it is valid to use.

Sets the hardware cursor's image.

Sets the hardware cursor's surface.

Moves the hardware cursor to the desired location

Get the coordinates of the cursor.

Returned value is in (x, y) format.

Determines if the hardware cursor is enabled or not.

Determines if the hardware cursor is visible or not.

Gets the width and height of the hardware cursor.

Returned value is in (width, height) format.

Gets the hotspot coordinates of the hardware cursor.

Returned value is in (x, y) coordinates.

Gets the texture for the cursor, if a software cursor is used without a surface.

Gets the surface for the cursor, if using a cursor surface.

Trait Implementations

impl Drop for Cursor
[src]

Executes the destructor for this type. Read more

impl Eq for Cursor
[src]

impl PartialEq<Cursor> for Cursor
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Cursor
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Cursor

impl !Sync for Cursor

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more