HISE Docs

ControlledObject

A base class for all objects that need access to a MainController .
If you want to have access to the main controller object, derive the class from this object and pass a pointer to the MainController instance in the constructor.

Class Hierarchy

Derived Classes

Class methods

ControlledObject

ControlledObject(MainController *m, bool notifyOnShutdown=false)

Creates a new ControlledObject. The MainController must be supplied.

mainControllerIsDeleted

void mainControllerIsDeleted()

Overwrite this and make sure that it stops accessing the main controller.

getMainController

const MainController * getMainController() const noexcept

Provides read-only access to the main controller.

getMainController

MainController * getMainController() noexcept

Provides write access to the main controller. Use this if you want to make changes.