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