Struct x11rb_protocol::protocol::xinput::XIWarpPointerRequest
source · pub struct XIWarpPointerRequest {
pub src_win: Window,
pub dst_win: Window,
pub src_x: Fp1616,
pub src_y: Fp1616,
pub src_width: u16,
pub src_height: u16,
pub dst_x: Fp1616,
pub dst_y: Fp1616,
pub deviceid: DeviceId,
}
Fields§
§src_win: Window
§dst_win: Window
§src_x: Fp1616
§src_y: Fp1616
§src_width: u16
§src_height: u16
§dst_x: Fp1616
§dst_y: Fp1616
§deviceid: DeviceId
Implementations§
source§impl XIWarpPointerRequest
impl XIWarpPointerRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for XIWarpPointerRequest
impl Clone for XIWarpPointerRequest
source§fn clone(&self) -> XIWarpPointerRequest
fn clone(&self) -> XIWarpPointerRequest
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 XIWarpPointerRequest
impl Debug for XIWarpPointerRequest
source§impl Default for XIWarpPointerRequest
impl Default for XIWarpPointerRequest
source§fn default() -> XIWarpPointerRequest
fn default() -> XIWarpPointerRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for XIWarpPointerRequest
impl<'de> Deserialize<'de> for XIWarpPointerRequest
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 Hash for XIWarpPointerRequest
impl Hash for XIWarpPointerRequest
source§impl Ord for XIWarpPointerRequest
impl Ord for XIWarpPointerRequest
source§fn cmp(&self, other: &XIWarpPointerRequest) -> Ordering
fn cmp(&self, other: &XIWarpPointerRequest) -> 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 XIWarpPointerRequest
impl PartialEq for XIWarpPointerRequest
source§fn eq(&self, other: &XIWarpPointerRequest) -> bool
fn eq(&self, other: &XIWarpPointerRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for XIWarpPointerRequest
impl PartialOrd for XIWarpPointerRequest
source§fn partial_cmp(&self, other: &XIWarpPointerRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &XIWarpPointerRequest) -> 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 Request for XIWarpPointerRequest
impl Request for XIWarpPointerRequest
source§impl Serialize for XIWarpPointerRequest
impl Serialize for XIWarpPointerRequest
impl Copy for XIWarpPointerRequest
impl Eq for XIWarpPointerRequest
impl StructuralPartialEq for XIWarpPointerRequest
impl VoidRequest for XIWarpPointerRequest
Auto Trait Implementations§
impl Freeze for XIWarpPointerRequest
impl RefUnwindSafe for XIWarpPointerRequest
impl Send for XIWarpPointerRequest
impl Sync for XIWarpPointerRequest
impl Unpin for XIWarpPointerRequest
impl UnwindSafe for XIWarpPointerRequest
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