Trait INameSpaceTreeControlEvents_Impl
pub trait INameSpaceTreeControlEvents_Impl: IUnknownImpl {
Show 18 methods
// Required methods
fn OnItemClick(
&self,
psi: Ref<'_, IShellItem>,
nstcehittest: u32,
nstceclicktype: u32,
) -> Result<()>;
fn OnPropertyItemCommit(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnItemStateChanging(
&self,
psi: Ref<'_, IShellItem>,
nstcismask: u32,
nstcisstate: u32,
) -> Result<()>;
fn OnItemStateChanged(
&self,
psi: Ref<'_, IShellItem>,
nstcismask: u32,
nstcisstate: u32,
) -> Result<()>;
fn OnSelectionChanged(
&self,
psiaselection: Ref<'_, IShellItemArray>,
) -> Result<()>;
fn OnKeyboardInput(
&self,
umsg: u32,
wparam: WPARAM,
lparam: LPARAM,
) -> Result<()>;
fn OnBeforeExpand(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnAfterExpand(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnBeginLabelEdit(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnEndLabelEdit(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnGetToolTip(
&self,
psi: Ref<'_, IShellItem>,
psztip: PWSTR,
cchtip: i32,
) -> Result<()>;
fn OnBeforeItemDelete(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnItemAdded(&self, psi: Ref<'_, IShellItem>, fisroot: BOOL) -> Result<()>;
fn OnItemDeleted(
&self,
psi: Ref<'_, IShellItem>,
fisroot: BOOL,
) -> Result<()>;
fn OnBeforeContextMenu(
&self,
psi: Ref<'_, IShellItem>,
riid: *const GUID,
ppv: *mut *mut c_void,
) -> Result<()>;
fn OnAfterContextMenu(
&self,
psi: Ref<'_, IShellItem>,
pcmin: Ref<'_, IContextMenu>,
riid: *const GUID,
ppv: *mut *mut c_void,
) -> Result<()>;
fn OnBeforeStateImageChange(&self, psi: Ref<'_, IShellItem>) -> Result<()>;
fn OnGetDefaultIconIndex(
&self,
psi: Ref<'_, IShellItem>,
pidefaulticon: *mut i32,
piopenicon: *mut i32,
) -> Result<()>;
}
Required Methods§
fn OnItemClick( &self, psi: Ref<'_, IShellItem>, nstcehittest: u32, nstceclicktype: u32, ) -> Result<()>
fn OnPropertyItemCommit(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnItemStateChanging( &self, psi: Ref<'_, IShellItem>, nstcismask: u32, nstcisstate: u32, ) -> Result<()>
fn OnItemStateChanged( &self, psi: Ref<'_, IShellItem>, nstcismask: u32, nstcisstate: u32, ) -> Result<()>
fn OnSelectionChanged( &self, psiaselection: Ref<'_, IShellItemArray>, ) -> Result<()>
fn OnKeyboardInput( &self, umsg: u32, wparam: WPARAM, lparam: LPARAM, ) -> Result<()>
fn OnBeforeExpand(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnAfterExpand(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnBeginLabelEdit(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnEndLabelEdit(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnGetToolTip( &self, psi: Ref<'_, IShellItem>, psztip: PWSTR, cchtip: i32, ) -> Result<()>
fn OnBeforeItemDelete(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnItemAdded(&self, psi: Ref<'_, IShellItem>, fisroot: BOOL) -> Result<()>
fn OnItemDeleted(&self, psi: Ref<'_, IShellItem>, fisroot: BOOL) -> Result<()>
fn OnBeforeContextMenu( &self, psi: Ref<'_, IShellItem>, riid: *const GUID, ppv: *mut *mut c_void, ) -> Result<()>
fn OnAfterContextMenu( &self, psi: Ref<'_, IShellItem>, pcmin: Ref<'_, IContextMenu>, riid: *const GUID, ppv: *mut *mut c_void, ) -> Result<()>
fn OnBeforeStateImageChange(&self, psi: Ref<'_, IShellItem>) -> Result<()>
fn OnGetDefaultIconIndex( &self, psi: Ref<'_, IShellItem>, pidefaulticon: *mut i32, piopenicon: *mut i32, ) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.