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 START_JUCE_APPLICATION | ( | AppClass | ) | juce::JUCEApplication* juce_CreateApplication() { return new AppClass(); } |
| JUCE_API void JUCE_CALLTYPE initialiseJuce_GUI | ( | ) |
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.
Referenced by ScopedJuceInitialiser_GUI::ScopedJuceInitialiser_GUI().
| JUCE_API void JUCE_CALLTYPE shutdownJuce_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.
Referenced by ScopedJuceInitialiser_GUI::~ScopedJuceInitialiser_GUI().