pub trait ConnectionExt: RequestConnection {
// Provided methods
fn composite_query_version(
&self,
client_major_version: u32,
client_minor_version: u32,
) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError> { ... }
fn composite_redirect_window(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn composite_redirect_subwindows(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn composite_unredirect_window(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn composite_unredirect_subwindows(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn composite_create_region_from_border_clip(
&self,
region: Region,
window: Window,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn composite_name_window_pixmap(
&self,
window: Window,
pixmap: Pixmap,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
fn composite_get_overlay_window(
&self,
window: Window,
) -> Result<Cookie<'_, Self, GetOverlayWindowReply>, ConnectionError> { ... }
fn composite_release_overlay_window(
&self,
window: Window,
) -> Result<VoidCookie<'_, Self>, ConnectionError> { ... }
}
Expand description
Extension trait defining the requests of this extension.
Provided Methods§
Sourcefn composite_query_version(
&self,
client_major_version: u32,
client_minor_version: u32,
) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
fn composite_query_version( &self, client_major_version: u32, client_minor_version: u32, ) -> Result<Cookie<'_, Self, QueryVersionReply>, ConnectionError>
Negotiate the version of Composite.
This negotiates the version of the Composite extension. It must be precede all other requests using Composite. Failure to do so will cause a BadRequest error.
§Fields
client_major_version
- The major version supported by the client.client_minor_version
- The minor version supported by the client.
Sourcefn composite_redirect_window(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn composite_redirect_window( &self, window: Window, update: Redirect, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Redirect the hierarchy starting at “window” to off-screen storage..
The hierarchy starting at ‘window’ is directed to off-screen storage. When all clients enabling redirection terminate, the redirection will automatically be disabled.
The root window may not be redirected. Doing so results in a Match error.
§Fields
window
- The root of the hierarchy to redirect to off-screen storage.update
- Whether contents are automatically mirrored to the parent window. If one client already specifies an update type of Manual, any attempt by another to specify a mode of Manual so will result in an Access error.
Sourcefn composite_redirect_subwindows(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn composite_redirect_subwindows( &self, window: Window, update: Redirect, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Redirect all current and future children of ‘window’.
Hierarchies starting at all current and future children of window will be redirected as in RedirectWindow. If update is Manual, then painting of the window background during window manipulation and ClearArea requests is inhibited.
§Fields
window
- The root of the hierarchy to redirect to off-screen storage.update
- Whether contents are automatically mirrored to the parent window. If one client already specifies an update type of Manual, any attempt by another to specify a mode of Manual so will result in an Access error.
Sourcefn composite_unredirect_window(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn composite_unredirect_window( &self, window: Window, update: Redirect, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Terminate redirection of the specified window..
Redirection of the specified window will be terminated. This cannot be used if the window was redirected with RedirectSubwindows.
§Fields
window
- The window to terminate redirection of. Must be redirected by the current client, or a Value error results.update
- The update type passed to RedirectWindows. If this does not match the previously requested update type, a Value error results.
Sourcefn composite_unredirect_subwindows(
&self,
window: Window,
update: Redirect,
) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn composite_unredirect_subwindows( &self, window: Window, update: Redirect, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Terminate redirection of the specified window’s children.
Redirection of all children of window will be terminated.
§Fields
window
- The window to terminate redirection of. Must have previously been selected for sub-redirection by the current client, or a Value error results.update
- The update type passed to RedirectSubWindows. If this does not match the previously requested update type, a Value error results.
fn composite_create_region_from_border_clip( &self, region: Region, window: Window, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn composite_name_window_pixmap( &self, window: Window, pixmap: Pixmap, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
fn composite_get_overlay_window( &self, window: Window, ) -> Result<Cookie<'_, Self, GetOverlayWindowReply>, ConnectionError>
fn composite_release_overlay_window( &self, window: Window, ) -> Result<VoidCookie<'_, Self>, ConnectionError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.