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

// Token: 0x0200024A RID: 586
public class UIKeyBindingHandler : UIHandlerBase
{
	// Token: 0x17001D77 RID: 7543
	// (get) Token: 0x06005326 RID: 21286 RVA: 0x0014C93C File Offset: 0x0014AB3C
	public unsafe bool IsUnmodifiable
	{
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 24631, RefRangeEnd = 24632, XrefRangeStart = 24631, XrefRangeEnd = 24632, 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: 0x06005327 RID: 21287 RVA: 0x0014C98C File Offset: 0x0014AB8C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 555574, XrefRangeEnd = 555584, 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: 0x06005328 RID: 21288 RVA: 0x0014C9E0 File Offset: 0x0014ABE0
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 555597, RefRangeEnd = 555601, XrefRangeStart = 555584, XrefRangeEnd = 555597, 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: 0x06005329 RID: 21289 RVA: 0x0014CA34 File Offset: 0x0014AC34
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 555601, XrefRangeEnd = 555614, 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: 0x0600532A RID: 21290 RVA: 0x0014CA84 File Offset: 0x0014AC84
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 555614, XrefRangeEnd = 555627, 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: 0x0600532B RID: 21291 RVA: 0x0014CAD4 File Offset: 0x0014ACD4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 555627, XrefRangeEnd = 555628, 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: 0x0600532C RID: 21292 RVA: 0x0014CB30 File Offset: 0x0014AD30
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 555628, XrefRangeEnd = 555631, 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: 0x0600532D RID: 21293 RVA: 0x0014CB8C File Offset: 0x0014AD8C
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 227409, RefRangeEnd = 227422, XrefRangeStart = 227409, XrefRangeEnd = 227422, 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: 0x0600532E RID: 21294 RVA: 0x0014CBD8 File Offset: 0x0014ADD8
	// 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, 100668963);
		UIKeyBindingHandler.NativeMethodInfoPtr_Init_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668964);
		UIKeyBindingHandler.NativeMethodInfoPtr_UpdateIcon_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668965);
		UIKeyBindingHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668966);
		UIKeyBindingHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668967);
		UIKeyBindingHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668968);
		UIKeyBindingHandler.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668969);
		UIKeyBindingHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIKeyBindingHandler>.NativeClassPtr, 100668970);
	}

	// Token: 0x0600532F RID: 21295 RVA: 0x00146FEC File Offset: 0x001451EC
	public UIKeyBindingHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001D72 RID: 7538
	// (get) Token: 0x06005330 RID: 21296 RVA: 0x0014CD0C File Offset: 0x0014AF0C
	// (set) Token: 0x06005331 RID: 21297 RVA: 0x0014CD40 File Offset: 0x0014AF40
	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: 0x17001D73 RID: 7539
	// (get) Token: 0x06005332 RID: 21298 RVA: 0x0014CD68 File Offset: 0x0014AF68
	// (set) Token: 0x06005333 RID: 21299 RVA: 0x0014CD9C File Offset: 0x0014AF9C
	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: 0x17001D74 RID: 7540
	// (get) Token: 0x06005334 RID: 21300 RVA: 0x0014CDC4 File Offset: 0x0014AFC4
	// (set) Token: 0x06005335 RID: 21301 RVA: 0x0014CDF8 File Offset: 0x0014AFF8
	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: 0x17001D75 RID: 7541
	// (get) Token: 0x06005336 RID: 21302 RVA: 0x0014CE20 File Offset: 0x0014B020
	// (set) Token: 0x06005337 RID: 21303 RVA: 0x0014CE54 File Offset: 0x0014B054
	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: 0x17001D76 RID: 7542
	// (get) Token: 0x06005338 RID: 21304 RVA: 0x0014CE7C File Offset: 0x0014B07C
	// (set) Token: 0x06005339 RID: 21305 RVA: 0x0014CEA4 File Offset: 0x0014B0A4
	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: 0x04003720 RID: 14112
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003721 RID: 14113
	private static readonly IntPtr NativeFieldInfoPtr_iconRoot;

	// Token: 0x04003722 RID: 14114
	private static readonly IntPtr NativeFieldInfoPtr_icon;

	// Token: 0x04003723 RID: 14115
	private static readonly IntPtr NativeFieldInfoPtr_value;

	// Token: 0x04003724 RID: 14116
	private static readonly IntPtr NativeFieldInfoPtr_isUnmodifiable;

	// Token: 0x04003725 RID: 14117
	private static readonly IntPtr NativeMethodInfoPtr_get_IsUnmodifiable_Public_get_Boolean_0;

	// Token: 0x04003726 RID: 14118
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Void_Boolean_0;

	// Token: 0x04003727 RID: 14119
	private static readonly IntPtr NativeMethodInfoPtr_UpdateIcon_Public_Void_Boolean_0;

	// Token: 0x04003728 RID: 14120
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003729 RID: 14121
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x0400372A RID: 14122
	private static readonly IntPtr NativeMethodInfoPtr_SetLabel_Public_Void_String_0;

	// Token: 0x0400372B RID: 14123
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x0400372C RID: 14124
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
