uicore::ApplicationInstance< ApplicationClass > Class Template Reference

Helper class to create cross platform applications. More...

#include <application.h>

+ Inheritance diagram for uicore::ApplicationInstance< ApplicationClass >:

Public Member Functions

 ApplicationInstance (bool catch_exceptions=true)
 Constructor. More...
 

Detailed Description

template<typename ApplicationClass>
class uicore::ApplicationInstance< ApplicationClass >

Helper class to create cross platform applications.

To use this class, inherit from Application and make a single global instance of ApplicationInstance<YourClass>.

class MyApplication : public uicore::Application
{
public:
bool update() override;
};
ApplicationInstance<MyApplication> uicoreapp;

If you do not want exceptions to be automatically caught, pass "false" to the optional catch_exceptions parameter in Application
Your program does not have to use this class. For more advanced usage use a normal main function for the target platform and interface with the RunLoop class

Constructor & Destructor Documentation

template<typename ApplicationClass >
uicore::ApplicationInstance< ApplicationClass >::ApplicationInstance ( bool  catch_exceptions = true)
inline

Constructor.


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