pub struct IDesktopWallpaper(/* private fields */);
Implementations§
Source§impl IDesktopWallpaper
impl IDesktopWallpaper
pub unsafe fn SetWallpaper<'a>( &self, monitorid: impl IntoParam<'a, PWSTR>, wallpaper: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn GetWallpaper<'a>( &self, monitorid: impl IntoParam<'a, PWSTR>, ) -> Result<PWSTR>
pub unsafe fn GetMonitorDevicePathAt(&self, monitorindex: u32) -> Result<PWSTR>
pub unsafe fn GetMonitorDevicePathCount(&self) -> Result<u32>
pub unsafe fn GetMonitorRECT<'a>( &self, monitorid: impl IntoParam<'a, PWSTR>, ) -> Result<RECT>
pub unsafe fn SetBackgroundColor(&self, color: u32) -> Result<()>
pub unsafe fn GetBackgroundColor(&self) -> Result<u32>
pub unsafe fn SetPosition( &self, position: DESKTOP_WALLPAPER_POSITION, ) -> Result<()>
pub unsafe fn GetPosition(&self) -> Result<DESKTOP_WALLPAPER_POSITION>
pub unsafe fn SetSlideshow<'a>( &self, items: impl IntoParam<'a, IShellItemArray>, ) -> Result<()>
pub unsafe fn GetSlideshow(&self) -> Result<IShellItemArray>
pub unsafe fn SetSlideshowOptions( &self, options: DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: u32, ) -> Result<()>
pub unsafe fn GetSlideshowOptions( &self, options: *mut DESKTOP_SLIDESHOW_OPTIONS, slideshowtick: *mut u32, ) -> Result<()>
pub unsafe fn AdvanceSlideshow<'a>( &self, monitorid: impl IntoParam<'a, PWSTR>, direction: DESKTOP_SLIDESHOW_DIRECTION, ) -> Result<()>
pub unsafe fn GetStatus(&self) -> Result<DESKTOP_SLIDESHOW_STATE>
pub unsafe fn Enable<'a>(&self, enable: impl IntoParam<'a, BOOL>) -> Result<()>
Trait Implementations§
Source§impl Clone for IDesktopWallpaper
impl Clone for IDesktopWallpaper
Source§fn clone(&self) -> IDesktopWallpaper
fn clone(&self) -> IDesktopWallpaper
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 IDesktopWallpaper
impl Debug for IDesktopWallpaper
Source§impl From<&IDesktopWallpaper> for IUnknown
impl From<&IDesktopWallpaper> for IUnknown
Source§fn from(value: &IDesktopWallpaper) -> Self
fn from(value: &IDesktopWallpaper) -> Self
Converts to this type from the input type.
Source§impl From<IDesktopWallpaper> for IUnknown
impl From<IDesktopWallpaper> for IUnknown
Source§fn from(value: IDesktopWallpaper) -> Self
fn from(value: IDesktopWallpaper) -> Self
Converts to this type from the input type.
Source§impl Interface for IDesktopWallpaper
impl Interface for IDesktopWallpaper
const IID: Guid
type Vtable = IDesktopWallpaper_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for IDesktopWallpaper
impl PartialEq for IDesktopWallpaper
impl Eq for IDesktopWallpaper
impl StructuralPartialEq for IDesktopWallpaper
Auto Trait Implementations§
impl Freeze for IDesktopWallpaper
impl RefUnwindSafe for IDesktopWallpaper
impl !Send for IDesktopWallpaper
impl !Sync for IDesktopWallpaper
impl Unpin for IDesktopWallpaper
impl UnwindSafe for IDesktopWallpaper
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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