Struct smithay::wayland::output::Output[][src]

pub struct Output { /* fields omitted */ }
Expand description

An output as seen by the clients

This handle is stored in the event loop, and allows you to notify clients about any change in the properties of this output.

Implementations

Create a new output global with given name and physical properties

The global is directly registered into the event loop, and this function returns the state token allowing you to access it, as well as the global handle, in case you wish to remove this global in the future.

Attempt to retrieve a Output from an existing resource

Sets the preferred mode of this output

If the provided mode was not previously known to this output, it is added to its internal list.

Adds a mode to the list of known modes to this output

Removes a mode from the list of known modes

It will not de-advertise it from existing clients (the protocol does not allow it), but it won’t be advertised to now clients from now on.

Change the current state of this output

You can changed the current mode, transform status, location or scale of this output. Providing None to any of these field means that the value does not change.

If the provided mode was not previously known to this output, it is added to its internal list.

By default, transform status is Normal, and scale is 1.

Check is given wl_output instance is managed by this Output.

This function allows to run a FnMut on every WlOutput matching the same Client as provided

Sends wl_surface.enter for the provided surface with the matching client output

Sends wl_surface.leave for the provided surface with the matching client output

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.