Struct windows::Win32::UI::Shell::IDesktopWallpaper
pub struct IDesktopWallpaper(/* private fields */);
Implementations§
§impl IDesktopWallpaper
impl IDesktopWallpaper
pub unsafe fn SetWallpaper<P0, P1>( &self, monitorid: P0, wallpaper: P1 ) -> Result<()>
pub unsafe fn GetWallpaper<P0>(&self, monitorid: P0) -> Result<PWSTR>where
P0: IntoParam<PCWSTR>,
pub unsafe fn GetMonitorDevicePathAt(&self, monitorindex: u32) -> Result<PWSTR>
pub unsafe fn GetMonitorDevicePathCount(&self) -> Result<u32>
pub unsafe fn GetMonitorRECT<P0>(&self, monitorid: P0) -> Result<RECT>where
P0: IntoParam<PCWSTR>,
pub unsafe fn SetBackgroundColor<P0>(&self, color: P0) -> Result<()>where
P0: IntoParam<COLORREF>,
pub unsafe fn GetBackgroundColor(&self) -> Result<COLORREF>
pub unsafe fn SetPosition( &self, position: DESKTOP_WALLPAPER_POSITION ) -> Result<()>
pub unsafe fn GetPosition(&self) -> Result<DESKTOP_WALLPAPER_POSITION>
pub unsafe fn SetSlideshow<P0>(&self, items: P0) -> Result<()>where
P0: IntoParam<IShellItemArray>,
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<P0>(
&self,
monitorid: P0,
direction: DESKTOP_SLIDESHOW_DIRECTION
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn GetStatus(&self) -> Result<DESKTOP_SLIDESHOW_STATE>
pub unsafe fn Enable<P0>(&self, enable: P0) -> Result<()>where
P0: IntoParam<BOOL>,
Trait Implementations§
§impl Clone for IDesktopWallpaper
impl Clone for IDesktopWallpaper
§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 more§impl Debug for IDesktopWallpaper
impl Debug for IDesktopWallpaper
§impl From<&IDesktopWallpaper> for &IUnknown
impl From<&IDesktopWallpaper> for &IUnknown
§fn from(value: &IDesktopWallpaper) -> Self
fn from(value: &IDesktopWallpaper) -> Self
Converts to this type from the input type.
§impl From<IDesktopWallpaper> for IUnknown
impl From<IDesktopWallpaper> for IUnknown
§fn from(value: IDesktopWallpaper) -> Self
fn from(value: IDesktopWallpaper) -> Self
Converts to this type from the input type.
§impl Interface for IDesktopWallpaper
impl Interface for IDesktopWallpaper
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IDesktopWallpaper
impl PartialEq for IDesktopWallpaper
§fn eq(&self, other: &IDesktopWallpaper) -> bool
fn eq(&self, other: &IDesktopWallpaper) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDesktopWallpaper
impl StructuralPartialEq for IDesktopWallpaper
Auto Trait Implementations§
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> 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