pub struct ZcosmicOutputConfigurationV1 { /* private fields */ }
Expand description
Output configuration extension object
Extension to zwlr_output_configuration_v1.
Adds additional parameters to be tested/applyed via the original zwlr_output_configuration_v1.
See also the Event enum for this interface.
Implementations§
Source§impl ZcosmicOutputConfigurationV1
impl ZcosmicOutputConfigurationV1
Sourcepub fn mirror_head<U: Send + Sync + 'static, D: Dispatch<ZwlrOutputConfigurationHeadV1, U> + 'static>(
&self,
head: &ZwlrOutputHeadV1,
mirroring: &ZwlrOutputHeadV1,
qh: &QueueHandle<D>,
udata: U,
) -> ZwlrOutputConfigurationHeadV1
pub fn mirror_head<U: Send + Sync + 'static, D: Dispatch<ZwlrOutputConfigurationHeadV1, U> + 'static>( &self, head: &ZwlrOutputHeadV1, mirroring: &ZwlrOutputHeadV1, qh: &QueueHandle<D>, udata: U, ) -> ZwlrOutputConfigurationHeadV1
enable and configure a head to mirror another head
Enable a head mirroring another.
This request creates a head configuration object that can be used to change the head’s properties.
This is an alternative to zwlr_output_configuration_v1::enable_head
or zwlr_output_configuration_v1::disable_head
Using either with the same head
argument will result in an already_configured_head
error on the original
zwlr_output_configuration_v1
object.
All properties are still required to be set to the resulting zwlr_output_configuration_head
by the client
as denoted in the original protocol. Some like set_position
however might be ignored in mirroring configurations.
Trying to set a disabled or mirroring head as mirroring
or calling disable_head
/mirror_head
after using a head
as a mirroring
argument will raise a mirrored_head_busy
protocol error.
Trait Implementations§
Source§impl Clone for ZcosmicOutputConfigurationV1
impl Clone for ZcosmicOutputConfigurationV1
Source§fn clone(&self) -> ZcosmicOutputConfigurationV1
fn clone(&self) -> ZcosmicOutputConfigurationV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicOutputConfigurationV1
impl Debug for ZcosmicOutputConfigurationV1
Source§impl Hash for ZcosmicOutputConfigurationV1
impl Hash for ZcosmicOutputConfigurationV1
Source§impl PartialEq<Weak<ZcosmicOutputConfigurationV1>> for ZcosmicOutputConfigurationV1
impl PartialEq<Weak<ZcosmicOutputConfigurationV1>> for ZcosmicOutputConfigurationV1
Source§impl PartialEq for ZcosmicOutputConfigurationV1
impl PartialEq for ZcosmicOutputConfigurationV1
Source§fn eq(&self, other: &ZcosmicOutputConfigurationV1) -> bool
fn eq(&self, other: &ZcosmicOutputConfigurationV1) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl Proxy for ZcosmicOutputConfigurationV1
impl Proxy for ZcosmicOutputConfigurationV1
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 ZcosmicOutputConfigurationV1
Auto Trait Implementations§
impl Freeze for ZcosmicOutputConfigurationV1
impl !RefUnwindSafe for ZcosmicOutputConfigurationV1
impl Send for ZcosmicOutputConfigurationV1
impl Sync for ZcosmicOutputConfigurationV1
impl Unpin for ZcosmicOutputConfigurationV1
impl !UnwindSafe for ZcosmicOutputConfigurationV1
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.