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

// Token: 0x02000294 RID: 660
public class UIKeyBindingHandler : UIHandlerBase
{
	// Token: 0x17001F64 RID: 8036
	// (get) Token: 0x06005983 RID: 22915 RVA: 0x00167100 File Offset: 0x00165300
	public unsafe bool IsUnmodifiable
	{
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 24549, RefRangeEnd = 24550, XrefRangeStart = 24549, XrefRangeEnd = 24550, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIKeyBindingHandler.NativeMethodInfoPtr_get_IsUnmodifiable_Public_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x06005984 RID: 22916 RVA: 0x00167150 File Offset: 0x00165350
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585291, XrefRangeEnd = 585301, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Init(bool isGamepad)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isGamepad;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIKeyBindingHandler.NativeMethodInfoPtr_Init_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005985 RID: 22917 RVA: 0x001671A4 File Offset: 0x001653A4
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 585314, RefRangeEnd = 585318, XrefRangeStart = 585301, XrefRangeEnd = 585314, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateIcon(bool isGamepad)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isGamepad;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIKeyBindingHandler.NativeMethodInfoPtr_UpdateIcon_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005986 RID: 22918 RVA: 0x001671F8 File Offset: 0x001653F8
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585318, XrefRangeEnd = 585331, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnSelect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIKeyBindingHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005987 RID: 22919 RVA: 0x00167248 File Offset: 0x00165448
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585331, XrefRangeEnd = 585344, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnDeselect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIKeyBindingHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005988 RID: 22920 RVA: 0x00167298 File Offset: 0x00165498
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585344, XrefRangeEnd = 585345, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabel(string text)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(text);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIKeyBindingHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005989 RID: 22921 RVA: 0x001672F4 File Offset: 0x001654F4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 585345, XrefRangeEnd = 585348, 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(UIKeyBindingHandler.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600598A RID: 22922 RVA: 0x00167350 File Offset: 0x00165550
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIKeyBindingHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIKeyBindingHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600598B RID: 22923 RVA: 0x0016739C File Offset: 0x0016559C
	// Note: this type is marked as 'beforefieldinit'.
	static UIKeyBindingHandler()
	{
		Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIKeyBindingHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr);
		UIKeyBindingHandler.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, "label");
		UIKeyBindingHandler.NativeFieldInfoPtr_iconRoot = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, "iconRoot");
		UIKeyBindingHandler.NativeFieldInfoPtr_icon = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, "icon");
		UIKeyBindingHandler.NativeFieldInfoPtr_value = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, "value");
		UIKeyBindingHandler.NativeFieldInfoPtr_isUnmodifiable = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, "isUnmodifiable");
		UIKeyBindingHandler.NativeMethodInfoPtr_get_IsUnmodifiable_Public_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669506);
		UIKeyBindingHandler.NativeMethodInfoPtr_Init_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669507);
		UIKeyBindingHandler.NativeMethodInfoPtr_UpdateIcon_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669508);
		UIKeyBindingHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669509);
		UIKeyBindingHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669510);
		UIKeyBindingHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669511);
		UIKeyBindingHandler.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669512);
		UIKeyBindingHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100669513);
	}

	// Token: 0x0600598C RID: 22924 RVA: 0x0015B1F8 File Offset: 0x001593F8
	public UIKeyBindingHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F5F RID: 8031
	// (get) Token: 0x0600598D RID: 22925 RVA: 0x001674D0 File Offset: 0x001656D0
	// (set) Token: 0x0600598E RID: 22926 RVA: 0x00167504 File Offset: 0x00165704
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.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(UIKeyBindingHandler.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F60 RID: 8032
	// (get) Token: 0x0600598F RID: 22927 RVA: 0x0016752C File Offset: 0x0016572C
	// (set) Token: 0x06005990 RID: 22928 RVA: 0x00167560 File Offset: 0x00165760
	public unsafe RectTransform iconRoot
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.NativeFieldInfoPtr_iconRoot);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new RectTransform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.NativeFieldInfoPtr_iconRoot), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F61 RID: 8033
	// (get) Token: 0x06005991 RID: 22929 RVA: 0x00167588 File Offset: 0x00165788
	// (set) Token: 0x06005992 RID: 22930 RVA: 0x001675BC File Offset: 0x001657BC
	public unsafe Image icon
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.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(UIKeyBindingHandler.NativeFieldInfoPtr_icon), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F62 RID: 8034
	// (get) Token: 0x06005993 RID: 22931 RVA: 0x001675E4 File Offset: 0x001657E4
	// (set) Token: 0x06005994 RID: 22932 RVA: 0x00167618 File Offset: 0x00165818
	public unsafe Text value
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.NativeFieldInfoPtr_value);
			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(UIKeyBindingHandler.NativeFieldInfoPtr_value), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001F63 RID: 8035
	// (get) Token: 0x06005995 RID: 22933 RVA: 0x00167640 File Offset: 0x00165840
	// (set) Token: 0x06005996 RID: 22934 RVA: 0x00167668 File Offset: 0x00165868
	public unsafe bool isUnmodifiable
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.NativeFieldInfoPtr_isUnmodifiable);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIKeyBindingHandler.NativeFieldInfoPtr_isUnmodifiable)) = value;
		}
	}

	// Token: 0x04003B82 RID: 15234
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003B83 RID: 15235
	private static readonly IntPtr NativeFieldInfoPtr_iconRoot;

	// Token: 0x04003B84 RID: 15236
	private static readonly IntPtr NativeFieldInfoPtr_icon;

	// Token: 0x04003B85 RID: 15237
	private static readonly IntPtr NativeFieldInfoPtr_value;

	// Token: 0x04003B86 RID: 15238
	private static readonly IntPtr NativeFieldInfoPtr_isUnmodifiable;

	// Token: 0x04003B87 RID: 15239
	private static readonly IntPtr NativeMethodInfoPtr_get_IsUnmodifiable_Public_get_Boolean_0;

	// Token: 0x04003B88 RID: 15240
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Void_Boolean_0;

	// Token: 0x04003B89 RID: 15241
	private static readonly IntPtr NativeMethodInfoPtr_UpdateIcon_Public_Void_Boolean_0;

	// Token: 0x04003B8A RID: 15242
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003B8B RID: 15243
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04003B8C RID: 15244
	private static readonly IntPtr NativeMethodInfoPtr_SetLabel_Public_Void_String_0;

	// Token: 0x04003B8D RID: 15245
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x04003B8E RID: 15246
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
