/* ----------------------------------------------------------------------------
 * 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: AR extends: Envelope fields: swigCPtrForAR {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    super pvtSetCPtr: (CslNI cslNI_SWIGARToEnvelope: newCPtr) memoryOwn: newCMemoryOwn.
    swigCPtrForAR := newCPtr.
  ]

  Method [ getCPtrForAR
    ^swigCPtrForAR
  ]


  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

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

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

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

  Function [ t: t a: a r: r
    ^self fromPointer: (CslNI cslNI_new_AR__SWIG_1: t, a, r) memoryOwn: true
  ]

  Function [ t: t i: i a: a r: r
    ^self fromPointer: (CslNI cslNI_new_AR__SWIG_2: t, i, a, r) memoryOwn: true
  ]

  Method [ setAttack: attack 
    CslNI cslNI_AR_setAttack: swigCPtrForAR with: attack
  ]

  Method [ setRelease: release 
    CslNI cslNI_AR_setRelease: swigCPtrForAR with: release
  ]

  Method [ setAll: d a: a r: r 
    CslNI cslNI_AR_setAll: swigCPtrForAR with: d with: a with: r
  ]

  Method [ release 
    CslNI cslNI_AR_release: swigCPtrForAR 
  ]

}
