smithay::backend::input

Trait PointerButtonEvent

Source
pub trait PointerButtonEvent<B: InputBackend>: Event<B> {
    // Required methods
    fn button(&self) -> MouseButton;
    fn state(&self) -> ButtonState;
}
Expand description

Common methods pointer event generated by pressed buttons do implement

Required Methods§

Source

fn button(&self) -> MouseButton

Pressed button of the event

Source

fn state(&self) -> ButtonState

State of the button

Implementations on Foreign Types§

Source§

impl PointerButtonEvent<LibinputInputBackend> for PointerButtonEvent

Implementors§