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
Actual implementation of the request sending Read more
type Cookie = GetGeometryCookie
type Cookie = GetGeometryCookie
The default cookie associated to this request.
type Reply = GetGeometryReply
type Reply = GetGeometryReply
Reply associated with the request
type Cookie = GetGeometryCookie
type Cookie = GetGeometryCookie
Default cookie type for the request, as returned by Connection::send_request.
Unchecked cookie type for the request, as returned by Connection::send_request_unchecked.
Auto Trait Implementations
impl RefUnwindSafe for GetGeometry
impl Send for GetGeometry
impl Sync for GetGeometry
impl Unpin for GetGeometry
impl UnwindSafe for GetGeometry
Blanket Implementations
Mutably borrows from an owned value. Read more