Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 285 Bytes
cimport c_rectangle
from c_rectangle cimport Rectangle as CRectangle
cdef class Rectangle:
cdef c_rectangle.Rectangle *thisptr # hold a C++ instance which we're wrapping
cpdef getLength(self)
cpdef getHeight(self)
cpdef getArea(self)
cpdef move(self, dx, dy)