Struct x11rb_protocol::protocol::xproto::KeyPressEvent
source · [−]pub struct KeyPressEvent {}
Expand description
a key was pressed/released.
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: Keycode
sequence: u16
time: Timestamp
root: Window
event: Window
child: Window
root_x: i16
root_y: i16
event_x: i16
event_y: i16
state: u16
same_screen: bool
Trait Implementations
sourceimpl Clone for KeyPressEvent
impl Clone for KeyPressEvent
sourcefn clone(&self) -> KeyPressEvent
fn clone(&self) -> KeyPressEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyPressEvent
impl Debug for KeyPressEvent
sourceimpl Default for KeyPressEvent
impl Default for KeyPressEvent
sourcefn default() -> KeyPressEvent
fn default() -> KeyPressEvent
Returns the “default value” for a type. Read more
sourceimpl From<&'_ KeyPressEvent> for [u8; 32]
impl From<&'_ KeyPressEvent> for [u8; 32]
sourcefn from(input: &KeyPressEvent) -> Self
fn from(input: &KeyPressEvent) -> Self
Converts to this type from the input type.
sourceimpl From<KeyPressEvent> for [u8; 32]
impl From<KeyPressEvent> for [u8; 32]
sourcefn from(input: KeyPressEvent) -> Self
fn from(input: KeyPressEvent) -> Self
Converts to this type from the input type.
sourceimpl Hash for KeyPressEvent
impl Hash for KeyPressEvent
sourceimpl Ord for KeyPressEvent
impl Ord for KeyPressEvent
sourceimpl PartialEq<KeyPressEvent> for KeyPressEvent
impl PartialEq<KeyPressEvent> for KeyPressEvent
sourcefn eq(&self, other: &KeyPressEvent) -> bool
fn eq(&self, other: &KeyPressEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KeyPressEvent) -> bool
fn ne(&self, other: &KeyPressEvent) -> bool
This method tests for !=
.
sourceimpl PartialOrd<KeyPressEvent> for KeyPressEvent
impl PartialOrd<KeyPressEvent> for KeyPressEvent
sourcefn partial_cmp(&self, other: &KeyPressEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyPressEvent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryParse for KeyPressEvent
impl TryParse for KeyPressEvent
impl Copy for KeyPressEvent
impl Eq for KeyPressEvent
impl StructuralEq for KeyPressEvent
impl StructuralPartialEq for KeyPressEvent
Auto Trait Implementations
impl RefUnwindSafe for KeyPressEvent
impl Send for KeyPressEvent
impl Sync for KeyPressEvent
impl Unpin for KeyPressEvent
impl UnwindSafe for KeyPressEvent
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