Trait winit::platform::wayland::WindowAttributesExtWayland

source ·
pub trait WindowAttributesExtWayland {
    // Required method
    fn with_name(
        self,
        general: impl Into<String>,
        instance: impl Into<String>
    ) -> Self;
}
Available on wayland_platform only.
Expand description

Additional methods on WindowAttributes that are specific to Wayland.

Required Methods§

source

fn with_name( self, general: impl Into<String>, instance: impl Into<String> ) -> Self

Build window with the given name.

The general name sets an application ID, which should match the .desktop file distributed with your program. The instance is a no-op.

For details about application ID conventions, see the Desktop Entry Spec

Object Safety§

This trait is not object safe.

Implementors§