[][src]Struct wlroots::cursor::Cursor

#[repr(C)]
pub struct Cursor { /* fields omitted */ }

Methods

impl Cursor
[src]

Get a weak reference to this Cursor.

Attach this cursor to an output layout.

Get the coordinates the cursor is located at.

Warp the cursor to the given x and y in layout coordinates. If x and y are out of the layout boundaries or constraints, no warp will happen.

dev may be passed to respect device mapping constraints. If dev is None, device mapping constraints will be ignored.

Returns true when the mouse warp was successful.

Move the cursor in the direction of the given x and y coordinates.

dev may be passed to respect device mapping constraints. If dev is None, device mapping constraints will be ignored.

Sets the image of the cursor to the image.

Set the cursor surface. The surface can be committed to update the cursor image. The surface position is substracted from the hotspot.

A None surface commit hides the cursor.

Attaches this input device to this cursor. The input device must be one of:

  • WLR_INPUT_DEVICE_POINTER
  • WLR_INPUT_DEVICE_TOUCH
  • WLR_INPUT_DEVICE_TABLET_TOOL

TODO Make this impossible to mess up with using an enum Note that it's safe to use the wrong type.

Deattaches the input device from this cursor.

Attaches this cursor to the given output, which must be among the outputs in the current output_layout for this cursor.

Maps all input from a specific input device to a given output.

The input device must be attached to this cursor and the output must be among the outputs in the attached output layout.

Maps this cursor to an arbitrary region on the associated wlr_output_layout.

Maps inputs from this input device to an arbitrary region on the associated wlr_output_layout.

The input device must be attached to this cursor.

Convert absolute coordinates to layout coordinates for the device.

Coordinates are in (x, y).

Trait Implementations

impl Drop for Cursor
[src]

Executes the destructor for this type. Read more

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