cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Application Class Reference

#include <CCApplication.h>

Inheritance diagram for Application:
ApplicationProtocol ApplicationProtocol ApplicationProtocol ApplicationProtocol ApplicationProtocol ApplicationProtocol

Public Member Functions

 Application ()
virtual ~Application ()
void setAnimationInterval (double interval)
 Callback by Director to limit FPS. More...
 
int run ()
 Run the message loop. More...
 
virtual LanguageType getCurrentLanguage ()
 Get current language config. More...
 
var getCurrentLanguage ()
 Get current language config. More...
 
local getCurrentLanguage ()
 Get current language config. More...
 
virtual const char * getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
local getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
virtual Platform getTargetPlatform ()
 Get target platform. More...
 
virtual bool openURL (const std::string &url)
 Open url in default browser. More...
 
virtual void applicationScreenSizeChanged (int newWidth, int newHeight)
 This function will be called when the application screen size is changed. More...
 
local applicationScreenSizeChanged ( local newWidth, local newHeight)
 This function will be called when the application screen size is changed. More...
 
 Application ()
virtual ~Application ()
int run ()
 Run the message loop. More...
 
virtual void setAnimationInterval (double interval)
 Callback by Director for limit FPS. More...
 
virtual LanguageType getCurrentLanguage ()
 Get current language config. More...
 
virtual const char * getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
local getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
virtual Platform getTargetPlatform ()
 Get target platform. More...
 
local getTargetPlatform ()
 Get target platform. More...
 
virtual bool openURL (const std::string &url)
 Open url in default browser. More...
 
virtual void applicationScreenSizeChanged (int newWidth, int newHeight)
 This function will be called when the application screen size is changed. More...
 
local applicationScreenSizeChanged ( local newWidth, local newHeight)
 This function will be called when the application screen size is changed. More...
 
 Application ()
virtual ~Application ()
void setAnimationInterval (double interval)
 Callback by Director for limit FPS. More...
 
var setAnimationInterval ( var interval)
 Callback by Director for limit FPS. More...
 
local setAnimationInterval ( local interval)
 Callback by Director for limit FPS. More...
 
int run ()
 Run the message loop. More...
 
virtual LanguageType getCurrentLanguage ()
 Get current language config. More...
 
virtual const char * getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
virtual bool openURL (const std::string &url)
 Open url in default browser. More...
 
void setResourceRootPath (const std::string &rootResDir)
 Sets the Resource root path. More...
 
var setResourceRootPath ( var rootResDir)
 Sets the Resource root path. More...
 
local setResourceRootPath ( local rootResDir)
 Sets the Resource root path. More...
 
const std::string & getResourceRootPath (void)
 Gets the Resource root path. More...
 
local getResourceRootPath ()
 Gets the Resource root path. More...
 
virtual Platform getTargetPlatform ()
 Get target platform. More...
 
 Application ()
virtual ~Application ()
virtual void setAnimationInterval (double interval)
 Callback by Director for limit FPS. More...
 
local setAnimationInterval ( local interval)
 Callback by Director for limit FPS. More...
 
int run ()
 Get status bar rectangle in GLView window. More...
 
virtual LanguageType getCurrentLanguage ()
 Get current language config. More...
 
virtual const char * getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
virtual Platform getTargetPlatform ()
 Get target platform. More...
 
virtual bool openURL (const std::string &url)
 Open url in default browser. More...
 
void setResourceRootPath (const std::string &rootResDir)
 Sets the Resource root path. More...
 
var setResourceRootPath ( var rootResDir)
 Sets the Resource root path. More...
 
local setResourceRootPath ( local rootResDir)
 Sets the Resource root path. More...
 
const std::string & getResourceRootPath (void)
 Gets the Resource root path. More...
 
void setStartupScriptFilename (const std::string &startupScriptFile)
const std::string & getStartupScriptFilename (void)
local getStartupScriptFilename ()
 Application ()
virtual ~Application ()
int run ()
 Run the message loop. More...
 
virtual void setAnimationInterval (double interval)
 Callback by Director for limit FPS. More...
 
virtual LanguageType getCurrentLanguage ()
 Get current language config. More...
 
virtual const char * getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
virtual Platform getTargetPlatform ()
 Get target platform. More...
 
