pub unsafe fn object_set_size(obj: *mut Object, w: i32, h: i32) -> Result<()>
This function is unsafe because it may dereference raw pointers.