Programming, Swift, Object Oriented, Objective C.
CanvasRef DisplayCanvasCreate(void); // Canvas.m typedef struct DisplayCanvas { Canvas super; ColorSpace colorSpace; } DisplayCanvas; CanvasRef DisplayCanvasCreate(void) { DisplayCanvas *canvas = (DisplayCanvas *)malloc(sizeof(DisplayCanvas)); canvas->super.width = 320; canvas->super.height = 240;