local getTargetPlatform ()
 Get target platform. More...
 
virtual bool openURL (const std::string &url)
 Open url in default browser. More...
 
void setResourceRootPath (const std::string &rootResDir)
 Sets the Resource root path. More...
 
var setResourceRootPath ( var rootResDir)
 Sets the Resource root path. More...
 
local setResourceRootPath ( local rootResDir)
 Sets the Resource root path. More...
 
const std::string & getResourceRootPath (void)
 Gets the Resource root path. More...
 
void setStartupScriptFilename (const std::string &startupScriptFile)
const std::string & getStartupScriptFilename (void)
local getStartupScriptFilename ()
 Application ()
virtual ~Application ()
int run ()
 Run the message loop. More...
 
virtual void setAnimationInterval (double interval)
 Callback by Director for limit FPS. More...
 
local setAnimationInterval ( local interval)
 Callback by Director for limit FPS. More...
 
virtual LanguageType getCurrentLanguage ()
 Get current language config. More...
 
virtual const char * getCurrentLanguageCode ()
 Get current language iso 639-1 code. More...
 
virtual Platform getTargetPlatform () override
 Get target platform. More...
 
local getTargetPlatform ()
 Get target platform. More...
 
virtual bool openURL (const std::string &url)
 Open url in default browser. More...
 
void SetXamlOpenURLDelegate (const std::function< void(::Platform::String^)> &del)
 Set the callback responsible for opening a URL. More...
 
void setResourceRootPath (const std::string &rootResDir)
 Sets the Resource root path. More...
 
const std::string & getResourceRootPath (void)
 Gets the Resource root path. More...
 
void setStartupScriptFilename (const std::string &startupScriptFile)
const std::string & getStartupScriptFilename (void)
- Public Member Functions inherited from ApplicationProtocol
virtual ~ApplicationProtocol ()
virtual bool applicationDidFinishLaunching ()=0
 Implement Director and Scene init code here. More...
 
virtual void applicationDidEnterBackground ()=0
 This function will be called when the application enters background. More...
 
virtual void applicationWillEnterForeground ()=0
 This function will be called when the application enters foreground. More...
 
virtual void initGLContextAttrs ()
 Subclass override the function to set OpenGL context attribution instead of use default value. More...
 
local initGLContextAttrs ()
 Subclass override the function to set OpenGL context attribution instead of use default value. More...
 

Static Public Member Functions

static ApplicationgetInstance ()
 Get current application instance. More...
 
static ApplicationsharedApplication ()
static ApplicationgetInstance ()
 Get the current application instance. More...
 
local getInstance ()
 Get the current application instance. More...
 
static ApplicationsharedApplication ()
var sharedApplication ()
local sharedApplication ()
static ApplicationgetInstance ()
 Get current applicaiton instance. More...
 
static ApplicationsharedApplication ()
var sharedApplication ()
local sharedApplication ()
static ApplicationgetInstance ()
 Get current applicaiton instance. More...
 
local getInstance ()
 Get current applicaiton instance. More...
 
static ApplicationsharedApplication ()
var sharedApplication ()
local sharedApplication ()
static ApplicationgetInstance ()
 Get current applicaiton instance. More...
 
local getInstance ()
 Get current applicaiton instance. More...
 
static ApplicationsharedApplication ()
var sharedApplication ()
local sharedApplication ()
static ApplicationgetInstance ()
 Get current applicaiton instance. More...
 
local getInstance ()
 Get current applicaiton instance. More...
 

Protected Attributes

long _animationInterval
std::string _resourceRootPath
std::string _startupScriptFilename
var _startupScriptFilename
local _startupScriptFilename
HINSTANCE _instance
HACCEL _accelTable
LARGE_INTEGER _animationInterval
var _animationInterval
local _animationInterval
LARGE_INTEGER m_nAnimationInterval
var m_nAnimationInterval
local m_nAnimationInterval
std::string m_resourceRootPath
std::string m_startupScriptFilename
std::function< void(::Platform::String^)> m_openURLDelegate
var m_openURLDelegate
local m_openURLDelegate

Static Protected Attributes

static Applicationsm_pSharedApplication
var sm_pSharedApplication
local sm_pSharedApplication

Additional Inherited Members

