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.
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
.
Sends wl_surface.enter
for the provided surface
with the matching client output
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Output
impl UnwindSafe for Output
Blanket Implementations
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
pub fn vzip(self) -> V