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