Trait XdgSurface
pub trait XdgSurface: Sized + WaylandSurface {
// Required method
fn xdg_surface(&self) -> &XdgSurface;
// Provided method
fn set_window_geometry(&self, x: u32, y: u32, width: u32, height: u32) { ... }
}Available on crate feature
wayland and Linux only.Required Methods§
fn xdg_surface(&self) -> &XdgSurface
fn xdg_surface(&self) -> &XdgSurface
The underlying XdgSurface.
Provided Methods§
fn set_window_geometry(&self, x: u32, y: u32, width: u32, height: u32)
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.