Struct wayland_protocols::wlr::unstable::screencopy::v1::client::zwlr_screencopy_frame_v1::ZwlrScreencopyFrameV1
source · pub struct ZwlrScreencopyFrameV1(/* private fields */);
Implementations§
source§impl ZwlrScreencopyFrameV1
impl ZwlrScreencopyFrameV1
sourcepub fn copy(&self, buffer: &WlBuffer)
pub fn copy(&self, buffer: &WlBuffer)
copy the frame
Copy the frame to the supplied buffer. The buffer must have a the correct size, see zwlr_screencopy_frame_v1.buffer and zwlr_screencopy_frame_v1.linux_dmabuf. The buffer needs to have a supported format.
If the frame is successfully copied, a “flags” and a “ready” events are sent. Otherwise, a “failed” event is sent.
sourcepub fn destroy(&self)
pub fn destroy(&self)
delete this object, used or not
Destroys the frame. This request can be sent at any time by the client.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcepub fn copy_with_damage(&self, buffer: &WlBuffer)
pub fn copy_with_damage(&self, buffer: &WlBuffer)
copy the frame when it’s damaged
Same as copy, except it waits until there is damage to copy.
Only available since version 2 of the interface.
Trait Implementations§
source§impl Clone for ZwlrScreencopyFrameV1
impl Clone for ZwlrScreencopyFrameV1
source§fn clone(&self) -> ZwlrScreencopyFrameV1
fn clone(&self) -> ZwlrScreencopyFrameV1
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ZwlrScreencopyFrameV1
impl Debug for ZwlrScreencopyFrameV1
source§impl From<ZwlrScreencopyFrameV1> for Proxy<ZwlrScreencopyFrameV1>
impl From<ZwlrScreencopyFrameV1> for Proxy<ZwlrScreencopyFrameV1>
source§fn from(value: ZwlrScreencopyFrameV1) -> Self
fn from(value: ZwlrScreencopyFrameV1) -> Self
Converts to this type from the input type.
source§impl Interface for ZwlrScreencopyFrameV1
impl Interface for ZwlrScreencopyFrameV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
source§impl PartialEq for ZwlrScreencopyFrameV1
impl PartialEq for ZwlrScreencopyFrameV1
source§fn 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 ==
.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§
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
Mutably borrows from an owned value. Read more