Programming, Swift, Object Oriented, Objective C.
CanvasGetHeight(CanvasRef canvas); extern CanvasRef CanvasCreate(void); // Canvas.c typedef struct Canvas { int width; int height; } Canvas; int CanvasGetWidth(CanvasRef canvas) { return canvas->width; } int CanvasGetHeight(CanvasRef canvas) { return canvas->height; } CanvasRef CanvasCreate(void) {