pub struct CaptureScreenshotParamsBuilder { /* private fields */ }
Implementations§
source§impl CaptureScreenshotParamsBuilder
impl CaptureScreenshotParamsBuilder
pub fn format( self, format: impl Into<CaptureScreenshotFormat> ) -> CaptureScreenshotParamsBuilder
pub fn quality(self, quality: impl Into<i64>) -> CaptureScreenshotParamsBuilder
pub fn clip(self, clip: impl Into<Viewport>) -> CaptureScreenshotParamsBuilder
pub fn from_surface( self, from_surface: impl Into<bool> ) -> CaptureScreenshotParamsBuilder
pub fn capture_beyond_viewport( self, capture_beyond_viewport: impl Into<bool> ) -> CaptureScreenshotParamsBuilder
pub fn build(self) -> CaptureScreenshotParams
Trait Implementations§
source§impl Clone for CaptureScreenshotParamsBuilder
impl Clone for CaptureScreenshotParamsBuilder
source§fn clone(&self) -> CaptureScreenshotParamsBuilder
fn clone(&self) -> CaptureScreenshotParamsBuilder
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 Default for CaptureScreenshotParamsBuilder
impl Default for CaptureScreenshotParamsBuilder
source§fn default() -> CaptureScreenshotParamsBuilder
fn default() -> CaptureScreenshotParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptureScreenshotParamsBuilder
impl RefUnwindSafe for CaptureScreenshotParamsBuilder
impl Send for CaptureScreenshotParamsBuilder
impl Sync for CaptureScreenshotParamsBuilder
impl Unpin for CaptureScreenshotParamsBuilder
impl UnwindSafe for CaptureScreenshotParamsBuilder
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