pub type LeaveNotifyEvent = EnterNotifyEvent;
Expand description
the pointer is in a different window
Aliased Type§
struct LeaveNotifyEvent { /* private fields */ }
Implementations
source§impl EnterNotifyEvent
impl EnterNotifyEvent
pub fn new( detail: NotifyDetail, time: Timestamp, root: Window, event: Window, child: Window, root_x: i16, root_y: i16, event_x: i16, event_y: i16, state: KeyButMask, mode: NotifyMode, same_screen_focus: u8, ) -> EnterNotifyEvent
pub fn response_type(&self) -> u8
pub fn detail(&self) -> NotifyDetail
pub fn sequence(&self) -> u16
pub fn time(&self) -> Timestamp
sourcepub fn child(&self) -> Window
pub fn child(&self) -> Window
If the event
window has subwindows and the final pointer position is in one
of them, then child
is set to that subwindow, XCB_WINDOW_NONE
otherwise.
sourcepub fn root_x(&self) -> i16
pub fn root_x(&self) -> i16
The pointer X coordinate relative to root
’s origin at the time of the event.
sourcepub fn root_y(&self) -> i16
pub fn root_y(&self) -> i16
The pointer Y coordinate relative to root
’s origin at the time of the event.
sourcepub fn event_x(&self) -> i16
pub fn event_x(&self) -> i16
If event
is on the same screen as root
, this is the pointer X coordinate
relative to the event window’s origin.
sourcepub fn event_y(&self) -> i16
pub fn event_y(&self) -> i16
If event
is on the same screen as root
, this is the pointer Y coordinate
relative to the event window’s origin.