HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::application_delegate Class Referenceabstract

#include <ttauri/application_delegate.hpp>

Public Member Functions

virtual void init (application &self)
 
virtual void deinit (application &self)
 
virtual version application_version (application &self) const noexcept=0
 
virtual datum configuration (application &self, int argc, char *argv[]) const noexcept
 
virtual std::weak_ptr< audio_system_delegateaudio_system_delegate (application &self) noexcept
 The delegate to be used for the audio system.
 
virtual std::weak_ptr< gui_system_delegategui_system_delegate (application &self) noexcept
 The delegate to be used for the gui system.
 
virtual std::optional< int > main (application &self)=0
 Initialize the application.
 

Detailed Description

application Delegate.

Can be subclasses by the actual application to be called when certain events happen.

Member Function Documentation

◆ application_version()

virtual version tt::application_delegate::application_version ( application & self) const
pure virtualnoexcept

Called when an application name is needed.

◆ audio_system_delegate()

virtual std::weak_ptr< audio_system_delegate > tt::application_delegate::audio_system_delegate ( application & self)
inlinevirtualnoexcept

The delegate to be used for the audio system.

Returns
The delegate to be used for the audio system, or nullptr if the audio system should not be initialized.

◆ configuration()

virtual datum tt::application_delegate::configuration ( application & self,
int argc,
char * argv[] ) const
inlinevirtualnoexcept

Return the possible command line argument options.

◆ gui_system_delegate()

virtual std::weak_ptr< gui_system_delegate > tt::application_delegate::gui_system_delegate ( application & self)
inlinevirtualnoexcept

The delegate to be used for the gui system.

Returns
The delegate to be used for the gui system, or nullptr if the gui system should not be initialized.

◆ main()

virtual std::optional< int > tt::application_delegate::main ( application & self)
pure virtual

Initialize the application.

Called right before the application loop is started.

Returns
An exit value, or empty to run the main-loop.

The documentation for this class was generated from the following file: