Struct wayland_client::core::shell::Shell [] [src]

pub struct Shell {
    // some fields omitted
}

A handle to a wayland wl_shell.

This reprensent the desktop window. A surface must be bound to it in order to be drawed on screen.

Like other global objects, this handle can be cloned.

Methods

impl Shell

fn get_shell_surface<S>(&self, surface: S) -> ShellSurface<S> where S: Surface

Assigns the shell_surface role to given surface.

The surface will now behave as a generic window, see ShellSurface documentation for more details.

Trait Implementations

impl Bind<Registry> for Shell

fn interface() -> &'static wl_interface

unsafe fn wrap(ptr: *mut wl_shell, registry: Registry) -> Shell

impl FFI for Shell

type Ptr = wl_shell

fn ptr(&self) -> *const wl_shell

unsafe fn ptr_mut(&self) -> *mut wl_shell

Derived Implementations

impl Clone for Shell

fn clone(&self) -> Shell

fn clone_from(&mut self, source: &Self)