openshot-audio  0.1.7
Classes | Macros | Functions
juce_Initialisation.h File Reference

Go to the source code of this file.

Classes

class  ScopedJuceInitialiser_GUI
 

Macros

#define JUCE_MAIN_FUNCTION   int main (int argc, char* argv[])
 
#define JUCE_MAIN_FUNCTION_ARGS   argc, (const char**) argv
 
#define START_JUCE_APPLICATION(AppClass)
 

Functions

JUCE_API void JUCE_CALLTYPE initialiseJuce_GUI ()
 
JUCE_API void JUCE_CALLTYPE shutdownJuce_GUI ()
 

Macro Definition Documentation

◆ JUCE_MAIN_FUNCTION

#define JUCE_MAIN_FUNCTION   int main (int argc, char* argv[])

To start a JUCE app, use this macro: START_JUCE_APPLICATION (AppSubClass) where AppSubClass is the name of a class derived from JUCEApplication or JUCEApplicationBase.

See the JUCEApplication and JUCEApplicationBase class documentation for more details.

◆ JUCE_MAIN_FUNCTION_ARGS

#define JUCE_MAIN_FUNCTION_ARGS   argc, (const char**) argv

◆ START_JUCE_APPLICATION

#define START_JUCE_APPLICATION (   AppClass)
Value:
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
extern "C" JUCE_MAIN_FUNCTION \
{ \
juce::JUCEApplicationBase::createInstance = &juce_CreateApplication; \
}

Function Documentation

◆ initialiseJuce_GUI()

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.

See also
shutdownJuce_GUI()

◆ shutdownJuce_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.

See also
initialiseJuce_GUI()
JUCE_MAIN_FUNCTION_ARGS
#define JUCE_MAIN_FUNCTION_ARGS
Definition: juce_Initialisation.h:100
JUCE_MAIN_FUNCTION
#define JUCE_MAIN_FUNCTION
Definition: juce_Initialisation.h:99
juce_CreateApplication
juce::JUCEApplicationBase * juce_CreateApplication()
main
int main()
Definition: Main.cpp:45