pub struct IFileDialog(/* private fields */);
Implementations§
Source§impl IFileDialog
impl IFileDialog
pub unsafe fn Show<'a>(&self, hwndowner: impl IntoParam<'a, HWND>) -> Result<()>
pub unsafe fn SetFileTypes( &self, cfiletypes: u32, rgfilterspec: *const COMDLG_FILTERSPEC, ) -> Result<()>
pub unsafe fn SetFileTypeIndex(&self, ifiletype: u32) -> Result<()>
pub unsafe fn GetFileTypeIndex(&self) -> Result<u32>
pub unsafe fn Advise<'a>( &self, pfde: impl IntoParam<'a, IFileDialogEvents>, ) -> Result<u32>
pub unsafe fn Unadvise(&self, dwcookie: u32) -> Result<()>
pub unsafe fn SetOptions(&self, fos: u32) -> Result<()>
pub unsafe fn GetOptions(&self) -> Result<u32>
pub unsafe fn SetDefaultFolder<'a>( &self, psi: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn SetFolder<'a>( &self, psi: impl IntoParam<'a, IShellItem>, ) -> Result<()>
pub unsafe fn GetFolder(&self) -> Result<IShellItem>
pub unsafe fn GetCurrentSelection(&self) -> Result<IShellItem>
pub unsafe fn SetFileName<'a>( &self, pszname: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn GetFileName(&self) -> Result<PWSTR>
pub unsafe fn SetTitle<'a>( &self, psztitle: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn SetOkButtonLabel<'a>( &self, psztext: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn SetFileNameLabel<'a>( &self, pszlabel: impl IntoParam<'a, PWSTR>, ) -> Result<()>
pub unsafe fn GetResult(&self) -> Result<IShellItem>
pub unsafe fn AddPlace<'a>( &self, psi: impl IntoParam<'a, IShellItem>, fdap: FDAP, ) -> Result<()>
pub unsafe fn SetDefaultExtension<'a>( &self, pszdefaultextension: impl IntoParam<'a, PWSTR>, ) -> Result<()>
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<'a>( &self, pfilter: impl IntoParam<'a, IShellItemFilter>, ) -> Result<()>
Trait Implementations§
Source§impl Clone for IFileDialog
impl Clone for IFileDialog
Source§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 moreSource§impl Debug for IFileDialog
impl Debug for IFileDialog
Source§impl From<&IFileDialog> for IModalWindow
impl From<&IFileDialog> for IModalWindow
Source§fn from(value: &IFileDialog) -> Self
fn from(value: &IFileDialog) -> Self
Converts to this type from the input type.
Source§impl From<&IFileDialog> for IUnknown
impl From<&IFileDialog> for IUnknown
Source§fn from(value: &IFileDialog) -> Self
fn from(value: &IFileDialog) -> Self
Converts to this type from the input type.
Source§impl From<&IFileDialog2> for IFileDialog
impl From<&IFileDialog2> for IFileDialog
Source§fn from(value: &IFileDialog2) -> Self
fn from(value: &IFileDialog2) -> Self
Converts to this type from the input type.
Source§impl From<&IFileOpenDialog> for IFileDialog
impl From<&IFileOpenDialog> for IFileDialog
Source§fn from(value: &IFileOpenDialog) -> Self
fn from(value: &IFileOpenDialog) -> Self
Converts to this type from the input type.
Source§impl From<&IFileSaveDialog> for IFileDialog
impl From<&IFileSaveDialog> for IFileDialog
Source§fn from(value: &IFileSaveDialog) -> Self
fn from(value: &IFileSaveDialog) -> Self
Converts to this type from the input type.
Source§impl From<IFileDialog> for IModalWindow
impl From<IFileDialog> for IModalWindow
Source§fn from(value: IFileDialog) -> Self
fn from(value: IFileDialog) -> Self
Converts to this type from the input type.
Source§impl From<IFileDialog> for IUnknown
impl From<IFileDialog> for IUnknown
Source§fn from(value: IFileDialog) -> Self
fn from(value: IFileDialog) -> Self
Converts to this type from the input type.
Source§impl From<IFileDialog2> for IFileDialog
impl From<IFileDialog2> for IFileDialog
Source§fn from(value: IFileDialog2) -> Self
fn from(value: IFileDialog2) -> Self
Converts to this type from the input type.
Source§impl From<IFileOpenDialog> for IFileDialog
impl From<IFileOpenDialog> for IFileDialog
Source§fn from(value: IFileOpenDialog) -> Self
fn from(value: IFileOpenDialog) -> Self
Converts to this type from the input type.
Source§impl From<IFileSaveDialog> for IFileDialog
impl From<IFileSaveDialog> for IFileDialog
Source§fn from(value: IFileSaveDialog) -> Self
fn from(value: IFileSaveDialog) -> Self
Converts to this type from the input type.
Source§impl Interface for IFileDialog
impl Interface for IFileDialog
const IID: Guid
type Vtable = IFileDialog_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§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> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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