Function rustwlc::callback::pointer_button
[−]
[src]
pub fn pointer_button(
callback: extern "C" fn(_: WlcView, _: u32, _: &KeyboardModifiers, _: u32, _: ButtonState, _: &Point) -> bool
)
Callback invoked on mouse clicks.
Return true
to block the click from the view.
Arguments
The first u32 is a timestamp, the second is the button code.
The view may be the root window. Proper values for button
can be found in input.h
or a similar library/crate.
Example
use rustwlc::WlcView; use rustwlc::{KeyboardModifiers, ButtonState, Point}; extern fn pointer_button(view: WlcView, time: u32, mods: &KeyboardModifiers, button: u32, state: ButtonState, point: &Point) -> bool { println!("Button {} {:?} at {} at {} in {:?}, keyboard mods: {:?}", button, state, time, point, view, mods); return false; }