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

// Token: 0x020002D3 RID: 723
public class UIGameTipContentElement : MonoBehaviour
{
	// Token: 0x1700210E RID: 8462
	// (get) Token: 0x06005F26 RID: 24358 RVA: 0x00180038 File Offset: 0x0017E238
	public unsafe RectTransform Root
	{
		[CallerCount(10)]
		[CachedScanResults(RefRangeStart = 7233, RefRangeEnd = 7243, XrefRangeStart = 7233, XrefRangeEnd = 7243, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		get
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_get_Root_Public_get_RectTransform_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			IntPtr intPtr3 = intPtr;
			return (intPtr3 != 0) ? new RectTransform(intPtr3) : null;
		}
	}

	// Token: 0x06005F27 RID: 24359 RVA: 0x00180090 File Offset: 0x0017E290
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 569229, RefRangeEnd = 569230, XrefRangeStart = 569214, XrefRangeEnd = 569229, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Init()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_Init_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005F28 RID: 24360 RVA: 0x001800D4 File Offset: 0x0017E2D4
	[CallerCount(0)]
	public unsafe void UpdateContent(string data, out float labelWidth)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(data);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = &labelWidth;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_UpdateContent_Public_Void_String_byref_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005F29 RID: 24361 RVA: 0x00180144 File Offset: 0x0017E344
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 569232, RefRangeEnd = 569233, XrefRangeStart = 569230, XrefRangeEnd = 569232, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateElementSize()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_UpdateElementSize_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06005F2A RID: 24362 RVA: 0x00180188 File Offset: 0x0017E388
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 569237, RefRangeEnd = 569238, XrefRangeStart = 569233, XrefRangeEnd = 569237, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateRect(bool isFirstElement)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isFirstElement;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_UpdateRect_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F2B RID: 24363 RVA: 0x001801DC File Offset: 0x0017E3DC
	[CallerCount(16)]
	[CachedScanResults(RefRangeStart = 564657, RefRangeEnd = 564673, XrefRangeStart = 564657, XrefRangeEnd = 564673, 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(UIGameTipContentElement.NativeMethodInfoPtr_UpdateAnchoredPosition_Public_Void_Vector2_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F2C RID: 24364 RVA: 0x00180230 File Offset: 0x0017E430
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569238, XrefRangeEnd = 569240, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabelVisible(bool isVisible)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isVisible;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_SetLabelVisible_Public_Void_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F2D RID: 24365 RVA: 0x00180284 File Offset: 0x0017E484
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 564497, RefRangeEnd = 564498, XrefRangeStart = 564497, XrefRangeEnd = 564498, 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(UIGameTipContentElement.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F2E RID: 24366 RVA: 0x001802E0 File Offset: 0x0017E4E0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569240, XrefRangeEnd = 569243, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetParent(Transform parent)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(parent);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_SetParent_Public_Void_Transform_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06005F2F RID: 24367 RVA: 0x0018033C File Offset: 0x0017E53C
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 218210, RefRangeEnd = 218212, XrefRangeStart = 218210, XrefRangeEnd = 218212, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetElementWidth(float width)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref width;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIGameTipContentElement.NativeMethodInfoPtr_SetElementWidth_Public_Void_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

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

	// Token: 0x06005F31 RID: 24369 RVA: 0x001803DC File Offset: 0x0017E5DC
	// Note: this type is marked as 'beforefieldinit'.
	static UIGameTipContentElement()
	{
		Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIGameTipContentElement");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr);
		UIGameTipContentElement.NativeFieldInfoPtr_root = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, "root");
		UIGameTipContentElement.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, "label");
		UIGameTipContentElement.NativeFieldInfoPtr_elementWidth = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, "elementWidth");
		UIGameTipContentElement.NativeFieldInfoPtr_DEFAULT_ELEMENT_HEIGHT = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, "DEFAULT_ELEMENT_HEIGHT");
		UIGameTipContentElement.NativeMethodInfoPtr_get_Root_Public_get_RectTransform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670094);
		UIGameTipContentElement.NativeMethodInfoPtr_Init_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670095);
		UIGameTipContentElement.NativeMethodInfoPtr_UpdateContent_Public_Void_String_byref_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670096);
		UIGameTipContentElement.NativeMethodInfoPtr_UpdateElementSize_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670097);
		UIGameTipContentElement.NativeMethodInfoPtr_UpdateRect_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670098);
		UIGameTipContentElement.NativeMethodInfoPtr_UpdateAnchoredPosition_Public_Void_Vector2_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670099);
		UIGameTipContentElement.NativeMethodInfoPtr_SetLabelVisible_Public_Void_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670100);
		UIGameTipContentElement.NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670101);
		UIGameTipContentElement.NativeMethodInfoPtr_SetParent_Public_Void_Transform_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670102);
		UIGameTipContentElement.NativeMethodInfoPtr_SetElementWidth_Public_Void_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670103);
		UIGameTipContentElement.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIGameTipContentElement>.NativeClassPtr, 100670104);
	}

	// Token: 0x06005F32 RID: 24370 RVA: 0x0000351C File Offset: 0x0000171C
	public UIGameTipContentElement(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700210A RID: 8458
	// (get) Token: 0x06005F33 RID: 24371 RVA: 0x00180538 File Offset: 0x0017E738
	// (set) Token: 0x06005F34 RID: 24372 RVA: 0x0018056C File Offset: 0x0017E76C
	public unsafe RectTransform root
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameTipContentElement.NativeFieldInfoPtr_root);
			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(UIGameTipContentElement.NativeFieldInfoPtr_root), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700210B RID: 8459
	// (get) Token: 0x06005F35 RID: 24373 RVA: 0x00180594 File Offset: 0x0017E794
	// (set) Token: 0x06005F36 RID: 24374 RVA: 0x001805C8 File Offset: 0x0017E7C8
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameTipContentElement.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(UIGameTipContentElement.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700210C RID: 8460
	// (get) Token: 0x06005F37 RID: 24375 RVA: 0x001805F0 File Offset: 0x0017E7F0
	// (set) Token: 0x06005F38 RID: 24376 RVA: 0x00180618 File Offset: 0x0017E818
	public unsafe float elementWidth
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameTipContentElement.NativeFieldInfoPtr_elementWidth);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIGameTipContentElement.NativeFieldInfoPtr_elementWidth)) = value;
		}
	}

	// Token: 0x1700210D RID: 8461
	// (get) Token: 0x06005F39 RID: 24377 RVA: 0x0018063C File Offset: 0x0017E83C
	// (set) Token: 0x06005F3A RID: 24378 RVA: 0x0018065A File Offset: 0x0017E85A
	public unsafe static float DEFAULT_ELEMENT_HEIGHT
	{
		get
		{
			float num;
			IL2CPP.il2cpp_field_static_get_value(UIGameTipContentElement.NativeFieldInfoPtr_DEFAULT_ELEMENT_HEIGHT, (void*)(&num));
			return num;
		}
		set
		{
			IL2CPP.il2cpp_field_static_set_value(UIGameTipContentElement.NativeFieldInfoPtr_DEFAULT_ELEMENT_HEIGHT, (void*)(&value));
		}
	}

	// Token: 0x04003F0D RID: 16141
	private static readonly IntPtr NativeFieldInfoPtr_root;

	// Token: 0x04003F0E RID: 16142
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04003F0F RID: 16143
	private static readonly IntPtr NativeFieldInfoPtr_elementWidth;

	// Token: 0x04003F10 RID: 16144
	private static readonly IntPtr NativeFieldInfoPtr_DEFAULT_ELEMENT_HEIGHT;

	// Token: 0x04003F11 RID: 16145
	private static readonly IntPtr NativeMethodInfoPtr_get_Root_Public_get_RectTransform_0;

	// Token: 0x04003F12 RID: 16146
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Void_0;

	// Token: 0x04003F13 RID: 16147
	private static readonly IntPtr NativeMethodInfoPtr_UpdateContent_Public_Void_String_byref_Single_0;

	// Token: 0x04003F14 RID: 16148
	private static readonly IntPtr NativeMethodInfoPtr_UpdateElementSize_Public_Void_0;

	// Token: 0x04003F15 RID: 16149
	private static readonly IntPtr NativeMethodInfoPtr_UpdateRect_Public_Void_Boolean_0;

	// Token: 0x04003F16 RID: 16150
	private static readonly IntPtr NativeMethodInfoPtr_UpdateAnchoredPosition_Public_Void_Vector2_0;

	// Token: 0x04003F17 RID: 16151
	private static readonly IntPtr NativeMethodInfoPtr_SetLabelVisible_Public_Void_Boolean_0;

	// Token: 0x04003F18 RID: 16152
	private static readonly IntPtr NativeMethodInfoPtr_SetFont_Public_Void_GameFontPack_0;

	// Token: 0x04003F19 RID: 16153
	private static readonly IntPtr NativeMethodInfoPtr_SetParent_Public_Void_Transform_0;

	// Token: 0x04003F1A RID: 16154
	private static readonly IntPtr NativeMethodInfoPtr_SetElementWidth_Public_Void_Single_0;

	// Token: 0x04003F1B RID: 16155
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
