type RenderToParentCallback = Box<dyn Fn(&Context, Rect<i32>) + Send + Sync>;
struct RenderToParentCallback(/* private fields */);