Struct xcb::x::GetGeometry
source · 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: Drawable
The 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)