gdk4/
pad_event.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use std::fmt;
4
5use crate::{EventType, PadEvent};
6
7define_event! {
8    PadEvent,
9    crate::ffi::GdkPadEvent,
10    &[EventType::PadButtonPress, EventType::PadButtonRelease, EventType::PadRing, EventType::PadStrip, EventType::PadGroupMode]
11}
12
13impl fmt::Debug for PadEvent {
14    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15        f.debug_struct("PadEvent")
16            .field("axis_value", &self.axis_value())
17            .field("button", &self.button())
18            .field("group_mode", &self.group_mode())
19            .finish()
20    }
21}