You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			36 lines
		
	
	
		
			519 B
		
	
	
	
		
			Plaintext
		
	
			
		
		
	
	
			36 lines
		
	
	
		
			519 B
		
	
	
	
		
			Plaintext
		
	
#include "{packageName}Binder.h"
 | 
						|
 | 
						|
namespace {packageName}
 | 
						|
{
 | 
						|
 | 
						|
USING_NS_FGUI;
 | 
						|
 | 
						|
const std::string {className}::URL = "{uiPath}";
 | 
						|
 | 
						|
{className}* {className}::create()
 | 
						|
{
 | 
						|
{createInstance}
 | 
						|
}
 | 
						|
 | 
						|
{className}* {className}::createByBinder()
 | 
						|
{
 | 
						|
    {className} *pRet = new(std::nothrow) {className}();
 | 
						|
    if (pRet && pRet->init())
 | 
						|
    {
 | 
						|
        pRet->autorelease();
 | 
						|
        return pRet;
 | 
						|
    }
 | 
						|
    else
 | 
						|
    {
 | 
						|
        delete pRet;
 | 
						|
        pRet = nullptr;
 | 
						|
        return nullptr;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
void {className}::onConstruct()
 | 
						|
{
 | 
						|
{content}
 | 
						|
}
 | 
						|
 | 
						|
} |