JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Defines | Functions
juce_Initialisation.h File Reference

Classes

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

Defines

#define START_JUCE_APPLICATION(AppClass)   juce::JUCEApplication* juce_CreateApplication() { return new AppClass(); }

Functions

JUCE_API void JUCE_CALLTYPE initialiseJuce_GUI ()
 Initialises Juce's GUI classes.
JUCE_API void JUCE_CALLTYPE shutdownJuce_GUI ()
 Clears up any static data being used by Juce's GUI classes.

Define Documentation

#define START_JUCE_APPLICATION (   AppClass)    juce::JUCEApplication* juce_CreateApplication() { return new AppClass(); }

Function Documentation

Initialises Juce's GUI classes.

If you're embedding Juce into an application that uses its own event-loop rather than using the START_JUCE_APPLICATION macro, call this function before making any Juce calls, to make sure things are initialised correctly.

Note that if you're creating a Juce DLL for Windows, you may also need to call the Process::setCurrentModuleInstanceHandle() method.

See also:
shutdownJuce_GUI()

Referenced by ScopedJuceInitialiser_GUI::ScopedJuceInitialiser_GUI().

Clears up any static data being used by Juce's GUI classes.

If you're embedding Juce into an application that uses its own event-loop rather than using the START_JUCE_APPLICATION macro, call this function in your shutdown code to clean up any juce objects that might be lying around.

See also:
initialiseJuce_GUI()

Referenced by ScopedJuceInitialiser_GUI::~ScopedJuceInitialiser_GUI().