コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: ScollBar.cs プロジェクト: automaton641/Sol
 internal override void Draw(PixelDrawer pixelDrawer)
 {
     base.Draw(pixelDrawer);
     //Console.WriteLine("scrollPosition {0}", scrollPosition);
     pixelDrawer.DrawRectangle(scrollPosition, scrollSize, theme.Foreground);
 }