/* ----------------------------------------------------------------------------
 * 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: ExternalShape extends: SwigProxy fields: swigCPtrForExternalShape, swigCMemoryOwn {

  Method [ pvtSetCPtr: newCPtr memoryOwn: newCMemoryOwn
    swigCMemoryOwn := newCMemoryOwn.
    swigCPtrForExternalShape := newCPtr.
  ]

  Method [ getCPtrForExternalShape
    ^swigCPtrForExternalShape
  ]


  Function [ new
    self noDefaultConstructorError
  ]

  Method[ swigFinalize
    super swigFinalize.
    self delete.
  ]

  Method [ delete 
    (swigCMemoryOwn and:[ swigCPtrForExternalShape ~~ 0 ]) ifTrue:[
      swigCMemoryOwn := false.
      ExampleClassNI exampleClassNI_delete_ExternalShape: swigCPtrForExternalShape.
    ].
    swigCPtrForExternalShape := 0.
  ]

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

  Method [ setX: x 
    ExampleClassNI exampleClassNI_set_ExternalShape_x: swigCPtrForExternalShape with: x
  ]

  Method [ getX 
    ^ExampleClassNI exampleClassNI_get_ExternalShape_x: swigCPtrForExternalShape 
  ]

  Method [ setY: y 
    ExampleClassNI exampleClassNI_set_ExternalShape_y: swigCPtrForExternalShape with: y
  ]

  Method [ getY 
    ^ExampleClassNI exampleClassNI_get_ExternalShape_y: swigCPtrForExternalShape 
  ]

  Method [ move: dx dy: dy 
    ExampleClassNI exampleClassNI_ExternalShape_move: swigCPtrForExternalShape with: dx with: dy
  ]

  Method [ area 
    ^ExampleClassNI exampleClassNI_ExternalShape_area: swigCPtrForExternalShape 
  ]

  Method [ perimeter 
    ^ExampleClassNI exampleClassNI_ExternalShape_perimeter: swigCPtrForExternalShape 
  ]

  Function [ setNshapes: value 
    ExampleClassNI exampleClassNI_set_ExternalShape_nshapes: value
  ]

  Function [ getNshapes 
    ^ExampleClassNI exampleClassNI_get_ExternalShape_nshapes
  ]

}
