// Class: openfl.display.Window

var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this

$global.Object.defineProperty(exports, "__esModule", {value: true});

var __map_reserved = {};

// Imports

var $hxClasses = require("./../../hxClasses_stub").default;
var $import = require("./../../import_stub").default;
var $extend = require("./../../extend_stub").default;
function lime_ui_Window() {return require("./../../lime/ui/Window");}
function openfl_display_Stage() {return require("./../../openfl/display/Stage");}
function Reflect() {return require("./../../Reflect");}

// Constructor

var Window = function(config) {
	(lime_ui_Window().default).call(this,config);
}

// Meta

Window.__name__ = ["openfl","display","Window"];
Window.__super__ = (lime_ui_Window().default);
Window.prototype = $extend((lime_ui_Window().default).prototype, {
	create: function(application) {
		(lime_ui_Window().default).prototype.create.call(this,application);
		this.stage = new (openfl_display_Stage().default)(this,(Reflect().default).hasField(this.config,"background") ? this.config.background : 16777215);
		if((Reflect().default).hasField(this.config,"parameters")) {
			try {
				this.stage.loaderInfo.parameters = this.config.parameters;
			} catch( e ) {
			}
		}
		if((Reflect().default).hasField(this.config,"resizable") && !this.config.resizable) {
			this.stage.__setLogicalSize(this.config.width,this.config.height);
		}
		application.addModule(this.stage);
	}
});
Window.prototype.__class__ = $hxClasses["openfl.display.Window"] = Window;

// Init



// Statics




// Export

exports.default = Window;