Struct xcb::x::EnterNotifyEvent
source · [−]pub struct EnterNotifyEvent { /* private fields */ }
Expand description
the pointer is in a different window
Implementations
sourceimpl 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.
pub fn state(&self) -> KeyButMask
sourcepub fn mode(&self) -> NotifyMode
pub fn mode(&self) -> NotifyMode
pub fn same_screen_focus(&self) -> u8
Trait Implementations
sourceimpl BaseEvent for EnterNotifyEvent
impl BaseEvent for EnterNotifyEvent
sourceimpl Debug for EnterNotifyEvent
impl Debug for EnterNotifyEvent
sourceimpl Drop for EnterNotifyEvent
impl Drop for EnterNotifyEvent
sourceimpl Raw<xcb_generic_event_t> for EnterNotifyEvent
impl Raw<xcb_generic_event_t> for EnterNotifyEvent
impl Send for EnterNotifyEvent
impl Sync for EnterNotifyEvent
Auto Trait Implementations
impl RefUnwindSafe for EnterNotifyEvent
impl Unpin for EnterNotifyEvent
impl UnwindSafe for EnterNotifyEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more