JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
ScopedJuceInitialiser_GUI Class Reference

A utility object that helps you initialise and shutdown Juce correctly using an RAII pattern. More...

List of all members.

Public Member Functions

 ScopedJuceInitialiser_GUI ()
 The constructor simply calls initialiseJuce_GUI().
 ~ScopedJuceInitialiser_GUI ()
 The destructor simply calls shutdownJuce_GUI().

Detailed Description

A utility object that helps you initialise and shutdown Juce correctly using an RAII pattern.

When an instance of this class is created, it calls initialiseJuce_GUI(), and when it's deleted, it calls shutdownJuce_GUI(), which lets you easily make sure that these functions are matched correctly.

This class is particularly handy to use at the beginning of a console app's main() function, because it'll take care of shutting down whenever you return from the main() call.

See also:
ScopedJuceInitialiser_NonGUI

Constructor & Destructor Documentation

The constructor simply calls initialiseJuce_GUI().

References initialiseJuce_GUI().

The destructor simply calls shutdownJuce_GUI().

References shutdownJuce_GUI().


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