Struct input::event::tablet_tool::TabletToolButtonEvent [] [src]

pub struct TabletToolButtonEvent { /* fields omitted */ }

Signals that a tool has changed a logical button state on a device with the DeviceCapability::TabletTool capability.

Button state changes occur on their own and do not include axis state changes. If button and axis state changes occur within the same logical hardware event, the order of the TabletToolButtonEvent and TabletToolAxisEvent is device-specific.

This event is not to be confused with the button events emitted by the tablet pad. See TabletPadButtonEvent.

Methods

impl TabletToolButtonEvent
[src]

Return the button that triggered this event.

For the button of a TabletToolButtonEvent, return the total number of buttons pressed on all devices on the associated seat after the the event was triggered.

Return the button state of the event.

Trait Implementations

impl Eq for TabletToolButtonEvent
[src]

impl Debug for TabletToolButtonEvent
[src]

Formats the value using the given formatter.

impl FromRaw<libinput_event_tablet_tool> for TabletToolButtonEvent
[src]

Create a new instance of this type from a raw pointer. Read more

impl AsRaw<libinput_event_tablet_tool> for TabletToolButtonEvent
[src]

Receive a raw pointer representing this type.

impl PartialEq for TabletToolButtonEvent
[src]

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

This method tests for !=.

impl Hash for TabletToolButtonEvent
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl EventTrait for TabletToolButtonEvent
[src]

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event. Read more

impl Drop for TabletToolButtonEvent
[src]

A method called when the value goes out of scope. Read more