Struct IFileDialog
pub struct IFileDialog(/* private fields */);Implementations§
§impl IFileDialog
 
impl 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 IFileDialog2
 
impl CanInto<IFileDialog> for IFileDialog2
§impl CanInto<IFileDialog> for IFileOpenDialog
 
impl CanInto<IFileDialog> for IFileOpenDialog
§impl CanInto<IFileDialog> for IFileSaveDialog
 
impl CanInto<IFileDialog> for IFileSaveDialog
§impl CanInto<IModalWindow> for IFileDialog
 
impl CanInto<IModalWindow> for IFileDialog
§impl CanInto<IUnknown> for IFileDialog
 
impl CanInto<IUnknown> for IFileDialog
§impl Clone for IFileDialog
 
impl Clone for IFileDialog
§fn clone(&self) -> IFileDialog
 
fn clone(&self) -> IFileDialog
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 IFileDialog
 
impl Debug for IFileDialog
§impl Deref for IFileDialog
 
impl Deref for IFileDialog
§impl From<&IFileDialog> for &IModalWindow
 
impl From<&IFileDialog> for &IModalWindow
§fn from(value: &IFileDialog) -> Self
 
fn from(value: &IFileDialog) -> Self
Converts to this type from the input type.
§impl From<&IFileDialog> for &IUnknown
 
impl From<&IFileDialog> for &IUnknown
§fn from(value: &IFileDialog) -> Self
 
fn from(value: &IFileDialog) -> Self
Converts to this type from the input type.
§impl From<&IFileDialog2> for &IFileDialog
 
impl From<&IFileDialog2> for &IFileDialog
§fn from(value: &IFileDialog2) -> Self
 
fn from(value: &IFileDialog2) -> 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<&IFileSaveDialog> for &IFileDialog
 
impl From<&IFileSaveDialog> for &IFileDialog
§fn from(value: &IFileSaveDialog) -> Self
 
fn from(value: &IFileSaveDialog) -> Self
Converts to this type from the input type.
§impl From<IFileDialog> for IModalWindow
 
impl From<IFileDialog> for IModalWindow
§fn from(value: IFileDialog) -> Self
 
fn from(value: IFileDialog) -> Self
Converts to this type from the input type.
§impl From<IFileDialog> for IUnknown
 
impl From<IFileDialog> for IUnknown
§fn from(value: IFileDialog) -> Self
 
fn from(value: IFileDialog) -> Self
Converts to this type from the input type.
§impl From<IFileDialog2> for IFileDialog
 
impl From<IFileDialog2> for IFileDialog
§fn from(value: IFileDialog2) -> Self
 
fn from(value: IFileDialog2) -> 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<IFileSaveDialog> for IFileDialog
 
impl From<IFileSaveDialog> for IFileDialog
§fn from(value: IFileSaveDialog) -> Self
 
fn from(value: IFileSaveDialog) -> Self
Converts to this type from the input type.
§impl Interface for IFileDialog
 
impl Interface for IFileDialog
§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 IFileDialog
 
impl PartialEq for IFileDialog
impl Eq for IFileDialog
impl StructuralPartialEq for IFileDialog
Auto Trait Implementations§
impl Freeze for IFileDialog
impl RefUnwindSafe for IFileDialog
impl !Send for IFileDialog
impl !Sync for IFileDialog
impl Unpin for IFileDialog
impl UnwindSafe for IFileDialog
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