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]
impl FromRaw<libinput_event_tablet_tool> for TabletToolButtonEvent[src]
unsafe fn from_raw(ffi: *mut libinput_event_tablet_tool) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_tablet_tool> for TabletToolButtonEvent[src]
fn as_raw(&self) -> *const libinput_event_tablet_tool
Receive a raw pointer representing this type.
impl PartialEq for TabletToolButtonEvent[src]
fn eq(&self, other: &Self) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for TabletToolButtonEvent[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl EventTrait for TabletToolButtonEvent[src]
fn into_event(self) -> Event where Self: Sized
Convert into a general Event again
fn context(&self) -> Libinput
Get the libinput context from the event.
fn device(&self) -> Device
Return the device associated with this event. Read more