In a C++ library that I am wrapping, I have to inherit from one of the wrapped 
classes. So I have this:
    
    
    type
      OcctAisHello* = object of AIS_ViewController
        myContext*:Handle[AISInteractiveContext]
        myView*:Handle[V3d_View]
    
    
    Run

Then, I need to override some methods from the class. I did the following:
    
    
    method processExpose(this:var OcctAisHello) {.exportc.} =
      if not this.myView.isNull:
        this.flushViewEvents( this.myContext, this.myView, true )
    
    
    Run

Is this the right way of overriden the methods? 

Reply via email to