objc.CGSize createCGSize(double width, double height) { final ptr = calloc<objc.CGSize>(); ptr.ref.width = width; ptr.ref.height = height; return ptr.ref; }