예제 #1
0
 public virtual void Add(TPComponent newChild)
 {
     if (!children.Contains(newChild))
     {
         children.Add(newChild);
         newChild.Parent = this;
         if (!Enabled && newChild.Enabled)
         {
             newChild.Disable();
         }
     }
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
 void TPRootPanel_OnEnable(TPComponent sender)
 {
     RequestTotalRedraw();
 }
 public override void Remove(TPComponent oldChild)
 {
     //NOP
 }
 public override void Add(TPComponent newChild)
 {
     //NOP
 }
예제 #7
0
 public virtual void Remove(TPComponent oldChild)
 {
     children.Remove(oldChild);
     oldChild.Parent = null;
 }
예제 #8
0
 public override void Remove(TPComponent oldChild)
 {
     base.Remove(oldChild);
     calculateInnerBounds();
     RequestTotalRedraw();
 }
예제 #9
0
 public override void Add(TPComponent newChild)
 {
     base.Add(newChild);
     calculateInnerBounds();
     RequestTotalRedraw();
 }