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 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
GrabButton
: requestGrabPointer
: request
Fields§
§response_type: u8
§detail: Button
§sequence: u16
§time: Timestamp
§root: Window
§event: Window
§child: Window
§root_x: i16
§root_y: i16
§event_x: i16
§event_y: i16
§state: KeyButMask
§same_screen: bool
Trait Implementations§
source§impl Clone for ButtonPressEvent
impl Clone for ButtonPressEvent
source§fn clone(&self) -> ButtonPressEvent
fn clone(&self) -> ButtonPressEvent
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 ButtonPressEvent
impl Debug for ButtonPressEvent
source§impl Default for ButtonPressEvent
impl Default for ButtonPressEvent
source§fn default() -> ButtonPressEvent
fn default() -> ButtonPressEvent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ButtonPressEvent
impl<'de> Deserialize<'de> for ButtonPressEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&ButtonPressEvent> for [u8; 32]
impl From<&ButtonPressEvent> for [u8; 32]
source§fn from(input: &ButtonPressEvent) -> Self
fn from(input: &ButtonPressEvent) -> Self
Converts to this type from the input type.
source§impl From<ButtonPressEvent> for [u8; 32]
impl From<ButtonPressEvent> for [u8; 32]
source§fn from(input: ButtonPressEvent) -> Self
fn from(input: ButtonPressEvent) -> Self
Converts to this type from the input type.
source§impl Hash for ButtonPressEvent
impl Hash for ButtonPressEvent
source§impl Ord for ButtonPressEvent
impl Ord for ButtonPressEvent
source§fn cmp(&self, other: &ButtonPressEvent) -> Ordering
fn cmp(&self, other: &ButtonPressEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ButtonPressEvent
impl PartialEq for ButtonPressEvent
source§fn 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 ==
.source§impl PartialOrd for ButtonPressEvent
impl PartialOrd for ButtonPressEvent
source§fn partial_cmp(&self, other: &ButtonPressEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &ButtonPressEvent) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for ButtonPressEvent
impl Serialize for ButtonPressEvent
source§impl Serialize for ButtonPressEvent
impl Serialize for ButtonPressEvent
source§impl TryParse for ButtonPressEvent
impl TryParse for ButtonPressEvent
impl Copy for ButtonPressEvent
impl Eq for ButtonPressEvent
impl StructuralPartialEq for ButtonPressEvent
Auto Trait Implementations§
impl Freeze for ButtonPressEvent
impl RefUnwindSafe for ButtonPressEvent
impl Send for ButtonPressEvent
impl Sync for ButtonPressEvent
impl Unpin for ButtonPressEvent
impl UnwindSafe for ButtonPressEvent
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<RawFdContainer>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<RawFdContainer> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more