Struct IDesktopWallpaper
pub struct IDesktopWallpaper(/* private fields */);
Implementations§
§impl IDesktopWallpaper
impl IDesktopWallpaper
pub unsafe fn SetWallpaper<P0, P1>(
&self,
monitorid: P0,
wallpaper: P1,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn GetWallpaper<P0>(&self, monitorid: P0) -> Result<PWSTR>where
P0: Param<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: Param<PCWSTR>,
pub unsafe fn SetBackgroundColor(&self, color: COLORREF) -> Result<()>
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: Param<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: Param<PCWSTR>,
pub unsafe fn GetStatus(&self) -> Result<DESKTOP_SLIDESHOW_STATE>
pub unsafe fn Enable(&self, enable: bool) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IDesktopWallpaper
impl CanInto<IUnknown> for IDesktopWallpaper
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§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> 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