Struct IFileOpenDialog
pub struct IFileOpenDialog(/* private fields */);Implementations§
§impl IFileOpenDialog
 
impl IFileOpenDialog
pub unsafe fn GetResults(&self) -> Result<IShellItemArray>
pub unsafe fn GetSelectedItems(&self) -> Result<IShellItemArray>
Methods from Deref<Target = IFileDialog>§
pub unsafe fn SetFileTypes( &self, rgfilterspec: &[COMDLG_FILTERSPEC], ) -> Result<()>
pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> Result<()>
pub unsafe fn GetFileTypeIndex(&self) -> Result<u32>
pub unsafe fn Advise<P0>(&self, pfde: P0) -> Result<u32>where
    P0: Param<IFileDialogEvents>,
pub unsafe fn Unadvise(&self, dwcookie: u32) -> Result<()>
pub unsafe fn SetOptions(&self, fos: FILEOPENDIALOGOPTIONS) -> Result<()>
pub unsafe fn GetOptions(&self) -> Result<FILEOPENDIALOGOPTIONS>
pub unsafe fn SetDefaultFolder<P0>(&self, psi: P0) -> Result<()>where
    P0: Param<IShellItem>,
pub unsafe fn SetFolder<P0>(&self, psi: P0) -> Result<()>where
    P0: Param<IShellItem>,
pub unsafe fn GetFolder(&self) -> Result<IShellItem>
pub unsafe fn GetCurrentSelection(&self) -> Result<IShellItem>
pub unsafe fn SetFileName<P0>(&self, pszname: P0) -> Result<()>where
    P0: Param<PCWSTR>,
pub unsafe fn GetFileName(&self) -> Result<PWSTR>
pub unsafe fn SetTitle<P0>(&self, psztitle: P0) -> Result<()>where
    P0: Param<PCWSTR>,
pub unsafe fn SetOkButtonLabel<P0>(&self, psztext: P0) -> Result<()>where
    P0: Param<PCWSTR>,
pub unsafe fn SetFileNameLabel<P0>(&self, pszlabel: P0) -> Result<()>where
    P0: Param<PCWSTR>,
pub unsafe fn GetResult(&self) -> Result<IShellItem>
pub unsafe fn AddPlace<P0>(&self, psi: P0, fdap: FDAP) -> Result<()>where
    P0: Param<IShellItem>,
pub unsafe fn SetDefaultExtension<P0>(
    &self,
    pszdefaultextension: P0,
) -> Result<()>where
    P0: Param<PCWSTR>,
pub unsafe fn Close(&self, hr: HRESULT) -> Result<()>
pub unsafe fn SetClientGuid(&self, guid: *const GUID) -> Result<()>
pub unsafe fn ClearClientData(&self) -> Result<()>
pub unsafe fn SetFilter<P0>(&self, pfilter: P0) -> Result<()>where
    P0: Param<IShellItemFilter>,
Methods from Deref<Target = IModalWindow>§
Trait Implementations§
§impl CanInto<IFileDialog> for IFileOpenDialog
 
impl CanInto<IFileDialog> for IFileOpenDialog
§impl CanInto<IModalWindow> for IFileOpenDialog
 
impl CanInto<IModalWindow> for IFileOpenDialog
§impl CanInto<IUnknown> for IFileOpenDialog
 
impl CanInto<IUnknown> for IFileOpenDialog
§impl Clone for IFileOpenDialog
 
impl Clone for IFileOpenDialog
§fn clone(&self) -> IFileOpenDialog
 
fn clone(&self) -> IFileOpenDialog
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 IFileOpenDialog
 
impl Debug for IFileOpenDialog
§impl Deref for IFileOpenDialog
 
impl Deref for IFileOpenDialog
§impl From<&IFileOpenDialog> for &IFileDialog
 
impl From<&IFileOpenDialog> for &IFileDialog
§fn from(value: &IFileOpenDialog) -> Self
 
fn from(value: &IFileOpenDialog) -> Self
Converts to this type from the input type.
§impl From<&IFileOpenDialog> for &IModalWindow
 
impl From<&IFileOpenDialog> for &IModalWindow
§fn from(value: &IFileOpenDialog) -> Self
 
fn from(value: &IFileOpenDialog) -> Self
Converts to this type from the input type.
§impl From<&IFileOpenDialog> for &IUnknown
 
impl From<&IFileOpenDialog> for &IUnknown
§fn from(value: &IFileOpenDialog) -> Self
 
fn from(value: &IFileOpenDialog) -> Self
Converts to this type from the input type.
§impl From<IFileOpenDialog> for IFileDialog
 
impl From<IFileOpenDialog> for IFileDialog
§fn from(value: IFileOpenDialog) -> Self
 
fn from(value: IFileOpenDialog) -> Self
Converts to this type from the input type.
§impl From<IFileOpenDialog> for IModalWindow
 
impl From<IFileOpenDialog> for IModalWindow
§fn from(value: IFileOpenDialog) -> Self
 
fn from(value: IFileOpenDialog) -> Self
Converts to this type from the input type.
§impl From<IFileOpenDialog> for IUnknown
 
impl From<IFileOpenDialog> for IUnknown
§fn from(value: IFileOpenDialog) -> Self
 
fn from(value: IFileOpenDialog) -> Self
Converts to this type from the input type.
§impl Interface for IFileOpenDialog
 
impl Interface for IFileOpenDialog
§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 IFileOpenDialog
 
impl PartialEq for IFileOpenDialog
impl Eq for IFileOpenDialog
impl StructuralPartialEq for IFileOpenDialog
Auto Trait Implementations§
impl Freeze for IFileOpenDialog
impl RefUnwindSafe for IFileOpenDialog
impl !Send for IFileOpenDialog
impl !Sync for IFileOpenDialog
impl Unpin for IFileOpenDialog
impl UnwindSafe for IFileOpenDialog
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