xcb::x

Type Alias LeaveNotifyEvent

source
pub type LeaveNotifyEvent = EnterNotifyEvent;
Expand description

the pointer is in a different window

Aliased Type§

struct LeaveNotifyEvent { /* private fields */ }

Implementations

source§

impl EnterNotifyEvent

source

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

source

pub fn response_type(&self) -> u8

source

pub fn detail(&self) -> NotifyDetail

source

pub fn sequence(&self) -> u16

source

pub fn time(&self) -> Timestamp

source

pub fn root(&self) -> Window

The root window for the final cursor position.

source

pub fn event(&self) -> Window

The window on which the event was generated.

source

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.

source

pub fn root_x(&self) -> i16

The pointer X coordinate relative to root’s origin at the time of the event.

source

pub fn root_y(&self) -> i16

The pointer Y coordinate relative to root’s origin at the time of the event.

source

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.

source

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.

source

pub fn state(&self) -> KeyButMask

source

pub fn mode(&self) -> NotifyMode

source

pub fn same_screen_focus(&self) -> u8

Trait Implementations

source§

impl BaseEvent for EnterNotifyEvent

source§

const EXTENSION: Option<Extension> = None

The extension associated to this event, or None for the main protocol
source§

const NUMBER: u32 = 7u32

The number associated to this event
source§

fn is_from_send_event(&self) -> bool

Check whether this event was emitted by the SendEvent request See [crate::x::SendEvent].
source§

impl Debug for EnterNotifyEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for EnterNotifyEvent

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Raw<xcb_generic_event_t> for EnterNotifyEvent

source§

unsafe fn from_raw(raw: *mut xcb_generic_event_t) -> Self

Build Self from a raw pointer Read more
source§

fn as_raw(&self) -> *mut xcb_generic_event_t

Obtain the raw pointer representation
source§

fn into_raw(self) -> *mut T

Convert self into a raw pointer Read more
source§

impl Send for EnterNotifyEvent

source§

impl Sync for EnterNotifyEvent