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

// Token: 0x02000286 RID: 646
public class UIInputIcon : MonoBehaviour
{
	// Token: 0x060058F9 RID: 22777 RVA: 0x001665AC File Offset: 0x001647AC
	[CallerCount(21)]
	[CachedScanResults(RefRangeStart = 564470, RefRangeEnd = 564491, XrefRangeStart = 564460, XrefRangeEnd = 564470, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateStyle(ControllerDevice device, string keyName)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref device;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(keyName);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIInputIcon.NativeMethodInfoPtr_UpdateStyle_Public_Void_ControllerDevice_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060058FA RID: 22778 RVA: 0x00166618 File Offset: 0x00164818
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 564494, RefRangeEnd = 564495, XrefRangeStart = 564491, XrefRangeEnd = 564494, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateAnchoredPosition(Vector2 position)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref position;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIInputIcon.NativeMethodInfoPtr_UpdateAnchoredPosition_Public_Void_Vector2_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060058FB RID: 22779 RVA: 0x0016666C File Offset: 0x0016486C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 564497, RefRangeEnd = 564498, XrefRangeStart = 564495, XrefRangeEnd = 564497, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetFont(GameFontPack fontPack)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(fontPack);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIInputIcon.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060058FC RID: 22780 RVA: 0x001666C8 File Offset: 0x001648C8
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 564501, RefRangeEnd = 564502, XrefRangeStart = 564498, XrefRangeEnd = 564501, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe float GetIconWidth()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIInputIcon.NativeMethodInfoPtr_GetIconWidth_Public_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return *IL2CPP.il2cpp_object_unbox(intPtr);
	}

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

	// Token: 0x060058FE RID: 22782 RVA: 0x00166764 File Offset: 0x00164964
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564502, XrefRangeEnd = 564512, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Method_Private_Void_String_PDM_0(string key)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(key);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIInputIcon.NativeMethodInfoPtr_Method_Private_Void_String_PDM_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060058FF RID: 22783 RVA: 0x001667C0 File Offset: 0x001649C0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 564512, XrefRangeEnd = 564522, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Method_Private_Void_String_PDM_1(string key)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(key);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIInputIcon.NativeMethodInfoPtr_Method_Private_Void_String_PDM_1, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005900 RID: 22784 RVA: 0x0016681C File Offset: 0x00164A1C
	// Note: this type is marked as 'beforefieldinit'.
	static UIInputIcon()
	{
		Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIInputIcon");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr);
		UIInputIcon.NativeFieldInfoPtr_icon = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, "icon");
		UIInputIcon.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, "label");
		UIInputIcon.NativeMethodInfoPtr_UpdateStyle_Public_Void_ControllerDevice_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669572);
		UIInputIcon.NativeMethodInfoPtr_UpdateAnchoredPosition_Public_Void_Vector2_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669573);
		UIInputIcon.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669574);
		UIInputIcon.NativeMethodInfoPtr_GetIconWidth_Public_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669575);
		UIInputIcon.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669576);
		UIInputIcon.NativeMethodInfoPtr_Method_Private_Void_String_PDM_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669577);
		UIInputIcon.NativeMethodInfoPtr_Method_Private_Void_String_PDM_1 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIInputIcon>.NativeClassPtr, 100669578);
	}

	// Token: 0x06005901 RID: 22785 RVA: 0x0000351C File Offset: 0x0000171C
	public UIInputIcon(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F18 RID: 7960
	// (get) Token: 0x06005902 RID: 22786 RVA: 0x00166900 File Offset: 0x00164B00
	// (set) Token: 0x06005903 RID: 22787 RVA: 0x00166934 File Offset: 0x00164B34
	public unsafe Image icon
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIInputIcon.NativeFieldInfoPtr_icon);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Image(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIInputIcon.NativeFieldInfoPtr_icon), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F19 RID: 7961
	// (get) Token: 0x06005904 RID: 22788 RVA: 0x0016695C File Offset: 0x00164B5C
	// (set) Token: 0x06005905 RID: 22789 RVA: 0x00166990 File Offset: 0x00164B90
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIInputIcon.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(UIInputIcon.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003B08 RID: 15112
	private static readonly IntPtr NativeFieldInfoPtr_icon;

	// Token: 0x04003B09 RID: 15113
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003B0A RID: 15114
	private static readonly IntPtr NativeMethodInfoPtr_UpdateStyle_Public_Void_ControllerDevice_String_0;

	// Token: 0x04003B0B RID: 15115
	private static readonly IntPtr NativeMethodInfoPtr_UpdateAnchoredPosition_Public_Void_Vector2_0;

	// Token: 0x04003B0C RID: 15116
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x04003B0D RID: 15117
	private static readonly IntPtr NativeMethodInfoPtr_GetIconWidth_Public_Single_0;

	// Token: 0x04003B0E RID: 15118
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x04003B0F RID: 15119
	private static readonly IntPtr NativeMethodInfoPtr_Method_Private_Void_String_PDM_0;

	// Token: 0x04003B10 RID: 15120
	private static readonly IntPtr NativeMethodInfoPtr_Method_Private_Void_String_PDM_1;
}
