Exemplo n.º 1
0
        public void Draw(Batcher2D batcher)
        {
            var rect       = new RectangleF(Position, Size);
            var borderRect = rect;

            borderRect = borderRect.Inflate(HalfBorderThickness, HalfBorderThickness);

            batcher.DrawRect(borderRect, BorderColor, BorderThickness);
            batcher.FillRect(rect, FillColor);
        }