/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version: 1.3.21
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


Class name: Scalable extends: Controllable fields: swigCPtrForScalable {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGScalableToControllable: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForScalable := newCPtr.
  ]

  Method [ getCPtrForScalable
    ^swigCPtrForScalable
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForScalable ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      CslNI cslNI_delete_Scalable: swigCPtrForScalable.
    ].
    swigCPtrForScalable := 0.
    super delete.
  ]

  Function[ getCPtr: obj
     obj isNil ifTrue:[^0].
     ^obj getCPtrForScalable
  ]

  Function [ new
    ^self fromPointer: (CslNI cslNI_new_Scalable__SWIG_0) memoryOwn: true
  ]

  Function [ scale: scale
    ^self fromPointer: (CslNI cslNI_new_Scalable__SWIG_1: scale) memoryOwn: true
  ]

  Function [ scale: scale offset: offset
    ^self fromPointer: (CslNI cslNI_new_Scalable__SWIG_2: scale, offset) memoryOwn: true
  ]

  Function [ scale: scale offset: offset
    ^self fromPointer: (CslNI cslNI_new_Scalable__SWIG_3: (UnitGenerator getCPtr: scale), offset) memoryOwn: true
  ]

  Function [ scale: scale offset: offset
    ^self fromPointer: (CslNI cslNI_new_Scalable__SWIG_4: (UnitGenerator getCPtr: scale), (UnitGenerator getCPtr: offset)) memoryOwn: true
  ]

  Method [ setScale: scale 
    CslNI cslNI_Scalable_setScale__SWIG_0: swigCPtrForScalable with: (UnitGenerator getCPtr: scale)
  ]

  Method [ setScale: scale 
    CslNI cslNI_Scalable_setScale__SWIG_1: swigCPtrForScalable with: scale
  ]

  Method [ setOffset: offset 
    CslNI cslNI_Scalable_setOffset__SWIG_0: swigCPtrForScalable with: (UnitGenerator getCPtr: offset)
  ]

  Method [ setOffset: offset 
    CslNI cslNI_Scalable_setOffset__SWIG_1: swigCPtrForScalable with: offset
  ]

}
