pub struct CaptureParams {
pub encode_png: bool,
}Expand description
Parameters for one capture readback.
The default requests PNG encoding in addition to the tight RGBA buffer.
§Examples
use ailloli_ui_render_wgpu::CaptureParams;
let params = CaptureParams::default();
assert!(params.encode_png);Fields§
§encode_png: boolWhether to populate CapturedFrame::png_data with an RGBA8 PNG.
Trait Implementations§
Source§impl Clone for CaptureParams
impl Clone for CaptureParams
Source§fn clone(&self) -> CaptureParams
fn clone(&self) -> CaptureParams
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 CaptureParams
impl Debug for CaptureParams
Source§impl Default for CaptureParams
impl Default for CaptureParams
Source§impl PartialEq for CaptureParams
impl PartialEq for CaptureParams
impl Copy for CaptureParams
impl Eq for CaptureParams
impl StructuralPartialEq for CaptureParams
Auto Trait Implementations§
impl Freeze for CaptureParams
impl RefUnwindSafe for CaptureParams
impl Send for CaptureParams
impl Sync for CaptureParams
impl Unpin for CaptureParams
impl UnwindSafe for CaptureParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().