using System; using UnityEngine.EventSystems; namespace UnityEngine.UI { // Token: 0x0200009A RID: 154 [AddComponentMenu("Layout/Layout Element", 140)] [RequireComponent(typeof(RectTransform))] [ExecuteInEditMode] public class LayoutElement : UIBehaviour, ILayoutElement, ILayoutIgnorer { // Token: 0x06000564 RID: 1380 RVA: 0x0001C9E0 File Offset: 0x0001ADE0 protected LayoutElement() { } // Token: 0x1700017D RID: 381 // (get) Token: 0x06000565 RID: 1381 RVA: 0x0001CA44 File Offset: 0x0001AE44 // (set) Token: 0x06000566 RID: 1382 RVA: 0x0001CA5F File Offset: 0x0001AE5F public virtual bool ignoreLayout { get { return this.m_IgnoreLayout; } set { if (SetPropertyUtility.SetStruct(ref this.m_IgnoreLayout, value)) { this.SetDirty(); } } } // Token: 0x06000567 RID: 1383 RVA: 0x0001CA79 File Offset: 0x0001AE79 public virtual void CalculateLayoutInputHorizontal() { } // Token: 0x06000568 RID: 1384 RVA: 0x0001CA7C File Offset: 0x0001AE7C public virtual void CalculateLayoutInputVertical() { } // Token: 0x1700017E RID: 382 // (get) Token: 0x06000569 RID: 1385 RVA: 0x0001CA80 File Offset: 0x0001AE80 // (set) Token: 0x0600056A RID: 1386 RVA: 0x0001CA9B File Offset: 0x0001AE9B public virtual float minWidth { get { return this.m_MinWidth; } set { if (SetPropertyUtility.SetStruct(ref this.m_MinWidth, value)) { this.SetDirty(); } } } // Token: 0x1700017F RID: 383 // (get) Token: 0x0600056B RID: 1387 RVA: 0x0001CAB8 File Offset: 0x0001AEB8 // (set) Token: 0x0600056C RID: 1388 RVA: 0x0001CAD3 File Offset: 0x0001AED3 public virtual float minHeight { get { return this.m_MinHeight; } set { if (SetPropertyUtility.SetStruct(ref this.m_MinHeight, value)) { this.SetDirty(); } } } // Token: 0x17000180 RID: 384 // (get) Token: 0x0600056D RID: 1389 RVA: 0x0001CAF0 File Offset: 0x0001AEF0 // (set) Token: 0x0600056E RID: 1390 RVA: 0x0001CB0B File Offset: 0x0001AF0B public virtual float preferredWidth { get { return this.m_PreferredWidth; } set { if (SetPropertyUtility.SetStruct(ref this.m_PreferredWidth, value)) { this.SetDirty(); } } } // Token: 0x17000181 RID: 385 // (get) Token: 0x0600056F RID: 1391 RVA: 0x0001CB28 File Offset: 0x0001AF28 // (set) Token: 0x06000570 RID: 1392 RVA: 0x0001CB43 File Offset: 0x0001AF43 public virtual float preferredHeight { get { return this.m_PreferredHeight; } set { if (SetPropertyUtility.SetStruct(ref this.m_PreferredHeight, value)) { this.SetDirty(); } } } // Token: 0x17000182 RID: 386 // (get) Token: 0x06000571 RID: 1393 RVA: 0x0001CB60 File Offset: 0x0001AF60 // (set) Token: 0x06000572 RID: 1394 RVA: 0x0001CB7B File Offset: 0x0001AF7B public virtual float flexibleWidth { get { return this.m_FlexibleWidth; } set { if (SetPropertyUtility.SetStruct(ref this.m_FlexibleWidth, value)) { this.SetDirty(); } } } // Token: 0x17000183 RID: 387 // (get) Token: 0x06000573 RID: 1395 RVA: 0x0001CB98 File Offset: 0x0001AF98 // (set) Token: 0x06000574 RID: 1396 RVA: 0x0001CBB3 File Offset: 0x0001AFB3 public virtual float flexibleHeight { get { return this.m_FlexibleHeight; } set { if (SetPropertyUtility.SetStruct(ref this.m_FlexibleHeight, value)) { this.SetDirty(); } } } // Token: 0x17000184 RID: 388 // (get) Token: 0x06000575 RID: 1397 RVA: 0x0001CBD0 File Offset: 0x0001AFD0 // (set) Token: 0x06000576 RID: 1398 RVA: 0x0001CBEB File Offset: 0x0001AFEB public virtual int layoutPriority { get { return this.m_LayoutPriority; } set { if (SetPropertyUtility.SetStruct(ref this.m_LayoutPriority, value)) { this.SetDirty(); } } } // Token: 0x06000577 RID: 1399 RVA: 0x0001CC05 File Offset: 0x0001B005 protected override void OnEnable() { base.OnEnable(); this.SetDirty(); } // Token: 0x06000578 RID: 1400 RVA: 0x0001CC14 File Offset: 0x0001B014 protected override void OnTransformParentChanged() { this.SetDirty(); } // Token: 0x06000579 RID: 1401 RVA: 0x0001CC1D File Offset: 0x0001B01D protected override void OnDisable() { this.SetDirty(); base.OnDisable(); } // Token: 0x0600057A RID: 1402 RVA: 0x0001CC2C File Offset: 0x0001B02C protected override void OnDidApplyAnimationProperties() { this.SetDirty(); } // Token: 0x0600057B RID: 1403 RVA: 0x0001CC35 File Offset: 0x0001B035 protected override void OnBeforeTransformParentChanged() { this.SetDirty(); } // Token: 0x0600057C RID: 1404 RVA: 0x0001CC3E File Offset: 0x0001B03E protected void SetDirty() { if (this.IsActive()) { LayoutRebuilder.MarkLayoutForRebuild(base.transform as RectTransform); } } // Token: 0x0400029E RID: 670 [SerializeField] private bool m_IgnoreLayout = false; // Token: 0x0400029F RID: 671 [SerializeField] private float m_MinWidth = -1f; // Token: 0x040002A0 RID: 672 [SerializeField] private float m_MinHeight = -1f; // Token: 0x040002A1 RID: 673 [SerializeField] private float m_PreferredWidth = -1f; // Token: 0x040002A2 RID: 674 [SerializeField] private float m_PreferredHeight = -1f; // Token: 0x040002A3 RID: 675 [SerializeField] private float m_FlexibleWidth = -1f; // Token: 0x040002A4 RID: 676 [SerializeField] private float m_FlexibleHeight = -1f; // Token: 0x040002A5 RID: 677 [SerializeField] private int m_LayoutPriority = 1; } }