Struct IOleObject
pub struct IOleObject(/* private fields */);
Implementations§
§impl IOleObject
impl IOleObject
pub unsafe fn SetClientSite<P0>(&self, pclientsite: P0) -> Result<()>where
P0: Param<IOleClientSite>,
pub unsafe fn GetClientSite(&self) -> Result<IOleClientSite>
pub unsafe fn SetHostNames<P0, P1>(
&self,
szcontainerapp: P0,
szcontainerobj: P1,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<PCWSTR>,
pub unsafe fn Close(&self, dwsaveoption: OLECLOSE) -> Result<()>
pub unsafe fn SetMoniker<P1>(
&self,
dwwhichmoniker: OLEWHICHMK,
pmk: P1,
) -> Result<()>where
P1: Param<IMoniker>,
pub unsafe fn GetMoniker( &self, dwassign: OLEGETMONIKER, dwwhichmoniker: OLEWHICHMK, ) -> Result<IMoniker>
pub unsafe fn InitFromData<P0>(
&self,
pdataobject: P0,
fcreation: bool,
dwreserved: u32,
) -> Result<()>where
P0: Param<IDataObject>,
pub unsafe fn GetClipboardData(&self, dwreserved: u32) -> Result<IDataObject>
pub unsafe fn DoVerb<P2>(
&self,
iverb: i32,
lpmsg: *const MSG,
pactivesite: P2,
lindex: i32,
hwndparent: HWND,
lprcposrect: *const RECT,
) -> Result<()>where
P2: Param<IOleClientSite>,
pub unsafe fn EnumVerbs(&self) -> Result<IEnumOLEVERB>
pub unsafe fn Update(&self) -> Result<()>
pub unsafe fn IsUpToDate(&self) -> Result<()>
pub unsafe fn GetUserClassID(&self) -> Result<GUID>
pub unsafe fn GetUserType(&self, dwformoftype: USERCLASSTYPE) -> Result<PWSTR>
pub unsafe fn SetExtent( &self, dwdrawaspect: DVASPECT, psizel: *const SIZE, ) -> Result<()>
pub unsafe fn GetExtent(&self, dwdrawaspect: DVASPECT) -> Result<SIZE>
pub unsafe fn Advise<P0>(&self, padvsink: P0) -> Result<u32>where
P0: Param<IAdviseSink>,
pub unsafe fn Unadvise(&self, dwconnection: u32) -> Result<()>
pub unsafe fn EnumAdvise(&self) -> Result<IEnumSTATDATA>
pub unsafe fn GetMiscStatus(&self, dwaspect: DVASPECT) -> Result<OLEMISC>
pub unsafe fn SetColorScheme(&self, plogpal: *const LOGPALETTE) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for IOleObject
impl CanInto<IUnknown> for IOleObject
§impl Clone for IOleObject
impl Clone for IOleObject
§fn clone(&self) -> IOleObject
fn clone(&self) -> IOleObject
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 IOleObject
impl Debug for IOleObject
§impl From<&IOleObject> for &IUnknown
impl From<&IOleObject> for &IUnknown
§fn from(value: &IOleObject) -> Self
fn from(value: &IOleObject) -> Self
Converts to this type from the input type.
§impl From<IOleObject> for IUnknown
impl From<IOleObject> for IUnknown
§fn from(value: IOleObject) -> Self
fn from(value: IOleObject) -> Self
Converts to this type from the input type.
§impl Interface for IOleObject
impl Interface for IOleObject
§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 IOleObject
impl PartialEq for IOleObject
impl Eq for IOleObject
impl StructuralPartialEq for IOleObject
Auto Trait Implementations§
impl Freeze for IOleObject
impl RefUnwindSafe for IOleObject
impl !Send for IOleObject
impl !Sync for IOleObject
impl Unpin for IOleObject
impl UnwindSafe for IOleObject
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