pub trait _AppEvents_Impl: Sized + IDispatch_Impl {
    // Required methods
    fn OnQuit(&self, application: Option<&_Application>) -> Result<()>;
    fn OnDocumentOpen(
        &self,
        document: Option<&Document>,
        new: BOOL
    ) -> Result<()>;
    fn OnDocumentClose(&self, document: Option<&Document>) -> Result<()>;
    fn OnSnapInAdded(
        &self,
        document: Option<&Document>,
        snapin: Option<&SnapIn>
    ) -> Result<()>;
    fn OnSnapInRemoved(
        &self,
        document: Option<&Document>,
        snapin: Option<&SnapIn>
    ) -> Result<()>;
    fn OnNewView(&self, view: Option<&View>) -> Result<()>;
    fn OnViewClose(&self, view: Option<&View>) -> Result<()>;
    fn OnViewChange(
        &self,
        view: Option<&View>,
        newownernode: Option<&Node>
    ) -> Result<()>;
    fn OnSelectionChange(
        &self,
        view: Option<&View>,
        newnodes: Option<&Nodes>
    ) -> Result<()>;
    fn OnContextMenuExecuted(&self, menuitem: Option<&MenuItem>) -> Result<()>;
    fn OnToolbarButtonClicked(&self) -> Result<()>;
    fn OnListUpdated(&self, view: Option<&View>) -> Result<()>;
}

Required Methods§

fn OnQuit(&self, application: Option<&_Application>) -> Result<()>

fn OnDocumentOpen(&self, document: Option<&Document>, new: BOOL) -> Result<()>

fn OnDocumentClose(&self, document: Option<&Document>) -> Result<()>

fn OnSnapInAdded( &self, document: Option<&Document>, snapin: Option<&SnapIn> ) -> Result<()>

fn OnSnapInRemoved( &self, document: Option<&Document>, snapin: Option<&SnapIn> ) -> Result<()>

fn OnNewView(&self, view: Option<&View>) -> Result<()>

fn OnViewClose(&self, view: Option<&View>) -> Result<()>

fn OnViewChange( &self, view: Option<&View>, newownernode: Option<&Node> ) -> Result<()>

fn OnSelectionChange( &self, view: Option<&View>, newnodes: Option<&Nodes> ) -> Result<()>

fn OnContextMenuExecuted(&self, menuitem: Option<&MenuItem>) -> Result<()>

fn OnToolbarButtonClicked(&self) -> Result<()>

fn OnListUpdated(&self, view: Option<&View>) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§