PageRenderTime 63ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/cocktail/nativeElement/abstract/AbstractNativeElementCreator.hx

http://github.com/silexlabs/Cocktail
Haxe | 43 lines | 13 code | 6 blank | 24 comment | 0 complexity | fd8a87d341189a50cfcc69d2ee0cfe1c MD5 | raw file
 1/*This file is part of Silex - see http://projects.silexlabs.org/?/silex
 2
 3Silex is Š 2010-2011 Silex Labs and is released under the GPL License:
 4
 5This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 
 6
 7This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 8
 9To read the license please visit http://www.gnu.org/copyleft/gpl.html
10*/
11package cocktail.nativeElement.abstract;
12
13import cocktail.nativeElement.NativeElementData;
14import cocktail.nativeElement.NativeElement;
15
16/**
17 * This is a base class for the native element
18 * creator implementation. It creates a native element
19 * and returns a reference to it
20 * 
21 * @author Yannick DOMINGUEZ
22 */
23class AbstractNativeElementCreator
24{
25
26	/**
27	 * class constructor
28	 */
29	public function new() 
30	{
31		
32	}
33	
34	/**
35	 * Instantiate a native element and returns a reference to it. Implemented in inheriting classes
36	 * @param	nativeElementType the type of element to create (graphic, text...)
37	 */
38	public function createNativeElement(nativeElementType:NativeElementTypeValue):NativeElement
39	{
40		return null;
41	}
42	
43}