pub struct ZcosmicOutputHeadV1 { /* private fields */ }
Expand description
Output extension object
Extension to zwlr_output_head_v1.
Adds additional read-only properties.
Properties sent via this interface are applied atomically via the wlr_output_manager.done event. No guarantees are made regarding the order in which properties are sent.
See also the Request enum for this interface.
Implementations§
Source§impl ZcosmicOutputHeadV1
impl ZcosmicOutputHeadV1
Sourcepub fn scale_1000(&self, scale_1000: i32)
pub fn scale_1000(&self, scale_1000: i32)
current scale
This events describes the scale of the head in the global compositor space multiplied by 1000 for additional precision.
It is only sent if the output is enabled.
Sourcepub fn mirroring(&self, name: Option<String>)
pub fn mirroring(&self, name: Option<String>)
mirroring other output
This events describes that the head is mirroring another.
In these cases name
contains the unique name of the matching zwlr_output_head_v1
.
If the name is null, no head is being mirrored onto this one.
For mirrored heads the position
-event is meaningless.
It is only sent if the output is enabled.
Sourcepub fn adaptive_sync_available(&self, available: AdaptiveSyncAvailability)
pub fn adaptive_sync_available(&self, available: AdaptiveSyncAvailability)
is adaptive_sync available for this head
This events describes if adaptive_sync is available for this head.
It is only sent if the output is enabled.
Sourcepub fn adaptive_sync_ext(&self, state: AdaptiveSyncStateExt)
pub fn adaptive_sync_ext(&self, state: AdaptiveSyncStateExt)
current adaptive_sync state
This events describes the adaptive_sync state of this head.
It is only sent if the output is enabled.
Sourcepub fn xwayland_primary(&self, state: u32)
pub fn xwayland_primary(&self, state: u32)
is this head configured as the primary for xwayland
This event describes if this head is advertised as the primary output via randr to Xwayland.
At most one output is marked primary, but it is not guaranteed that any output is marked. It is only sent if the output is enabled.
Trait Implementations§
Source§impl Borrow<ObjectId> for ZcosmicOutputHeadV1
impl Borrow<ObjectId> for ZcosmicOutputHeadV1
Source§impl Clone for ZcosmicOutputHeadV1
impl Clone for ZcosmicOutputHeadV1
Source§fn clone(&self) -> ZcosmicOutputHeadV1
fn clone(&self) -> ZcosmicOutputHeadV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ZcosmicOutputHeadV1
impl Debug for ZcosmicOutputHeadV1
Source§impl Hash for ZcosmicOutputHeadV1
impl Hash for ZcosmicOutputHeadV1
Source§impl PartialEq for ZcosmicOutputHeadV1
impl PartialEq for ZcosmicOutputHeadV1
Source§impl Resource for ZcosmicOutputHeadV1
impl Resource for ZcosmicOutputHeadV1
Source§fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
Source§fn handle(&self) -> &WeakHandle
fn handle(&self) -> &WeakHandle
Source§fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
Source§fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
Source§fn parse_request(
conn: &DisplayHandle,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Request), DispatchError>
fn parse_request( conn: &DisplayHandle, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Request), DispatchError>
Source§fn write_event<'a>(
&self,
conn: &DisplayHandle,
msg: Self::Event<'a>,
) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
fn write_event<'a>( &self, conn: &DisplayHandle, msg: Self::Event<'a>, ) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
Source§fn is_alive(&self) -> bool
fn is_alive(&self) -> bool
impl Eq for ZcosmicOutputHeadV1
Auto Trait Implementations§
impl Freeze for ZcosmicOutputHeadV1
impl !RefUnwindSafe for ZcosmicOutputHeadV1
impl Send for ZcosmicOutputHeadV1
impl Sync for ZcosmicOutputHeadV1
impl Unpin for ZcosmicOutputHeadV1
impl !UnwindSafe for ZcosmicOutputHeadV1
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.