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

// Token: 0x02000283 RID: 643
public class UIHistoryHandler : MonoBehaviour
{
	// Token: 0x060057F7 RID: 22519 RVA: 0x0015FC9C File Offset: 0x0015DE9C
	[CallerCount(7)]
	[CachedScanResults(RefRangeStart = 582959, RefRangeEnd = 582966, XrefRangeStart = 582958, XrefRangeEnd = 582959, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateValue(string value)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(value);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr_UpdateValue_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060057F8 RID: 22520 RVA: 0x0015FCF8 File Offset: 0x0015DEF8
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 582967, RefRangeEnd = 582971, XrefRangeStart = 582966, XrefRangeEnd = 582967, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateAlpha(float alpha)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref alpha;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr_UpdateAlpha_Public_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060057F9 RID: 22521 RVA: 0x0015FD4C File Offset: 0x0015DF4C
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 582983, RefRangeEnd = 582987, XrefRangeStart = 582971, XrefRangeEnd = 582983, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateSize(float size)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref size;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr_UpdateSize_Public_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060057FA RID: 22522 RVA: 0x0015FDA0 File Offset: 0x0015DFA0
	[CallerCount(3)]
	[CachedScanResults(RefRangeStart = 582991, RefRangeEnd = 582994, XrefRangeStart = 582987, XrefRangeEnd = 582991, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Localize(LocalizationData data, int index)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(data);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref index;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr_Localize_Public_Void_LocalizationData_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060057FB RID: 22523 RVA: 0x0015FE0C File Offset: 0x0015E00C
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIHistoryHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIHistoryHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060057FC RID: 22524 RVA: 0x0015FE58 File Offset: 0x0015E058
	// Note: this type is marked as 'beforefieldinit'.
	static UIHistoryHandler()
	{
		Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIHistoryHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr);
		UIHistoryHandler.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, "label");
		UIHistoryHandler.NativeFieldInfoPtr_content = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, "content");
		UIHistoryHandler.NativeMethodInfoPtr_UpdateValue_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100669315);
		UIHistoryHandler.NativeMethodInfoPtr_UpdateAlpha_Public_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100669316);
		UIHistoryHandler.NativeMethodInfoPtr_UpdateSize_Public_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100669317);
		UIHistoryHandler.NativeMethodInfoPtr_Localize_Public_Void_LocalizationData_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100669318);
		UIHistoryHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIHistoryHandler>.NativeClassPtr, 100669319);
	}

	// Token: 0x060057FD RID: 22525 RVA: 0x0000351C File Offset: 0x0000171C
	public UIHistoryHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F02 RID: 7938
	// (get) Token: 0x060057FE RID: 22526 RVA: 0x0015FF14 File Offset: 0x0015E114
	// (set) Token: 0x060057FF RID: 22527 RVA: 0x0015FF48 File Offset: 0x0015E148
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIHistoryHandler.NativeFieldInfoPtr_label);
			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(UIHistoryHandler.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F03 RID: 7939
	// (get) Token: 0x06005800 RID: 22528 RVA: 0x0015FF70 File Offset: 0x0015E170
	// (set) Token: 0x06005801 RID: 22529 RVA: 0x0015FFA4 File Offset: 0x0015E1A4
	public unsafe Text content
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIHistoryHandler.NativeFieldInfoPtr_content);
			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(UIHistoryHandler.NativeFieldInfoPtr_content), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003A6D RID: 14957
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003A6E RID: 14958
	private static readonly IntPtr NativeFieldInfoPtr_content;

	// Token: 0x04003A6F RID: 14959
	private static readonly IntPtr NativeMethodInfoPtr_UpdateValue_Public_Void_String_0;

	// Token: 0x04003A70 RID: 14960
	private static readonly IntPtr NativeMethodInfoPtr_UpdateAlpha_Public_Void_Single_0;

	// Token: 0x04003A71 RID: 14961
	private static readonly IntPtr NativeMethodInfoPtr_UpdateSize_Public_Void_Single_0;

	// Token: 0x04003A72 RID: 14962
	private static readonly IntPtr NativeMethodInfoPtr_Localize_Public_Void_LocalizationData_Int32_0;

	// Token: 0x04003A73 RID: 14963
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
