Struct smithay::wayland::tablet_manager::TabletToolHandle[][src]

pub struct TabletToolHandle { /* fields omitted */ }
Expand description

Handle to a tablet tool device

TabletTool represents a physical tool that has been, or is currently in use with a tablet in seat.

A TabletTool relation to a physical tool depends on the tablet’s ability to report serial numbers. If the tablet supports this capability, then the object represents a specific physical tool and can be identified even when used on multiple tablets.

Implementations

Notify that this tool is focused on a certain surface.

You provide the location of the tool, in the form of:

  • The coordinates of the tool in the global compositor space
  • The surface on top of which the tool is, and the coordinates of its origin in the global compositor space.

Notify that this tool has left proximity.

Tablet tool is making contact

Tablet tool is no longer making contact

Notify that the tool moved

You provide the new location of the tool, in the form of:

  • The coordinates of the tool in the global compositor space
  • The surface on top of which the tool is, and the coordinates of its origin in the global compositor space (or None of the pointer is not on top of a client surface).

This will internally take care of notifying the appropriate client objects of proximity_in/proximity_out events.

Queue tool pressure update

It will be sent alongside next motion event

Queue tool distance update

It will be sent alongside next motion event

Queue tool tilt update

It will be sent alongside next motion event

Queue tool rotation update

It will be sent alongside next motion event

Queue tool slider update

It will be sent alongside next motion event

Queue tool wheel update

It will be sent alongside next motion event

Button on the tool was pressed or released

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a 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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.