Trait _AppEvents_Impl
pub trait _AppEvents_Impl: IDispatch_Impl {
// Required methods
fn OnQuit(&self, application: Ref<'_, _Application>) -> Result<()>;
fn OnDocumentOpen(
&self,
document: Ref<'_, Document>,
new: BOOL,
) -> Result<()>;
fn OnDocumentClose(&self, document: Ref<'_, Document>) -> Result<()>;
fn OnSnapInAdded(
&self,
document: Ref<'_, Document>,
snapin: Ref<'_, SnapIn>,
) -> Result<()>;
fn OnSnapInRemoved(
&self,
document: Ref<'_, Document>,
snapin: Ref<'_, SnapIn>,
) -> Result<()>;
fn OnNewView(&self, view: Ref<'_, View>) -> Result<()>;
fn OnViewClose(&self, view: Ref<'_, View>) -> Result<()>;
fn OnViewChange(
&self,
view: Ref<'_, View>,
newownernode: Ref<'_, Node>,
) -> Result<()>;
fn OnSelectionChange(
&self,
view: Ref<'_, View>,
newnodes: Ref<'_, Nodes>,
) -> Result<()>;
fn OnContextMenuExecuted(&self, menuitem: Ref<'_, MenuItem>) -> Result<()>;
fn OnToolbarButtonClicked(&self) -> Result<()>;
fn OnListUpdated(&self, view: Ref<'_, View>) -> Result<()>;
}
Required Methods§
fn OnQuit(&self, application: Ref<'_, _Application>) -> Result<()>
fn OnDocumentOpen(&self, document: Ref<'_, Document>, new: BOOL) -> Result<()>
fn OnDocumentClose(&self, document: Ref<'_, Document>) -> Result<()>
fn OnSnapInAdded( &self, document: Ref<'_, Document>, snapin: Ref<'_, SnapIn>, ) -> Result<()>
fn OnSnapInRemoved( &self, document: Ref<'_, Document>, snapin: Ref<'_, SnapIn>, ) -> Result<()>
fn OnNewView(&self, view: Ref<'_, View>) -> Result<()>
fn OnViewClose(&self, view: Ref<'_, View>) -> Result<()>
fn OnViewChange( &self, view: Ref<'_, View>, newownernode: Ref<'_, Node>, ) -> Result<()>
fn OnSelectionChange( &self, view: Ref<'_, View>, newnodes: Ref<'_, Nodes>, ) -> Result<()>
fn OnContextMenuExecuted(&self, menuitem: Ref<'_, MenuItem>) -> Result<()>
fn OnToolbarButtonClicked(&self) -> Result<()>
fn OnListUpdated(&self, view: Ref<'_, View>) -> 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.