/// <summary> /// Updates all GUI elements from the offset. /// </summary> /// <param name="offset">Offset to update the GUI to.</param> public void Refresh(RectOffset offset) { this.offset = offset; offsetLeftField.Value = offset.left; offsetRightField.Value = offset.right; offsetTopField.Value = offset.top; offsetBottomField.Value = offset.bottom; }
private static extern void Internal_SetContentOffset(IntPtr nativeInstance, ref RectOffset value);
private static extern void Internal_SetMargins(IntPtr nativeInstance, ref RectOffset value);
private static extern void Internal_SetBorder(IntPtr nativeInstance, ref RectOffset value);