[][src]Struct wlroots::compositor::Builder

pub struct Builder { /* fields omitted */ }

Methods

impl Builder
[src]

Make a new compositor builder.

Unless otherwise noted, each option is false/None.

Panicking

There can only be one compositor::Builder per process. If you construct a compositor::Builder with any of the build operations then another compositor::Builder cannot be constructed until the built Compositor is dropped.

This requirement is enforced by a check that will panic if this constraint is broken. This applies across threads.

Set callbacks for miscellaneous compositor events.

Set callbacks for managing input resources.

Set callbacks for managing output resources.

Set callbacks for managing XDG shell resources.

Set callbacks for managing XDG shell v6 resources.

Decide whether or not to enable the wl_shm global.

This is used to allocate shared memory between clients and the compositor.

Decide whether or not to enable the data device manager.

This is used to do DnD, or "drag 'n drop" copy paste.

Decide whether or not to enable the GLES2 extension.

Decide whether or not to enable the server decoration manager protocol extension.

Decide whether or not to enable the gamma control manager protocol extension.

Decide whether or not to enable the screenshooter protocol extension.

Set callbacks for managing XDG shell v6 resources.

If this function is not called then the xwayland server does not run.

Add a custom function to run when shutting down the compositor or whenever a function in a callback panics.

Give an unsafe function to setup the renderer instead of the default renderer.

Makes a new compositor that handles the setup of the graphical backend (e.g, Wayland, X11, or DRM).

Also automatically opens the socket for clients to communicate to the compositor with.

Set the name of the Wayland remote socket to connect to when using the Wayland backend.

(e.g. wayland-0, which is usually the default).

Set the name of the X11 display socket to be used to connect to a running X11 instance for the backend.

Creates the compositor using an already running Wayland instance as a backend.

The instance starts with no outputs.

Trait Implementations

impl Drop for Builder
[src]

Executes the destructor for this type. Read more

impl Default for Builder
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Builder

impl Sync for Builder

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more