text: /**
   * @author Andreas Bresser
   */
  
  /**
   * Text input with icon
   *
   * @class IconTextInput
   */
  
  var IconTextInput = function(icon, text, theme) {
      GOWN.TextInput.call(this, theme, text);
      this.icon  = icon;
  
      this.bg = new GOWN.shapes.Rect(0x111111, 0.5, 360, 46, 5);
      this.icon.x = 7;
  
      this.addChild(this.bg);
  
      this.addChild(icon);
  
      var pos = GOWN.utils.position;
      pos.centerVertical(this.icon, this.bg);
      this.interactive = true;
  
      this.height = 40;
  
      this.pixiText.x = this.icon.width + this.icon.x*2;
      pos.centerVertical(this.pixiText);
  };
  
  IconTextInput.prototype = Object.create( GOWN.TextInput.prototype );
  IconTextInput.prototype.constructor = IconTextInput;
  
  IconTextInput.prototype.setCursorPos = function() {
      GOWN.TextInput.prototype.setCursorPos.call(this);
      this.cursor.x += this.icon.width + this.icon.x*2;
      GOWN.utils.position.centerVertical(this.cursor);
  };
  