Programming, Swift, Object Oriented, Objective C.
canvas->height); } // main.c CanvasRef canvas = DisplayCanvasCreate(); CanvasDraw(canvas); width: 320, height: 240 Because of the way C aligns structures in memory, we can cast pointers from one to the other if first elements are the same. If we would change order of members in our structure cast