internal override void Draw(PixelDrawer pixelDrawer) { base.Draw(pixelDrawer); horizontalScrollBar.Draw(pixelDrawer); verticalScrollBar.Draw(pixelDrawer); pixelDrawer.DrawRectangle(new Position(position.x + constrainedSize.width, position.y + constrainedSize.height), new Size(16, 16), theme.Foreground); pixelDrawer.constrainedPosition = position; pixelDrawer.constrainedSize = constrainedSize; widget.Draw(pixelDrawer); pixelDrawer.constrainedPosition = null; pixelDrawer.constrainedSize = null; }
internal override void Draw(PixelDrawer pixelDrawer) { base.Draw(pixelDrawer); //Console.WriteLine("scrollPosition {0}", scrollPosition); pixelDrawer.DrawRectangle(scrollPosition, scrollSize, theme.Foreground); }