pub unsafe fn object_get_scroll_snap_x(obj: *const Object) -> Result<ScrollSnap>
This function is unsafe because it may dereference raw pointers.