[][src]Struct wlroots::seat::Seat

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

Methods

impl Seat
[src]

Allocates a new wlr_seat and adds a wl_seat global to the display.

Get a weak reference to this seat.

Get the name of the seat.

Updates the name of this seat. Will automatically send it to all clients.

Gets the capabilities of this seat.

Updates the capabilities available on this seat. Will automatically send it to all clients.

Determines if the surface has pointer focus.

Clears the focused surface for the pointer and leaves all entered surfaces.

Sends a motion event to the surface with pointer focus.

Coordinates for the motion event are surface-local.

Compositors should use Seat::notify_motion to send motion events to the respect pointer grabs.

Send a button event to the surface with pointer focus.

Coordinates for the button event are surface-local.

Returns the serial.

Compositors should use Seat::notify_button to send button events to respect pointer grabs.

Send an axis event to the surface with pointer focus.

Compositors should use Seat::notify_axis to send axis events to respect pointer grabs.

Start a grab of the pointer of this seat. The grabber is responsible for handling all pointer events until the grab ends.

End the grab of the pointer of this seat. This reverts the grab back to the default grab for the pointer.

Whether or not the pointer has a grab other than the default grab.

Notify the seat of a pointer enter event to the given surface and request it to be the focused surface for the pointer.

Pass surface-local coordinates where the enter occurred.

Notify the seat of motion over the given surface.

Pass surface-local coordinates where the pointer motion occurred.

Notify the seat that a button has been pressed.

Returns the serial of the button press or zero if no button press was sent.

Notify the seat of an axis event.

Set this keyboard as the active keyboard for the seat.

Send the keyboard key to focused keyboard resources.

Compositors should use wlr_seat_notify_key() to respect keyboard grabs.

Send the modifier state to focused keyboard resources.

Compositors should use Seat::keyboard_notify_modifiers() to respect any keyboard grabs.

Get the keyboard associated with this Seat, if there is one.

Notify the seat that the keyboard focus has changed and request it to be the focused surface for this keyboard.

Defers to any current grab of the seat's keyboard.

Send a keyboard enter event to the given surface and consider it to be the focused surface for the keyboard.

This will send a leave event to the last surface that was entered.

Compositors should use Seat::keyboard_notify_enter() to change keyboard focus to respect keyboard grabs.

Start a grab of the keyboard of this seat. The grabber is responsible for handling all keyboard events until the grab ends.

End the grab of the keyboard of this seat. This reverts the grab back to the default grab for the keyboard.

Whether or not the keyboard has a grab other than the default grab

Clear the focused surface for the keyboard and leave all entered surfaces.

Notify the seat that the modifiers for the keyboard have changed.

Defers to any keyboard grabs.

Notify the seat that a key has been pressed on the keyboard.

Defers to any keyboard grabs.

How many touch ponits are currently down for the seat.

Start a grab of the touch device of this seat. The grabber is responsible for handling all touch events until the grab ends.

End the grab of the touch device of this seat. This reverts the grab back to the default grab for the touch device.

Whether or not the seat has a touch grab other than the default grab.

Notify the seat that the touch point given by touch_id has entered a new surface.

The surface is required. To clear focus, use Seat::touch_point_clear_focus().

Send a touch down event to the client of the given surface.

All future touch events for this point will go to this surface.

If the touch down is valid, this will add a new touch point with the given touch_id.

The touch down may not be valid if the surface seat client does not accept touch input.

Coordinates are surface-local.

Compositors should use Seat::touch_notify_down() to respect any grabs of the touch device.

Send a touch up event for the touch point given by the touch_id.

The event will go to the client for the surface given in the cooresponding touch down event.

This will remove the touch point.

Compositors should use Seat::touch_notify_up() to respect any grabs of the touch device.

Send a touch motion event for the touch point given by the touch_id.

The event will go to the client for the surface given in the corresponding touch down event.

Compositors should use Seat::touch_notify_motion() to respect any grabs of the touch device.

Notify the seat of a touch down on the given surface. Defers to any grab of the touch device.

Notify the seat that the touch point given by touch_id is up. Defers to any grab of the touch device.

Notify the seat that the touch point given by touch_id has moved.

Defers to any grab of the touch device.

The seat should be notified of touch motion even if the surface is not the owner of the touch point for processing by grabs.

Trait Implementations

impl Drop for Seat
[src]

Executes the destructor for this type. Read more

impl Debug for Seat
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Seat

impl !Sync for Seat

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