gdk4/
scroll_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, ScrollEvent};
6
7define_event! {
8    ScrollEvent,
9    crate::ffi::GdkScrollEvent,
10    &[EventType::Scroll]
11}
12
13impl fmt::Debug for ScrollEvent {
14    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15        f.debug_struct("ScrollEvent")
16            .field("deltas", &self.deltas())
17            .field("direction", &self.direction())
18            .field("is_stop", &self.is_stop())
19            .finish()
20    }
21}