Struct ashpd::desktop::wallpaper::WallpaperProxy [−][src]
pub struct WallpaperProxy<'a>(_);
Expand description
The interface lets sandboxed applications set the user’s desktop background picture.
Implementations
Create a new instance of WallpaperProxy
.
Sets the lock-screen, background or both wallpaper’s from a file descriptor.
Arguments
identifier
- Identifier for the application window.fd
- The wallpaper file description.show_preview
- Whether to show a preview of the picture.set_on
- Where to set the wallpaper on.
pub async fn set_wallpaper_uri(
&self,
identifier: WindowIdentifier,
uri: &str,
show_preview: bool,
set_on: SetOn
) -> Result<(), Error>
pub async fn set_wallpaper_uri(
&self,
identifier: WindowIdentifier,
uri: &str,
show_preview: bool,
set_on: SetOn
) -> Result<(), Error>
Sets the lock-screen, background or both wallpaper’s from an URI.
Arguments
identifier
- Identifier for the application window.uri
- The wallpaper URI.show_preview
- Whether to show a preview of the picture.set_on
- Where to set the wallpaper on.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for WallpaperProxy<'a>
impl<'a> Send for WallpaperProxy<'a>
impl<'a> Sync for WallpaperProxy<'a>
impl<'a> Unpin for WallpaperProxy<'a>
impl<'a> !UnwindSafe for WallpaperProxy<'a>