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

// Token: 0x02000294 RID: 660
public class UILabelHandler : UIHandlerBase
{
	// Token: 0x060059D7 RID: 22999 RVA: 0x0016A2DC File Offset: 0x001684DC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565300, XrefRangeEnd = 565304, 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), UILabelHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059D8 RID: 23000 RVA: 0x0016A32C File Offset: 0x0016852C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 565304, XrefRangeEnd = 565308, 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), UILabelHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059D9 RID: 23001 RVA: 0x0016A37C File Offset: 0x0016857C
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 565320, RefRangeEnd = 565322, XrefRangeStart = 565308, XrefRangeEnd = 565320, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateScale(float scale)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref scale;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILabelHandler.NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060059DA RID: 23002 RVA: 0x0016A3D0 File Offset: 0x001685D0
	[CallerCount(49)]
	[CachedScanResults(RefRangeStart = 565325, RefRangeEnd = 565374, XrefRangeStart = 565322, XrefRangeEnd = 565325, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabel(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(UILabelHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060059DB RID: 23003 RVA: 0x0016A42C File Offset: 0x0016862C
	[CallerCount(26)]
	[CachedScanResults(RefRangeStart = 565376, RefRangeEnd = 565402, XrefRangeStart = 565374, XrefRangeEnd = 565376, 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(UILabelHandler.NativeMethodInfoPtr_SetFont_Public_Void_Font_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060059DC RID: 23004 RVA: 0x0016A488 File Offset: 0x00168688
	[CallerCount(0)]
	public unsafe float GetWidth()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILabelHandler.NativeMethodInfoPtr_GetWidth_Public_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return *IL2CPP.il2cpp_object_unbox(intPtr);
	}

	// Token: 0x060059DD RID: 23005 RVA: 0x0016A4D8 File Offset: 0x001686D8
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 227409, RefRangeEnd = 227422, XrefRangeStart = 227409, XrefRangeEnd = 227422, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UILabelHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILabelHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060059DE RID: 23006 RVA: 0x0016A524 File Offset: 0x00168724
	// Note: this type is marked as 'beforefieldinit'.
	static UILabelHandler()
	{
		Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UILabelHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr);
		UILabelHandler.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, "label");
		UILabelHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669660);
		UILabelHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669661);
		UILabelHandler.NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669662);
		UILabelHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669663);
		UILabelHandler.NativeMethodInfoPtr_SetFont_Public_Void_Font_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669664);
		UILabelHandler.NativeMethodInfoPtr_GetWidth_Public_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669665);
		UILabelHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100669666);
	}

	// Token: 0x060059DF RID: 23007 RVA: 0x00146FEC File Offset: 0x001451EC
	public UILabelHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F56 RID: 8022
	// (get) Token: 0x060059E0 RID: 23008 RVA: 0x0016A5F4 File Offset: 0x001687F4
	// (set) Token: 0x060059E1 RID: 23009 RVA: 0x0016A628 File Offset: 0x00168828
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILabelHandler.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(UILabelHandler.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04003B9A RID: 15258
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003B9B RID: 15259
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04003B9C RID: 15260
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04003B9D RID: 15261
	private static readonly IntPtr NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0;

	// Token: 0x04003B9E RID: 15262
	private static readonly IntPtr NativeMethodInfoPtr_SetLabel_Public_Void_String_0;

	// Token: 0x04003B9F RID: 15263
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_Font_0;

	// Token: 0x04003BA0 RID: 15264
	private static readonly IntPtr NativeMethodInfoPtr_GetWidth_Public_Single_0;

	// Token: 0x04003BA1 RID: 15265
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
