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
sourceimpl Clone for GetGeometry
impl Clone for GetGeometry
sourcefn clone(&self) -> GetGeometry
fn clone(&self) -> GetGeometry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetGeometry
impl Debug for GetGeometry
sourceimpl RawRequest for GetGeometry
impl RawRequest for GetGeometry
sourcefn 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
sourceimpl Request for GetGeometry
impl Request for GetGeometry
type Cookie = GetGeometryCookie
type Cookie = GetGeometryCookie
The default cookie associated to this request.
sourceimpl RequestWithReply for GetGeometry
impl RequestWithReply for GetGeometry
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.
type CookieUnchecked = GetGeometryCookieUnchecked
type CookieUnchecked = GetGeometryCookieUnchecked
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more