pub struct QueryTree {
pub window: Window,
}
Expand description
query the window tree
Gets the root window ID, parent window ID and list of children windows for the
specified window
. The children are listed in bottom-to-top stacking order.
§Example
// Get the root, parent and children of the specified window.
let cookie = conn.send_request(&x::QueryTree {
window,
});
let reply = conn.wait_for_reply(cookie)?;
// type inference is not needed here, only to show the type of returned value.
let root: x::Window = reply.root();
let parent: x::Window = reply.parent();
let children: &[x::Window] = reply.children();
This request replies QueryTreeReply.
Associated cookie types are QueryTreeCookie and QueryTreeCookieUnchecked.
Fields§
§window: Window
The window
to query.
Trait Implementations§
source§impl RawRequest for QueryTree
impl RawRequest for QueryTree
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 RequestWithReply for QueryTree
impl RequestWithReply for QueryTree
source§type Reply = QueryTreeReply
type Reply = QueryTreeReply
Reply associated with the request
source§type Cookie = QueryTreeCookie
type Cookie = QueryTreeCookie
Default cookie type for the request, as returned by Connection::send_request.
source§type CookieUnchecked = QueryTreeCookieUnchecked
type CookieUnchecked = QueryTreeCookieUnchecked
Unchecked cookie type for the request, as returned by Connection::send_request_unchecked.
Auto Trait Implementations§
impl Freeze for QueryTree
impl RefUnwindSafe for QueryTree
impl Send for QueryTree
impl Sync for QueryTree
impl Unpin for QueryTree
impl UnwindSafe for QueryTree
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
)