Struct ashpd::desktop::screenshot::ScreenshotProxy [−][src]
pub struct ScreenshotProxy<'a>(_);
Expand description
The interface lets sandboxed applications request a screenshot.
Implementations
Create a new instance of ScreenshotProxy
.
pub async fn screenshot(
&self,
identifier: WindowIdentifier,
interactive: bool,
modal: bool
) -> Result<Screenshot, Error>
pub async fn screenshot(
&self,
identifier: WindowIdentifier,
interactive: bool,
modal: bool
) -> Result<Screenshot, Error>
Takes a screenshot.
Arguments
identifier
- Identifier for the application window.interactive
- Sets whether the dialog should offer customization before a screenshot or not.modal
- Sets whether the dialog should be a modal.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ScreenshotProxy<'a>
impl<'a> Send for ScreenshotProxy<'a>
impl<'a> Sync for ScreenshotProxy<'a>
impl<'a> Unpin for ScreenshotProxy<'a>
impl<'a> !UnwindSafe for ScreenshotProxy<'a>