1 goog.provide('lime.Scene'); 2 3 4 goog.require('lime'); 5 goog.require('lime.Node'); 6 7 /** 8 * Scene object 9 * @constructor 10 * @extends lime.Node 11 */ 12 lime.Scene = function() { 13 lime.Node.call(this); 14 15 this.setAnchorPoint(0, 0); 16 17 this.domClassName = goog.getCssName('lime-scene'); 18 this.createDomElement(); 19 20 }; 21 goog.inherits(lime.Scene, lime.Node); 22 23 /** @inheritDoc */ 24 lime.Scene.prototype.getScene = function() { 25 return this; 26 }; 27 28 /** @inheritDoc */ 29 lime.Scene.prototype.measureContents = function() { 30 return this.getFrame(); 31 }