Beispiel #1
0
        public void Set(double l, double t, double r, double b)
        {
            var rect = new RectLtrb
            {
                Left    = l,
                Top     = t,
                FRight  = r,
                FBottom = b
            };

            if (PNode == null)
            {
                PNode = new RectNode
                {
                    Rectangle = rect
                }
            }
            ;
            else
            {
                PNode.Rectangle = rect;
                PNode.Id        = false;
            }
            Fill = true;
        }
Beispiel #2
0
 public void Reset(RectClass rin)
 {
     Id        = false;
     Rectangle = new RectLtrb
     {
         Top     = 0,
         Left    = 0,
         FRight  = rin.Width,
         FBottom = rin.Height
     };
     DelCheck();
 }