pub struct IFileDialog2(/* private fields */);
Implementations§
Source§impl IFileDialog2
impl IFileDialog2
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<()>
pub unsafe fn SetCancelButtonLabel<'a>( &self, pszlabel: impl IntoParam<'a, PWSTR>, ) -> Result<()>
Trait Implementations§
Source§impl Clone for IFileDialog2
impl Clone for IFileDialog2
Source§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 moreSource§impl Debug for IFileDialog2
impl Debug for IFileDialog2
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<&IFileDialog2> for IModalWindow
impl From<&IFileDialog2> for IModalWindow
Source§fn from(value: &IFileDialog2) -> Self
fn from(value: &IFileDialog2) -> Self
Converts to this type from the input type.
Source§impl From<&IFileDialog2> for IUnknown
impl From<&IFileDialog2> for IUnknown
Source§fn from(value: &IFileDialog2) -> Self
fn from(value: &IFileDialog2) -> 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<IFileDialog2> for IModalWindow
impl From<IFileDialog2> for IModalWindow
Source§fn from(value: IFileDialog2) -> Self
fn from(value: IFileDialog2) -> Self
Converts to this type from the input type.
Source§impl From<IFileDialog2> for IUnknown
impl From<IFileDialog2> for IUnknown
Source§fn from(value: IFileDialog2) -> Self
fn from(value: IFileDialog2) -> Self
Converts to this type from the input type.
Source§impl Interface for IFileDialog2
impl Interface for IFileDialog2
const IID: Guid
type Vtable = IFileDialog2_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 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> 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