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

// Token: 0x020002DF RID: 735
public class UILabelHandler : UIHandlerBase
{
	// Token: 0x0600604F RID: 24655 RVA: 0x00185238 File Offset: 0x00183438
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595391, XrefRangeEnd = 595395, 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: 0x06006050 RID: 24656 RVA: 0x00185288 File Offset: 0x00183488
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595395, XrefRangeEnd = 595399, 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: 0x06006051 RID: 24657 RVA: 0x001852D8 File Offset: 0x001834D8
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 595411, RefRangeEnd = 595413, XrefRangeStart = 595399, XrefRangeEnd = 595411, 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: 0x06006052 RID: 24658 RVA: 0x0018532C File Offset: 0x0018352C
	[CallerCount(54)]
	[CachedScanResults(RefRangeStart = 595416, RefRangeEnd = 595470, XrefRangeStart = 595413, XrefRangeEnd = 595416, 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: 0x06006053 RID: 24659 RVA: 0x00185388 File Offset: 0x00183588
	[CallerCount(29)]
	[CachedScanResults(RefRangeStart = 595472, RefRangeEnd = 595501, XrefRangeStart = 595470, XrefRangeEnd = 595472, 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: 0x06006054 RID: 24660 RVA: 0x001853E4 File Offset: 0x001835E4
	[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: 0x06006055 RID: 24661 RVA: 0x00185434 File Offset: 0x00183634
	[CallerCount(13)]
	[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, 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: 0x06006056 RID: 24662 RVA: 0x00185480 File Offset: 0x00183680
	// 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, 100670216);
		UILabelHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100670217);
		UILabelHandler.NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100670218);
		UILabelHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100670219);
		UILabelHandler.NativeMethodInfoPtr_SetFont_Public_Void_Font_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100670220);
		UILabelHandler.NativeMethodInfoPtr_GetWidth_Public_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100670221);
		UILabelHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILabelHandler>.NativeClassPtr, 100670222);
	}

	// Token: 0x06006057 RID: 24663 RVA: 0x0015B1F8 File Offset: 0x001593F8
	public UILabelHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700214A RID: 8522
	// (get) Token: 0x06006058 RID: 24664 RVA: 0x00185550 File Offset: 0x00183750
	// (set) Token: 0x06006059 RID: 24665 RVA: 0x00185584 File Offset: 0x00183784
	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: 0x0400400F RID: 16399
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04004010 RID: 16400
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x04004011 RID: 16401
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x04004012 RID: 16402
	private static readonly IntPtr NativeMethodInfoPtr_UpdateScale_Private_Void_Single_0;

	// Token: 0x04004013 RID: 16403
	private static readonly IntPtr NativeMethodInfoPtr_SetLabel_Public_Void_String_0;

	// Token: 0x04004014 RID: 16404
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_Font_0;

	// Token: 0x04004015 RID: 16405
	private static readonly IntPtr NativeMethodInfoPtr_GetWidth_Public_Single_0;

	// Token: 0x04004016 RID: 16406
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
