Struct wayland_protocols_wlr::output_management::v1::client::zwlr_output_manager_v1::ZwlrOutputManagerV1
source · pub struct ZwlrOutputManagerV1 { /* private fields */ }
Expand description
output device configuration manager
This interface is a manager that allows reading and writing the current output device configuration.
Output devices that display pixels (e.g. a physical monitor or a virtual output in a window) are represented as heads. Heads cannot be created nor destroyed by the client, but they can be enabled or disabled and their properties can be changed. Each head may have one or more available modes.
Whenever a head appears (e.g. a monitor is plugged in), it will be advertised via the head event. Immediately after the output manager is bound, all current heads are advertised.
Whenever a head’s properties change, the relevant wlr_output_head events will be sent. Not all head properties will be sent: only properties that have changed need to.
Whenever a head disappears (e.g. a monitor is unplugged), a wlr_output_head.finished event will be sent.
After one or more heads appear, change or disappear, the done event will be sent. It carries a serial which can be used in a create_configuration request to update heads properties.
The information obtained from this protocol should only be used for output configuration purposes. This protocol is not designed to be a generic output property advertisement protocol for regular clients. Instead, protocols such as xdg-output should be used.
See also the Event enum for this interface.
Implementations§
source§impl ZwlrOutputManagerV1
impl ZwlrOutputManagerV1
sourcepub fn create_configuration<U: Send + Sync + 'static, D: Dispatch<ZwlrOutputConfigurationV1, U> + 'static>(
&self,
serial: u32,
qh: &QueueHandle<D>,
udata: U
) -> ZwlrOutputConfigurationV1
pub fn create_configuration<U: Send + Sync + 'static, D: Dispatch<ZwlrOutputConfigurationV1, U> + 'static>( &self, serial: u32, qh: &QueueHandle<D>, udata: U ) -> ZwlrOutputConfigurationV1
create a new output configuration object
Create a new output configuration object. This allows to update head properties.
Trait Implementations§
source§impl Borrow<ObjectId> for ZwlrOutputManagerV1
impl Borrow<ObjectId> for ZwlrOutputManagerV1
source§impl Clone for ZwlrOutputManagerV1
impl Clone for ZwlrOutputManagerV1
source§fn clone(&self) -> ZwlrOutputManagerV1
fn clone(&self) -> ZwlrOutputManagerV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZwlrOutputManagerV1
impl Debug for ZwlrOutputManagerV1
source§impl Hash for ZwlrOutputManagerV1
impl Hash for ZwlrOutputManagerV1
source§impl PartialEq<Weak<ZwlrOutputManagerV1>> for ZwlrOutputManagerV1
impl PartialEq<Weak<ZwlrOutputManagerV1>> for ZwlrOutputManagerV1
source§impl PartialEq for ZwlrOutputManagerV1
impl PartialEq for ZwlrOutputManagerV1
source§fn eq(&self, other: &ZwlrOutputManagerV1) -> bool
fn eq(&self, other: &ZwlrOutputManagerV1) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Proxy for ZwlrOutputManagerV1
impl Proxy for ZwlrOutputManagerV1
source§fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
fn data<U: Send + Sync + 'static>(&self) -> Option<&U>
source§fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
fn object_data(&self) -> Option<&Arc<dyn ObjectData>>
source§fn backend(&self) -> &WeakBackend
fn backend(&self) -> &WeakBackend
source§fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
fn send_request(&self, req: Self::Request<'_>) -> Result<(), InvalidId>
source§fn send_constructor<I: Proxy>(
&self,
req: Self::Request<'_>,
data: Arc<dyn ObjectData>
) -> Result<I, InvalidId>
fn send_constructor<I: Proxy>( &self, req: Self::Request<'_>, data: Arc<dyn ObjectData> ) -> Result<I, InvalidId>
source§fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &Connection, id: ObjectId) -> Result<Self, InvalidId>
source§fn inert(backend: WeakBackend) -> Self
fn inert(backend: WeakBackend) -> Self
source§fn parse_event(
conn: &Connection,
msg: Message<ObjectId, OwnedFd>
) -> Result<(Self, Self::Event), DispatchError>
fn parse_event( conn: &Connection, msg: Message<ObjectId, OwnedFd> ) -> Result<(Self, Self::Event), DispatchError>
source§fn write_request<'a>(
&self,
conn: &Connection,
msg: Self::Request<'a>
) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
fn write_request<'a>( &self, conn: &Connection, msg: Self::Request<'a> ) -> Result<(Message<ObjectId, BorrowedFd<'a>>, Option<(&'static Interface, u32)>), InvalidId>
impl Eq for ZwlrOutputManagerV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwlrOutputManagerV1
impl Send for ZwlrOutputManagerV1
impl Sync for ZwlrOutputManagerV1
impl Unpin for ZwlrOutputManagerV1
impl !UnwindSafe for ZwlrOutputManagerV1
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.