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.
		
		
		
		
		
			
		
			
	
	
		
			38 lines
		
	
	
		
			585 B
		
	
	
	
		
			Plaintext
		
	
		
		
			
		
	
	
			38 lines
		
	
	
		
			585 B
		
	
	
	
		
			Plaintext
		
	
| 
											2 years ago
										 | #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}::constructFromXML(TXMLElement* xml) | ||
|  | { | ||
|  |     {componentName}::constructFromXML(xml); | ||
|  | 
 | ||
|  | {content} | ||
|  | } | ||
|  | 
 | ||
|  | } |