Skip to main content

gdk/
event_pad_group_mode.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4
5/// Generated during [`InputSource::TabletPad`][crate::InputSource::TabletPad] mode switches in a group.
6#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct EventPadGroupMode(crate::Event);
8
9event_wrapper!(EventPadGroupMode, GdkEventPadGroupMode);
10event_subtype!(EventPadGroupMode, ffi::GDK_PAD_GROUP_MODE);
11
12impl EventPadGroupMode {
13    #[doc(alias = "get_time")]
14    pub fn time(&self) -> u32 {
15        self.as_ref().time
16    }
17
18    #[doc(alias = "get_group")]
19    pub fn group(&self) -> u32 {
20        self.as_ref().group
21    }
22
23    #[doc(alias = "get_mode")]
24    pub fn mode(&self) -> u32 {
25        self.as_ref().mode
26    }
27}