- Public Types inherited from ApplicationProtocol
enum  Platform {
  OS_WINDOWS, OS_LINUX, OS_MAC, OS_ANDROID,
  OS_IPHONE, OS_IPAD, OS_BLACKBERRY, OS_NACL,
  OS_EMSCRIPTEN, OS_TIZEN, OS_WINRT, OS_WP8
}
 Since WINDOWS and ANDROID are defined as macros, we could not just use these keywords in enumeration(Platform). More...
 

Constructor & Destructor Documentation

var ctor ( )
local Application ( )
virtual ~Application ( )
virtual
var ctor ( )
local Application ( )
virtual ~Application ( )
virtual
var ctor ( )
local Application ( )
virtual ~Application ( )
virtual
var ctor ( )
local Application ( )
virtual ~Application ( )
virtual
var ctor ( )
local Application ( )
virtual ~Application ( )
virtual
var Application ( )
local Application ( )
virtual ~Application ( )
virtual
var ~Application ( )
virtual
local ~Application ( )
virtual

Member Function Documentation

virtual void
applicationScreenSizeChanged
( int  newWidth,
int  newHeight 
)
virtual

This function will be called when the application screen size is changed.

Parameters
newwidth
newheight
var applicationScreenSizeChanged ( var  newWidth,
var  newHeight 
)
virtual

This function will be called when the application screen size is changed.

Parameters
newwidth
newheight
local applicationScreenSizeChanged ( local  newWidth,
local  newHeight 
)
virtual

This function will be called when the application screen size is changed.

Parameters
newwidth
newheight
virtual void
applicationScreenSizeChanged
( int  newWidth,
int  newHeight 
)
virtual

This function will be called when the application screen size is changed.

Parameters
newwidth
newheight
var applicationScreenSizeChanged ( var  newWidth,
var  newHeight 
)
virtual

This function will be called when the application screen size is changed.

Parameters
newwidth
newheight
local applicationScreenSizeChanged ( local  newWidth,
local  newHeight 
)
virtual

This function will be called when the application screen size is changed.

