2using System.Collections.Generic;
4using System.Reflection;
5using System.Diagnostics;
6using System.Runtime.CompilerServices;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Input;
12using Microsoft.Xna.Framework.Graphics;
19 public partial class CUIComponent
21 #region Layout --------------------------------------------------------
23 protected CUILayout layout;
25 public virtual CUILayout Layout
28 set { layout = value; layout.Host =
this; }
31 public event Action OnLayoutUpdated;
32 public void InvokeOnLayoutUpdated() => OnLayoutUpdated?.Invoke();
37 internal void OnPropChanged([CallerMemberName]
string memberName =
"")
39 Layout.Changed =
true;
40 CUIDebug.Capture(
null,
this,
"OnPropChanged", memberName,
"Layout.Changed",
"true");
43 internal void OnSelfAndParentChanged([CallerMemberName]
string memberName =
"")
45 Layout.SelfAndParentChanged =
true;
46 CUIDebug.Capture(
null,
this,
"OnSelfAndParentChanged", memberName,
"Layout.SelfAndParentChanged",
"true");
53 internal void OnDecorPropChanged([CallerMemberName]
string memberName =
"")
55 Layout.DecorChanged =
true;
56 CUIDebug.Capture(
null,
this,
"OnDecorPropChanged", memberName,
"Layout.DecorChanged",
"true");
62 internal void OnAbsolutePropChanged([CallerMemberName]
string memberName =
"")
64 Layout.AbsoluteChanged =
true;
65 CUIDebug.Capture(
null,
this,
"OnAbsolutePropChanged", memberName,
"Layout.AbsoluteChanged",
"true");
71 internal void OnChildrenPropChanged([CallerMemberName]
string memberName =
"")
73 Layout.ChildChanged =
true;
CUIMainComponent MainComponent
Link to CUIMainComponent, passed to children.