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_INITIALISATION_H_INCLUDED
 
#define JUCE_MAIN_FUNCTION   int main (int argc, char* argv[])
 
#define JUCE_MAIN_FUNCTION_ARGS   argc, (const char**) argv
 
#define START_JUCE_APPLICATION(AppClass)
 
#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_INITIALISATION_H_INCLUDED

#define JUCE_INITIALISATION_H_INCLUDED

◆ JUCE_MAIN_FUNCTION [1/2]

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

◆ JUCE_MAIN_FUNCTION [2/2]

#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 [1/2]

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

◆ JUCE_MAIN_FUNCTION_ARGS [2/2]

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

◆ START_JUCE_APPLICATION [1/2]

#define START_JUCE_APPLICATION (   AppClass)
Value:
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
extern "C" JUCE_MAIN_FUNCTION \
{ \
}
#define JUCE_MAIN_FUNCTION_ARGS
Definition: juce_events.h:86
juce::JUCEApplicationBase * juce_CreateApplication()
#define JUCE_MAIN_FUNCTION
static CreateInstanceFunction createInstance
Definition: juce_events.h:260
static int main()
Definition: juce_events.cpp:227

◆ START_JUCE_APPLICATION [2/2]

#define START_JUCE_APPLICATION (   AppClass)
Value:
static juce::JUCEApplicationBase* juce_CreateApplication() { return new AppClass(); } \
extern "C" JUCE_MAIN_FUNCTION \
{ \
}
#define JUCE_MAIN_FUNCTION_ARGS
Definition: juce_Initialisation.h:100
Definition: juce_events.h:86
juce::JUCEApplicationBase * juce_CreateApplication()
static CreateInstanceFunction createInstance
Definition: juce_events.h:260
#define JUCE_MAIN_FUNCTION
Definition: juce_Initialisation.h:99
static int main()
Definition: juce_events.cpp:227

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()