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

// Token: 0x020002D3 RID: 723
public class UIPageNumber : MonoBehaviour
{
	// Token: 0x06005F94 RID: 24468 RVA: 0x00181EB4 File Offset: 0x001800B4
	[CallerCount(6)]
	[CachedScanResults(RefRangeStart = 594776, RefRangeEnd = 594782, XrefRangeStart = 594766, XrefRangeEnd = 594776, 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: 0x06005F95 RID: 24469 RVA: 0x00181F08 File Offset: 0x00180108
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 594782, XrefRangeEnd = 594790, 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: 0x06005F96 RID: 24470 RVA: 0x00181F5C File Offset: 0x0018015C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 594792, RefRangeEnd = 594793, XrefRangeStart = 594790, XrefRangeEnd = 594792, 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: 0x06005F97 RID: 24471 RVA: 0x00181FB8 File Offset: 0x001801B8
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x06005F98 RID: 24472 RVA: 0x00182004 File Offset: 0x00180204
	// 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, 100670143);
		UIPageNumber.NativeMethodInfoPtr_UpdatePageNumber_Private_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100670144);
		UIPageNumber.NativeMethodInfoPtr_SetFont_Public_Void_Font_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100670145);
		UIPageNumber.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIPageNumber>.NativeClassPtr, 100670146);
	}

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

	// Token: 0x17002117 RID: 8471
	// (get) Token: 0x06005F9A RID: 24474 RVA: 0x001820AC File Offset: 0x001802AC
	// (set) Token: 0x06005F9B RID: 24475 RVA: 0x001820E0 File Offset: 0x001802E0
	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: 0x17002118 RID: 8472
	// (get) Token: 0x06005F9C RID: 24476 RVA: 0x00182108 File Offset: 0x00180308
	// (set) Token: 0x06005F9D RID: 24477 RVA: 0x0018213C File Offset: 0x0018033C
	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: 0x04003F94 RID: 16276
	private static readonly IntPtr NativeFieldInfoPtr_pageNumber;

	// Token: 0x04003F95 RID: 16277
	private static readonly IntPtr NativeFieldInfoPtr_pageDots;

	// Token: 0x04003F96 RID: 16278
	private static readonly IntPtr NativeMethodInfoPtr_UpdateIndex_Public_Void_Int32_0;

	// Token: 0x04003F97 RID: 16279
	private static readonly IntPtr NativeMethodInfoPtr_UpdatePageNumber_Private_Void_Int32_0;

	// Token: 0x04003F98 RID: 16280
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_Font_0;

	// Token: 0x04003F99 RID: 16281
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
