v2.48
_IApplicationEvents Interface Reference

Represents a handler for application events. More...

Public Member Functions

HRESULT OnActiveViewChanged ([in] int activatedViewId)
 Handles the active view changed event. It is impossible to change active view in the handler of this event.
HRESULT OnBeforeApplicationClose ([in] IApplicationCloseEvent *pEvent)
 Handles before the application close event.
HRESULT OnBeforeProjectClose ([in] IProjectCloseEvent *pEvent)
 Handles before the project close event.
HRESULT OnBeforeViewClose ([in] int closingViewId)
 Handles the before view close event.
HRESULT OnProjectClosed ()
 Handles the project close event.
HRESULT OnProjectCreated ()
 This event is raised after the Renga project has been created.
HRESULT OnProjectOpened ([in] BSTR filePath_)
 This event is raised after the Renga project has been opened.
HRESULT OnProjectSaved ([in] BSTR filePath_)
 This event is raised after the Renga project has been saved.
HRESULT OnViewClosed ([in] int closedViewId)
 Handles the view closed event.

Detailed Description

Represents a handler for application events.

See also
How to handle events, IApplication

Member Function Documentation

◆ OnActiveViewChanged()

HRESULT OnActiveViewChanged ( [in] int activatedViewId)

Handles the active view changed event. It is impossible to change active view in the handler of this event.

Note
This event is also raised when project has been opened or created, but it is not raised when project has been closed.
Parameters
[in]activatedViewIdThe Id of activated view
See also
IApplication::ActiveView

◆ OnBeforeApplicationClose()

HRESULT OnBeforeApplicationClose ( [in] IApplicationCloseEvent * pEvent)

Handles before the application close event.

See also
IApplication::Quit

◆ OnBeforeProjectClose()

HRESULT OnBeforeProjectClose ( [in] IProjectCloseEvent * pEvent)

Handles before the project close event.

See also
IApplication::CloseProject

◆ OnBeforeViewClose()

HRESULT OnBeforeViewClose ( [in] int closingViewId)

Handles the before view close event.

Parameters
[in]closingViewIdThe Id of closing view
See also
IApplication::CloseView

◆ OnProjectClosed()

HRESULT OnProjectClosed ( )

Handles the project close event.

See also
IApplication::CloseProject

◆ OnProjectCreated()

HRESULT OnProjectCreated ( )

This event is raised after the Renga project has been created.

See also
IApplication::CreateProject

◆ OnProjectOpened()

HRESULT OnProjectOpened ( [in] BSTR filePath_)

This event is raised after the Renga project has been opened.

Parameters
[in]filePath_Path of the opened project.
See also
IApplication::OpenProject

◆ OnProjectSaved()

HRESULT OnProjectSaved ( [in] BSTR filePath_)

This event is raised after the Renga project has been saved.

Parameters
[in]filePath_Path of the saved project.
See also
IProject::Save

◆ OnViewClosed()

HRESULT OnViewClosed ( [in] int closedViewId)

Handles the view closed event.

Note
When closing the active view, this event will be raised before active view changed event.
Parameters
[in]closedViewIdThe Id of closed view
See also
IApplication::CloseView