Struct x11rb_protocol::protocol::xproto::ButtonPressEvent
source · [−]pub struct ButtonPressEvent {}Expand description
a mouse button 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 theeventwindow is on the same screen as therootwindow.event_x- Ifsame_screenis true, this is the X coordinate relative to theeventwindow’s origin. Otherwise,event_xwill be set to zero.event_y- Ifsame_screenis true, this is the Y coordinate relative to theeventwindow’s origin. Otherwise,event_ywill be set to zero.root_x- The X coordinate of the pointer relative to therootwindow at the time of the event.root_y- The Y coordinate of the pointer relative to therootwindow at the time of the event.state- The logical state of the pointer buttons and modifier keys just prior to the event.
See
GrabButton: requestGrabPointer: request
Fields
response_type: u8detail: Buttonsequence: u16time: Timestamproot: Windowevent: Windowchild: Windowroot_x: i16root_y: i16event_x: i16event_y: i16state: u16same_screen: boolTrait Implementations
sourceimpl Clone for ButtonPressEvent
impl Clone for ButtonPressEvent
sourcefn clone(&self) -> ButtonPressEvent
fn clone(&self) -> ButtonPressEvent
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 ButtonPressEvent
impl Debug for ButtonPressEvent
sourceimpl Default for ButtonPressEvent
impl Default for ButtonPressEvent
sourcefn default() -> ButtonPressEvent
fn default() -> ButtonPressEvent
Returns the “default value” for a type. Read more
sourceimpl From<&'_ ButtonPressEvent> for [u8; 32]
impl From<&'_ ButtonPressEvent> for [u8; 32]
sourcefn from(input: &ButtonPressEvent) -> Self
fn from(input: &ButtonPressEvent) -> Self
Converts to this type from the input type.
sourceimpl From<ButtonPressEvent> for [u8; 32]
impl From<ButtonPressEvent> for [u8; 32]
sourcefn from(input: ButtonPressEvent) -> Self
fn from(input: ButtonPressEvent) -> Self
Converts to this type from the input type.
sourceimpl Hash for ButtonPressEvent
impl Hash for ButtonPressEvent
sourceimpl Ord for ButtonPressEvent
impl Ord for ButtonPressEvent
sourceimpl PartialEq<ButtonPressEvent> for ButtonPressEvent
impl PartialEq<ButtonPressEvent> for ButtonPressEvent
sourcefn eq(&self, other: &ButtonPressEvent) -> bool
fn eq(&self, other: &ButtonPressEvent) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ButtonPressEvent) -> bool
fn ne(&self, other: &ButtonPressEvent) -> bool
This method tests for !=.
sourceimpl PartialOrd<ButtonPressEvent> for ButtonPressEvent
impl PartialOrd<ButtonPressEvent> for ButtonPressEvent
sourcefn partial_cmp(&self, other: &ButtonPressEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &ButtonPressEvent) -> 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 ButtonPressEvent
impl TryParse for ButtonPressEvent
impl Copy for ButtonPressEvent
impl Eq for ButtonPressEvent
impl StructuralEq for ButtonPressEvent
impl StructuralPartialEq for ButtonPressEvent
Auto Trait Implementations
impl RefUnwindSafe for ButtonPressEvent
impl Send for ButtonPressEvent
impl Sync for ButtonPressEvent
impl Unpin for ButtonPressEvent
impl UnwindSafe for ButtonPressEvent
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