[−][src]Struct wlroots::compositor::Compositor
Fields
data: Box<dyn Any>
User data.
display: *mut wl_display
Pointer to the wayland display.
event_loop: *mut wl_event_loop
Pointer to the event loop.
server_decoration_manager: Option<Manager>
Optional decoration manager extension.
gamma_control_manager: Option<Manager>
Optional gamma manager extension.
screenshooter: Option<Screenshooter>
Optional screenshooter manager extension
renderer: Option<GenericRenderer>
The renderer used to draw things to the screen.
xwayland: Option<Server>
XWayland server, only Some if it is enabled
Methods
impl Compositor
[src]
impl Compositor
pub fn downcast<D: 'static>(&mut self) -> &mut D
[src]
pub fn downcast<D: 'static>(&mut self) -> &mut D
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.
pub fn weak_reference(&self) -> Handle
[src]
pub fn weak_reference(&self) -> Handle
Creates a weak reference to the Compositor
.
pub fn run(self)
[src]
pub fn run(self)
Enters the wayland event loop. Won't return until the compositor is shut off.
pub fn run_with<F>(self, runner: F) where
F: FnOnce(&Compositor),
[src]
pub fn run_with<F>(self, runner: F) where
F: FnOnce(&Compositor),
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.
pub fn backend(&self) -> &Backend
[src]
pub fn backend(&self) -> &Backend
Get a reference to the currently running backend.
pub fn backend_mut(&mut self) -> &mut Backend
[src]
pub fn backend_mut(&mut self) -> &mut Backend
Get a mutable reference to the currently running backend.
Trait Implementations
impl Drop for Compositor
[src]
impl Drop for Compositor
Auto Trait Implementations
impl !Send for Compositor
impl !Send for Compositor
impl !Sync for Compositor
impl !Sync for Compositor
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 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