134 lines
3.7 KiB
C#
134 lines
3.7 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000275 RID: 629
|
|
[Serializable]
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class GUIStyleState
|
|
{
|
|
// Token: 0x06002AE1 RID: 10977 RVA: 0x00038BE0 File Offset: 0x00036DE0
|
|
public GUIStyleState()
|
|
{
|
|
this.Init();
|
|
}
|
|
|
|
// Token: 0x06002AE2 RID: 10978 RVA: 0x00038BF0 File Offset: 0x00036DF0
|
|
private GUIStyleState(GUIStyle sourceStyle, IntPtr source)
|
|
{
|
|
this.m_SourceStyle = sourceStyle;
|
|
this.m_Ptr = source;
|
|
}
|
|
|
|
// Token: 0x06002AE3 RID: 10979 RVA: 0x00038C08 File Offset: 0x00036E08
|
|
internal static GUIStyleState ProduceGUIStyleStateFromDeserialization(GUIStyle sourceStyle, IntPtr source)
|
|
{
|
|
GUIStyleState guistyleState = new GUIStyleState(sourceStyle, source);
|
|
guistyleState.m_Background = guistyleState.GetBackgroundInternalFromDeserialization();
|
|
return guistyleState;
|
|
}
|
|
|
|
// Token: 0x06002AE4 RID: 10980 RVA: 0x00038C34 File Offset: 0x00036E34
|
|
internal static GUIStyleState GetGUIStyleState(GUIStyle sourceStyle, IntPtr source)
|
|
{
|
|
GUIStyleState guistyleState = new GUIStyleState(sourceStyle, source);
|
|
guistyleState.m_Background = guistyleState.GetBackgroundInternal();
|
|
return guistyleState;
|
|
}
|
|
|
|
// Token: 0x06002AE5 RID: 10981 RVA: 0x00038C60 File Offset: 0x00036E60
|
|
~GUIStyleState()
|
|
{
|
|
if (this.m_SourceStyle == null)
|
|
{
|
|
this.Cleanup();
|
|
}
|
|
}
|
|
|
|
// Token: 0x170009DD RID: 2525
|
|
// (get) Token: 0x06002AE6 RID: 10982 RVA: 0x00038C9C File Offset: 0x00036E9C
|
|
// (set) Token: 0x06002AE7 RID: 10983 RVA: 0x00038CB8 File Offset: 0x00036EB8
|
|
public Texture2D background
|
|
{
|
|
get
|
|
{
|
|
return this.GetBackgroundInternal();
|
|
}
|
|
set
|
|
{
|
|
this.SetBackgroundInternal(value);
|
|
this.m_Background = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002AE8 RID: 10984
|
|
[ThreadAndSerializationSafe]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void Init();
|
|
|
|
// Token: 0x06002AE9 RID: 10985
|
|
[ThreadAndSerializationSafe]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void Cleanup();
|
|
|
|
// Token: 0x06002AEA RID: 10986
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void SetBackgroundInternal(Texture2D value);
|
|
|
|
// Token: 0x06002AEB RID: 10987
|
|
[ThreadAndSerializationSafe]
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern Texture2D GetBackgroundInternalFromDeserialization();
|
|
|
|
// Token: 0x06002AEC RID: 10988
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern Texture2D GetBackgroundInternal();
|
|
|
|
// Token: 0x170009DE RID: 2526
|
|
// (get) Token: 0x06002AED RID: 10989 RVA: 0x00038CCC File Offset: 0x00036ECC
|
|
// (set) Token: 0x06002AEE RID: 10990 RVA: 0x00038CEC File Offset: 0x00036EEC
|
|
public Color textColor
|
|
{
|
|
get
|
|
{
|
|
Color color;
|
|
this.INTERNAL_get_textColor(out color);
|
|
return color;
|
|
}
|
|
set
|
|
{
|
|
this.INTERNAL_set_textColor(ref value);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002AEF RID: 10991
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_get_textColor(out Color value);
|
|
|
|
// Token: 0x06002AF0 RID: 10992
|
|
[GeneratedByOldBindingsGenerator]
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
private extern void INTERNAL_set_textColor(ref Color value);
|
|
|
|
// Token: 0x040007C0 RID: 1984
|
|
[NonSerialized]
|
|
internal IntPtr m_Ptr;
|
|
|
|
// Token: 0x040007C1 RID: 1985
|
|
private readonly GUIStyle m_SourceStyle;
|
|
|
|
// Token: 0x040007C2 RID: 1986
|
|
[NonSerialized]
|
|
private Texture2D m_Background;
|
|
}
|
|
}
|