public virtual void Add(TPComponent newChild) { if (!children.Contains(newChild)) { children.Add(newChild); newChild.Parent = this; if (!Enabled && newChild.Enabled) { newChild.Disable(); } } }
internal override void FingerOver(int xPos, int yPos) { TPComponent child = GetChildAtPosition(new Point(xPos, yPos)); if (child != null) { child.FingerOver(xPos - child.Position.X, yPos - child.Position.Y); } else { base.FingerOver(xPos, yPos); } }
internal override void Released(uint touches, int xPos, int yPos) { TPComponent child = GetChildAtPosition(new Point(xPos, yPos)); if (child != null) { child.Released(touches, xPos - child.Position.X, yPos - child.Position.Y); } else { base.Released(touches, xPos, yPos); } }
void TPRootPanel_OnEnable(TPComponent sender) { RequestTotalRedraw(); }
public override void Remove(TPComponent oldChild) { //NOP }
public override void Add(TPComponent newChild) { //NOP }
public virtual void Remove(TPComponent oldChild) { children.Remove(oldChild); oldChild.Parent = null; }
public override void Remove(TPComponent oldChild) { base.Remove(oldChild); calculateInnerBounds(); RequestTotalRedraw(); }
public override void Add(TPComponent newChild) { base.Add(newChild); calculateInnerBounds(); RequestTotalRedraw(); }