pub struct GetGeometry {
pub drawable: Drawable,
}Expand description
Get current window geometry
Gets the current geometry of the specified drawable (either Window or Pixmap).
§Example
// Get the X and Y coordinates of a window.
let cookie = conn.send_request(&x::GetGeometry {
drawable: x::Drawable::Window(window),
});
let reply = conn.wait_for_reply(cookie)?;
let (x, y) = (reply.x(), reply.y());This request replies GetGeometryReply.
Associated cookie types are GetGeometryCookie and GetGeometryCookieUnchecked.
Fields§
§drawable: DrawableThe drawable (Window or Pixmap) of which the geometry will be received.
Trait Implementations§
Source§impl Clone for GetGeometry
impl Clone for GetGeometry
Source§fn clone(&self) -> GetGeometry
fn clone(&self) -> GetGeometry
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 GetGeometry
impl Debug for GetGeometry
Source§impl RawRequest for GetGeometry
impl RawRequest for GetGeometry
Source§fn raw_request(&self, c: &Connection, checked: bool) -> u64
fn raw_request(&self, c: &Connection, checked: bool) -> u64
Actual implementation of the request sending Read more
Source§impl Request for GetGeometry
impl Request for GetGeometry
Source§impl RequestWithReply for GetGeometry
impl RequestWithReply for GetGeometry
Source§type Reply = GetGeometryReply
type Reply = GetGeometryReply
Reply associated with the request
Source§type Cookie = GetGeometryCookie
type Cookie = GetGeometryCookie
Default cookie type for the request, as returned by Connection::send_request.
Source§type CookieUnchecked = GetGeometryCookieUnchecked
type CookieUnchecked = GetGeometryCookieUnchecked
Unchecked cookie type for the request, as returned by Connection::send_request_unchecked.
Auto Trait Implementations§
impl Freeze for GetGeometry
impl RefUnwindSafe for GetGeometry
impl Send for GetGeometry
impl Sync for GetGeometry
impl Unpin for GetGeometry
impl UnwindSafe for GetGeometry
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