Struct wayland_client::core::compositor::Compositor [] [src]

pub struct Compositor {
    // some fields omitted
}

A wayland compositor.

This is the back-end that will be used for all drawing.

Like other global objects, this handle can be cloned.

Methods

impl Compositor

fn create_surface(&self) -> WSurface

Creates a new surface to draw on.

fn create_region(&self) -> Region

Creates a new region.

Trait Implementations

impl Bind<Registry> for Compositor

fn interface() -> &'static wl_interface

unsafe fn wrap(ptr: *mut wl_compositor, registry: Registry) -> Compositor

impl FFI for Compositor

type Ptr = wl_compositor

fn ptr(&self) -> *const wl_compositor

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

Derived Implementations

impl Clone for Compositor

fn clone(&self) -> Compositor

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