Struct x11rb::protocol::xproto::MotionNotifyEvent[][src]

pub struct MotionNotifyEvent {
Show 13 fields pub response_type: u8, pub detail: Motion, pub sequence: u16, pub time: Timestamp, pub root: Window, pub event: Window, pub child: Window, pub root_x: i16, pub root_y: i16, pub event_x: i16, pub event_y: i16, pub state: u16, pub same_screen: bool,
}
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 of child.
  • same_screen - Whether the event window is on the same screen as the root window.
  • event_x - If same_screen is true, this is the X coordinate relative to the event window’s origin. Otherwise, event_x will be set to zero.
  • event_y - If same_screen is true, this is the Y coordinate relative to the event window’s origin. Otherwise, event_y will be set to zero.
  • root_x - The X coordinate of the pointer relative to the root window at the time of the event.
  • root_y - The Y coordinate of the pointer relative to the root 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: request
  • GrabKeyboard: request

Fields

response_type: u8detail: Motionsequence: u16time: Timestamproot: Windowevent: Windowchild: Windowroot_x: i16root_y: i16event_x: i16event_y: i16state: u16same_screen: bool

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Try to parse the given values into an instance of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Try to parse the given values into an instance of this type. Read more