using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000289 RID: 649
public class UIPageNumber : MonoBehaviour
{
	// Token: 0x0600592B RID: 22827 RVA: 0x0016740C File Offset: 0x0016560C
	[CallerCount(6)]
	[CachedScanResults(RefRangeStart = 564737, RefRangeEnd = 564743, XrefRangeStart = 564727, XrefRangeEnd = 564737, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateIndex(int currentPage)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref currentPage;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIPageNumber.NativeMethodInfoPtr_UpdateIndex_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600592C RID: 22828 RVA: 0x00167460 File Offset: 0x00165660
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564743, XrefRangeEnd = 564751, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdatePageNumber(int index)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref index;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIPageNumber.NativeMethodInfoPtr_UpdatePageNumber_Private_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600592D RID: 22829 RVA: 0x001674B4 File Offset: 0x001656B4
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 564753, RefRangeEnd = 564754, XrefRangeStart = 564751, XrefRangeEnd = 564753, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetFont(Font font)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(font);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIPageNumber.NativeMethodInfoPtr_SetFont_Public_Void_Font_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600592E RID: 22830 RVA: 0x00167510 File Offset: 0x00165710
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIPageNumber()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIPageNumber.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600592F RID: 22831 RVA: 0x0016755C File Offset: 0x0016575C
	// Note: this type is marked as 'beforefieldinit'.
	static UIPageNumber()
	{
		Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIPageNumber");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr);
		UIPageNumber.NativeFieldInfoPtr_pageNumber = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, "pageNumber");
		UIPageNumber.NativeFieldInfoPtr_pageDots = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, "pageDots");
		UIPageNumber.NativeMethodInfoPtr_UpdateIndex_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100669596);
		UIPageNumber.NativeMethodInfoPtr_UpdatePageNumber_Private_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100669597);
		UIPageNumber.NativeMethodInfoPtr_SetFont_Public_Void_Font_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100669598);
		UIPageNumber.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100669599);
	}

	// Token: 0x06005930 RID: 22832 RVA: 0x0000351C File Offset: 0x0000171C
	public UIPageNumber(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F25 RID: 7973
	// (get) Token: 0x06005931 RID: 22833 RVA: 0x00167604 File Offset: 0x00165804
	// (set) Token: 0x06005932 RID: 22834 RVA: 0x00167638 File Offset: 0x00165838
	public unsafe Text pageNumber
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIPageNumber.NativeFieldInfoPtr_pageNumber);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIPageNumber.NativeFieldInfoPtr_pageNumber), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F26 RID: 7974
	// (get) Token: 0x06005933 RID: 22835 RVA: 0x00167660 File Offset: 0x00165860
	// (set) Token: 0x06005934 RID: 22836 RVA: 0x00167694 File Offset: 0x00165894
	public unsafe Il2CppReferenceArray<Image> pageDots
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIPageNumber.NativeFieldInfoPtr_pageDots);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<Image>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIPageNumber.NativeFieldInfoPtr_pageDots), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003B2A RID: 15146
	private static readonly IntPtr NativeFieldInfoPtr_pageNumber;

	// Token: 0x04003B2B RID: 15147
	private static readonly IntPtr NativeFieldInfoPtr_pageDots;

	// Token: 0x04003B2C RID: 15148
	private static readonly IntPtr NativeMethodInfoPtr_UpdateIndex_Public_Void_Int32_0;

	// Token: 0x04003B2D RID: 15149
	private static readonly IntPtr NativeMethodInfoPtr_UpdatePageNumber_Private_Void_Int32_0;

	// Token: 0x04003B2E RID: 15150
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_Font_0;

	// Token: 0x04003B2F RID: 15151
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
