[][src]Struct wlroots::compositor::Compositor

pub struct Compositor {
    pub data: Box<dyn Any>,
    pub display: *mut wl_display,
    pub event_loop: *mut wl_event_loop,
    pub server_decoration_manager: Option<Manager>,
    pub gamma_control_manager: Option<Manager>,
    pub screenshooter: Option<Screenshooter>,
    pub renderer: Option<GenericRenderer>,
    pub xwayland: Option<Server>,
    // some fields omitted
}

Fields

User data.

Pointer to the wayland display.

Pointer to the event loop.

Optional decoration manager extension.

Optional gamma manager extension.

Optional screenshooter manager extension

The renderer used to draw things to the screen.

XWayland server, only Some if it is enabled

Methods

impl Compositor
[src]

Attempts to get the state struct the compositor was constructed with.

Panicking

If the data was not of the type specified in the type arguments this function will panic.

Creates a weak reference to the Compositor.

Enters the wayland event loop. Won't return until the compositor is shut off.

Prepare to enter the wayland event loop. Instead of calling wl_display_run, the provided callback function is invoked. Allows integration with a different event loop.

Get a reference to the currently running backend.

Get a mutable reference to the currently running backend.

Trait Implementations

impl Drop for Compositor
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Compositor

impl !Sync for Compositor

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