Parameters
newwidth
newheight
virtual LanguageType
getCurrentLanguage
( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

var getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

local getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

virtual LanguageType
getCurrentLanguage
( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

var getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

local getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

virtual LanguageType
getCurrentLanguage
( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

var getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

local getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config.

Implements ApplicationProtocol.

virtual LanguageType
getCurrentLanguage
( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

var getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

local getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

virtual LanguageType
getCurrentLanguage
( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

var getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

local getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

virtual LanguageType
getCurrentLanguage
( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

var getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

local getCurrentLanguage ( )
virtual

Get current language config.

Returns
Current language config

Implements ApplicationProtocol.

virtual const char*
getCurrentLanguageCode
( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code.

Implements ApplicationProtocol.

var getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code.

Implements ApplicationProtocol.

local getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code.

Implements ApplicationProtocol.

virtual const char*
getCurrentLanguageCode
( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code.

Implements ApplicationProtocol.

var getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code.

Implements ApplicationProtocol.

local getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code.

Implements ApplicationProtocol.

virtual const char*
getCurrentLanguageCode
( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

var getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

local getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

virtual const char*
getCurrentLanguageCode
( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

var getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

local getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

virtual const char*
getCurrentLanguageCode
( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

var getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

local getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

virtual const char*
getCurrentLanguageCode
( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

var getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

local getCurrentLanguageCode ( )
virtual

Get current language iso 639-1 code.

Returns
Current language iso 639-1 code

Implements ApplicationProtocol.

static Application* getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
var getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
local getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
static Application* getInstance ( )
static

Get the current application instance.

Returns
Current application instance pointer.
var getInstance ( )
static

Get the current application instance.

Returns
Current application instance pointer.
local getInstance ( )
static

Get the current application instance.

Returns
Current application instance pointer.
static Application* getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
var getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
local getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
static Application* getInstance ( )
static

Get current application instance.

Returns
Current application instance pointer.
var getInstance ( )
static

Get current application instance.

Returns
Current application instance pointer.
local getInstance ( )
static

Get current application instance.

Returns
Current application instance pointer.
static Application* getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
var getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
local getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
static Application* getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
var getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
local getInstance ( )
static

Get current applicaiton instance.

Returns
Current application instance pointer.
const std::string&
getResourceRootPath
( void  )

Gets the Resource root path.

Deprecated:
Please use CCFileUtils::sharedFileUtils()->getSearchPaths() instead.
var getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use CCFileUtils::sharedFileUtils()->getSearchPaths() instead.
local getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use CCFileUtils::sharedFileUtils()->getSearchPaths() instead.
const std::string&
getResourceRootPath
( void  )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
var getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
local getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
const std::string&
getResourceRootPath
( void  )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
var getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
local getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
const std::string&
getResourceRootPath
( void  )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
var getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
local getResourceRootPath (   )

Gets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->getSearchPaths() instead.
const std::string&
getStartupScriptFilename
( void  )
inline
var getStartupScriptFilename (   )
inline
local getStartupScriptFilename (   )
inline
const std::string&
getStartupScriptFilename
( void  )
inline
var getStartupScriptFilename (   )
inline
local getStartupScriptFilename (   )
inline
const std::string&
getStartupScriptFilename
( void  )
var getStartupScriptFilename (   )
local getStartupScriptFilename (   )
virtual Platform getTargetPlatform ( )
overridevirtual

Get target platform.

Implements ApplicationProtocol.

var getTargetPlatform ( )
overridevirtual

Get target platform.

Implements ApplicationProtocol.

local getTargetPlatform ( )
overridevirtual

Get target platform.

Implements ApplicationProtocol.

virtual Platform getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

var getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

local getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

virtual Platform getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

var getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

local getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

virtual Platform getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

var getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

local getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

virtual Platform getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

var getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

local getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

virtual Platform getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

var getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

local getTargetPlatform ( )
virtual

Get target platform.

Implements ApplicationProtocol.

virtual bool openURL ( const std::string &  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

var openURL ( var  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

local openURL ( local  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

virtual bool openURL ( const std::string &  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

var openURL ( var  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

local openURL ( local  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

virtual bool openURL ( const std::string &  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

var openURL ( var  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

local openURL ( local  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

virtual bool openURL ( const std::string &  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

var openURL ( var  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

local openURL ( local  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

virtual bool openURL ( const std::string &  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

var openURL ( var  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

local openURL ( local  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

virtual bool openURL ( const std::string &  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

var openURL ( var  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

local openURL ( local  url)
virtual

Open url in default browser.

Parameters
Stringwith url to open.
Returns
true if the resource located by the URL was successfully opened; otherwise false.

Implements ApplicationProtocol.

int run ( )

Run the message loop.

var run ( )

Run the message loop.

local run ( )

Run the message loop.

int run ( )

Run the message loop.

var run ( )

Run the message loop.

local run ( )

Run the message loop.

int run ( )

Run the message loop.

var run ( )

Run the message loop.

local run ( )

Run the message loop.

int run ( )

Run the message loop.

var run ( )

Run the message loop.

local run ( )

Run the message loop.

int run ( )

Run the message loop.

var run ( )

Run the message loop.

local run ( )

Run the message loop.

int run ( )

Get status bar rectangle in GLView window.

Run the message loop.

void setAnimationInterval ( double  interval)
virtual

Callback by Director to limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

var setAnimationInterval ( var  interval)
virtual

Callback by Director to limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

local setAnimationInterval ( local  interval)
virtual

Callback by Director to limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

virtual void setAnimationInterval ( double  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, which expressed in second in second, between current frame and next.

Implements ApplicationProtocol.

var setAnimationInterval ( var  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, which expressed in second in second, between current frame and next.

Implements ApplicationProtocol.

local setAnimationInterval ( local  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, which expressed in second in second, between current frame and next.

Implements ApplicationProtocol.

void setAnimationInterval ( double  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, which expressed in second in second, between current frame and next.

Implements ApplicationProtocol.

var setAnimationInterval ( var  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, which expressed in second in second, between current frame and next.

Implements ApplicationProtocol.

local setAnimationInterval ( local  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, which expressed in second in second, between current frame and next.

Implements ApplicationProtocol.

virtual void setAnimationInterval ( double  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

var setAnimationInterval ( var  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

local setAnimationInterval ( local  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

virtual void setAnimationInterval ( double  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

var setAnimationInterval ( var  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

local setAnimationInterval ( local  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

virtual void setAnimationInterval ( double  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

var setAnimationInterval ( var  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

local setAnimationInterval ( local  interval)
virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implements ApplicationProtocol.

void setResourceRootPath ( const std::string &  rootResDir)

Sets the Resource root path.

Deprecated:
Please use CCFileUtils::sharedFileUtils()->setSearchPaths() instead.
var setResourceRootPath ( var  rootResDir)

Sets the Resource root path.

Deprecated:
Please use CCFileUtils::sharedFileUtils()->setSearchPaths() instead.
local setResourceRootPath ( local  rootResDir)

Sets the Resource root path.

Deprecated:
Please use CCFileUtils::sharedFileUtils()->setSearchPaths() instead.
void setResourceRootPath ( const std::string &  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
var setResourceRootPath ( var  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
local setResourceRootPath ( local  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
void setResourceRootPath ( const std::string &  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
var setResourceRootPath ( var  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
local setResourceRootPath ( local  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
void setResourceRootPath ( const std::string &  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
var setResourceRootPath ( var  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
local setResourceRootPath ( local  rootResDir)

Sets the Resource root path.

Deprecated:
Please use FileUtils::getInstance()->setSearchPaths() instead.
void setStartupScriptFilename ( const std::string &  startupScriptFile)
var setStartupScriptFilename ( var  startupScriptFile)
local setStartupScriptFilename ( local  startupScriptFile)
void setStartupScriptFilename ( const std::string &  startupScriptFile)
var setStartupScriptFilename ( var  startupScriptFile)
local setStartupScriptFilename ( local  startupScriptFile)
void setStartupScriptFilename ( const std::string &  startupScriptFile)
var setStartupScriptFilename ( var  startupScriptFile)
local setStartupScriptFilename ( local  startupScriptFile)
void SetXamlOpenURLDelegate ( const std::function< void(::Platform::String^)> &  del)
inline

Set the callback responsible for opening a URL.

Parameters
delThe delegate that will handle opening a URL. We can't pass back a Platform::String due to name clash.
var SetXamlOpenURLDelegate ( var  del)
inline

Set the callback responsible for opening a URL.

Parameters
delThe delegate that will handle opening a URL. We can't pass back a Platform::String due to name clash.
local SetXamlOpenURLDelegate ( local  del)
inline

Set the callback responsible for opening a URL.

Parameters
delThe delegate that will handle opening a URL. We can't pass back a Platform::String due to name clash.
static Application*
sharedApplication
( )
static
var sharedApplication ( )
static
local sharedApplication ( )
static
static Application*
sharedApplication
( )
static
var sharedApplication ( )
static
local sharedApplication ( )
static
static Application*
sharedApplication
( )
static
var sharedApplication ( )
static
local sharedApplication ( )
static
static Application*
sharedApplication
( )
static
var sharedApplication ( )
static
local sharedApplication ( )
static
static Application*
sharedApplication
( )
static
var sharedApplication ( )
static
local sharedApplication ( )
static

Member Data Documentation

HACCEL _accelTable
protected
var _accelTable
protected
local _accelTable
protected
long _animationInterval
protected
var _animationInterval
protected
local _animationInterval
protected
LARGE_INTEGER _animationInterval
protected
var _animationInterval
protected
local _animationInterval
protected
HINSTANCE _instance
protected
var _instance
protected
local _instance
protected
std::string _resourceRootPath
protected
var _resourceRootPath
protected
local _resourceRootPath
protected
std::string _startupScriptFilename
protected
var _startupScriptFilename
protected
local _startupScriptFilename
protected
LARGE_INTEGER m_nAnimationInterval
protected
var m_nAnimationInterval
protected
local m_nAnimationInterval
protected
std::function<void(::Platform::String^)>
m_openURLDelegate
protected
var m_openURLDelegate
protected
local m_openURLDelegate
protected
std::string m_resourceRootPath
protected
var m_resourceRootPath
protected
local m_resourceRootPath
protected
std::string m_startupScriptFilename
protected
var m_startupScriptFilename
protected
local m_startupScriptFilename
protected
static Application
* sm_pSharedApplication
staticprotected
var sm_pSharedApplication
staticprotected
local sm_pSharedApplication
staticprotected

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