CrossUI.Drawing.BoundsTracker.trackAlignedRect C# (CSharp) Method

trackAlignedRect() public method

public trackAlignedRect ( Rectangle rectangle ) : void
rectangle Rectangle
return void
        public void trackAlignedRect(Rectangle rectangle)
        {
            if (!State.StrokeEnabled)
            {
                trackRect(rectangle);
                return;
            }

            var b = State.StrokeAlignedBounds(rectangle);
            trackPoints(b.LeftTop, b.RightTop, b.RightBottom, b.LeftBottom);
        }

Usage Example

 public void Rectangle(Rectangle rectangle)
 {
     _tracker.trackAlignedRect(rectangle);
 }