Struct x11rb::protocol::xproto::MotionNotifyEvent
source · pub struct MotionNotifyEvent {}
Expand description
a key was pressed.
§Fields
detail
- The keycode (a number representing a physical key on the keyboard) of the key which was pressed.time
- Time when the event was generated (in milliseconds).root
- The root window ofchild
.same_screen
- Whether theevent
window is on the same screen as theroot
window.event_x
- Ifsame_screen
is true, this is the X coordinate relative to theevent
window’s origin. Otherwise,event_x
will be set to zero.event_y
- Ifsame_screen
is true, this is the Y coordinate relative to theevent
window’s origin. Otherwise,event_y
will be set to zero.root_x
- The X coordinate of the pointer relative to theroot
window at the time of the event.root_y
- The Y coordinate of the pointer relative to theroot
window at the time of the event.state
- The logical state of the pointer buttons and modifier keys just prior to the event.
§See
GrabKey
: requestGrabKeyboard
: request
Fields§
§response_type: u8
§detail: Motion
§sequence: u16
§time: u32
§root: u32
§event: u32
§child: u32
§root_x: i16
§root_y: i16
§event_x: i16
§event_y: i16
§state: KeyButMask
§same_screen: bool
Trait Implementations§
source§impl Clone for MotionNotifyEvent
impl Clone for MotionNotifyEvent
source§fn clone(&self) -> MotionNotifyEvent
fn clone(&self) -> MotionNotifyEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MotionNotifyEvent
impl Debug for MotionNotifyEvent
source§impl Default for MotionNotifyEvent
impl Default for MotionNotifyEvent
source§fn default() -> MotionNotifyEvent
fn default() -> MotionNotifyEvent
Returns the “default value” for a type. Read more
source§impl Serialize for MotionNotifyEvent
impl Serialize for MotionNotifyEvent
source§impl TryParse for MotionNotifyEvent
impl TryParse for MotionNotifyEvent
source§fn try_parse(
initial_value: &[u8],
) -> Result<(MotionNotifyEvent, &[u8]), ParseError>
fn try_parse( initial_value: &[u8], ) -> Result<(MotionNotifyEvent, &[u8]), ParseError>
Try to parse the given values into an instance of this type. Read more
impl Copy for MotionNotifyEvent
Auto Trait Implementations§
impl Freeze for MotionNotifyEvent
impl RefUnwindSafe for MotionNotifyEvent
impl Send for MotionNotifyEvent
impl Sync for MotionNotifyEvent
impl Unpin for MotionNotifyEvent
impl UnwindSafe for MotionNotifyEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> TryParseFd for Twhere
T: TryParse,
impl<T> TryParseFd for Twhere
T: TryParse,
source§fn try_parse_fd<'a>(
value: &'a [u8],
_: &mut Vec<OwnedFd>,
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<OwnedFd>, ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more