lib/complexTypes/WindowParam.js
function WindowParam(windowParamDict){
  if(!(this instanceof WindowParam))
    return new WindowParam(windowParamDict)

  windowParamDict = windowParamDict || {}

  // Check windowParamDict has the required fields
  // 
  // checkType('int', 'windowParamDict.topRightCornerX', windowParamDict.topRightCornerX, {required: true});
  //  
  // checkType('int', 'windowParamDict.topRightCornerY', windowParamDict.topRightCornerY, {required: true});
  //  
  // checkType('int', 'windowParamDict.width', windowParamDict.width, {required: true});
  //  
  // checkType('int', 'windowParamDict.height', windowParamDict.height, {required: true});
  //  

  // Init parent class
  WindowParam.super_.call(this, windowParamDict)

  // Set object properties
  Object.defineProperties(this, {
    topRightCornerX: {
      writable: true,
      enumerable: true,
      value: windowParamDict.topRightCornerX
    },
    topRightCornerY: {
      writable: true,
      enumerable: true,
      value: windowParamDict.topRightCornerY
    },
    width: {
      writable: true,
      enumerable: true,
      value: windowParamDict.width
    },
    height: {
      writable: true,
      enumerable: true,
      value: windowParamDict.height
    }
  })
}
function WindowParam(windowParamDict){
  if(!(this instanceof WindowParam))
    return new WindowParam(windowParamDict)

  windowParamDict = windowParamDict || {}

  // Check windowParamDict has the required fields
  // 
  // checkType('int', 'windowParamDict.topRightCornerX', windowParamDict.topRightCornerX, {required: true});
  //  
  // checkType('int', 'windowParamDict.topRightCornerY', windowParamDict.topRightCornerY, {required: true});
  //  
  // checkType('int', 'windowParamDict.width', windowParamDict.width, {required: true});
  //  
  // checkType('int', 'windowParamDict.height', windowParamDict.height, {required: true});
  //  

  // Init parent class
  WindowParam.super_.call(this, windowParamDict)

  // Set object properties
  Object.defineProperties(this, {
    topRightCornerX: {
      writable: true,
      enumerable: true,
      value: windowParamDict.topRightCornerX
    },
    topRightCornerY: {
      writable: true,
      enumerable: true,
      value: windowParamDict.topRightCornerY
    },
    width: {
      writable: true,
      enumerable: true,
      value: windowParamDict.width
    },
    height: {
      writable: true,
      enumerable: true,
      value: windowParamDict.height
    }
  })
}
function WindowParam ( windowParamDict ) { if ( ! ( this instanceof WindowParam ) ) return new WindowParam ( windowParamDict ) windowParamDict = windowParamDict || { } // Check windowParamDict has the required fields //  // checkType('int', 'windowParamDict.topRightCornerX', windowParamDict.topRightCornerX, {required: true}); //   // checkType('int', 'windowParamDict.topRightCornerY', windowParamDict.topRightCornerY, {required: true}); //   // checkType('int', 'windowParamDict.width', windowParamDict.width, {required: true}); //   // checkType('int', 'windowParamDict.height', windowParamDict.height, {required: true}); //   // Init parent class WindowParam . super_ . call ( this , windowParamDict ) // Set object properties Object . defineProperties ( this , { topRightCornerX : { writable : true , enumerable : true , value : windowParamDict . topRightCornerX } , topRightCornerY : { writable : true , enumerable : true , value : windowParamDict . topRightCornerY } , width : { writable : true , enumerable : true , value : windowParamDict . width } , height : { writable : true , enumerable : true , value : windowParamDict . height } } ) }
Parameter representing a window in a video stream.
It is used in command and constructor for media elements.
All units are in pixels, X runs from left to right, Y from top to bottom.

@constructor module:chroma/complexTypes.WindowParam

@property {external:Integer} topRightCornerX
X coordinate of the left upper point of the window
@property {external:Integer} topRightCornerY
Y coordinate of the left upper point of the window
@property {external:Integer} width
width in pixels of the window
@property {external:Integer} height
height in pixels of the window
Parameter representing a window in a video stream . It is used in command and constructor for media elements . All units are in pixels X runs from left to right Y from top to bottom .