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.
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 the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for TabletToolHandle
impl !Send for TabletToolHandle
impl !Sync for TabletToolHandle
impl Unpin for TabletToolHandle
impl !UnwindSafe for TabletToolHandle
Blanket Implementations
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
pub fn vzip(self) -> V