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
Actual implementation of the request sending Read more
type Cookie = QueryTreeCookie
type Cookie = QueryTreeCookie
The default cookie associated to this request.
type Reply = QueryTreeReply
type Reply = QueryTreeReply
Reply associated with the request
type Cookie = QueryTreeCookie
type Cookie = QueryTreeCookie
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 QueryTree
impl UnwindSafe for QueryTree
Blanket Implementations
Mutably borrows from an owned value. Read more