Struct wayland_protocols::wlr::unstable::screencopy::v1::server::zwlr_screencopy_frame_v1::ZwlrScreencopyFrameV1
source · [−]pub struct ZwlrScreencopyFrameV1(_);
Implementations
sourceimpl ZwlrScreencopyFrameV1
impl ZwlrScreencopyFrameV1
sourcepub fn buffer(&self, format: Format, width: u32, height: u32, stride: u32)
pub fn buffer(&self, format: Format, width: u32, height: u32, stride: u32)
wl_shm buffer information
Provides information about wl_shm buffer parameters that need to be used for this frame. This event is sent once after the frame is created if wl_shm buffers are supported.
sourcepub fn flags(&self, flags: Flags)
pub fn flags(&self, flags: Flags)
frame flags
Provides flags about the frame. This event is sent once before the “ready” event.
sourcepub fn ready(&self, tv_sec_hi: u32, tv_sec_lo: u32, tv_nsec: u32)
pub fn ready(&self, tv_sec_hi: u32, tv_sec_lo: u32, tv_nsec: u32)
indicates frame is available for reading
Called as soon as the frame is copied, indicating it is available for reading. This event includes the time at which presentation happened at.
The timestamp is expressed as tv_sec_hi, tv_sec_lo, tv_nsec triples, each component being an unsigned 32-bit value. Whole seconds are in tv_sec which is a 64-bit value combined from tv_sec_hi and tv_sec_lo, and the additional fractional part in tv_nsec as nanoseconds. Hence, for valid timestamps tv_nsec must be in [0, 999999999]. The seconds part may have an arbitrary offset at start.
After receiving this event, the client should destroy the object.
sourcepub fn failed(&self)
pub fn failed(&self)
frame copy failed
This event indicates that the attempted frame copy has failed.
After receiving this event, the client should destroy the object.
sourcepub fn damage(&self, x: u32, y: u32, width: u32, height: u32)
pub fn damage(&self, x: u32, y: u32, width: u32, height: u32)
carries the coordinates of the damaged region
This event is sent right before the ready event when copy_with_damage is requested. It may be generated multiple times for each copy_with_damage request.
The arguments describe a box around an area that has changed since the last copy request that was derived from the current screencopy manager instance.
The union of all regions received between the call to copy_with_damage and a ready event is the total damage since the prior ready event.
Only available since version 2 of the interface.
sourcepub fn linux_dmabuf(&self, format: u32, width: u32, height: u32)
pub fn linux_dmabuf(&self, format: u32, width: u32, height: u32)
linux-dmabuf buffer information
Provides information about linux-dmabuf buffer parameters that need to be used for this frame. This event is sent once after the frame is created if linux-dmabuf buffers are supported.
Only available since version 3 of the interface.
sourcepub fn buffer_done(&self)
pub fn buffer_done(&self)
all buffer types reported
This event is sent once after all buffer events have been sent.
The client should proceed to create a buffer of one of the supported types, and send a “copy” request.
Only available since version 3 of the interface.
Trait Implementations
sourceimpl Clone for ZwlrScreencopyFrameV1
impl Clone for ZwlrScreencopyFrameV1
sourcefn clone(&self) -> ZwlrScreencopyFrameV1
fn clone(&self) -> ZwlrScreencopyFrameV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ZwlrScreencopyFrameV1
impl Debug for ZwlrScreencopyFrameV1
sourceimpl From<ZwlrScreencopyFrameV1> for Resource<ZwlrScreencopyFrameV1>
impl From<ZwlrScreencopyFrameV1> for Resource<ZwlrScreencopyFrameV1>
sourcefn from(value: ZwlrScreencopyFrameV1) -> Self
fn from(value: ZwlrScreencopyFrameV1) -> Self
Converts to this type from the input type.
sourceimpl Interface for ZwlrScreencopyFrameV1
impl Interface for ZwlrScreencopyFrameV1
sourcefn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
sourceimpl PartialEq<ZwlrScreencopyFrameV1> for ZwlrScreencopyFrameV1
impl PartialEq<ZwlrScreencopyFrameV1> for ZwlrScreencopyFrameV1
sourcefn eq(&self, other: &ZwlrScreencopyFrameV1) -> bool
fn eq(&self, other: &ZwlrScreencopyFrameV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for ZwlrScreencopyFrameV1
impl StructuralEq for ZwlrScreencopyFrameV1
impl StructuralPartialEq for ZwlrScreencopyFrameV1
Auto Trait Implementations
impl !RefUnwindSafe for ZwlrScreencopyFrameV1
impl Send for ZwlrScreencopyFrameV1
impl Sync for ZwlrScreencopyFrameV1
impl Unpin for ZwlrScreencopyFrameV1
impl !UnwindSafe for ZwlrScreencopyFrameV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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