blob: a26e69b51ed975e00c1626806866ba16953f6e8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
cdef extern from "Rectangle.cpp":
pass
# Declare the class with cdef
cdef extern from "Rectangle.h" namespace "shapes":
cdef cppclass Rectangle:
Rectangle() except +
Rectangle(int, int, int, int) except +
int x0, y0, x1, y1
int getArea()
void getSize(int* width, int* height)
void move(int, int)
|