Beispiel #1
0
        public static void PaintMinusZoomButton(IGraphics g, Brush2 b, int x, int y, int bsize)
        {
            Pen2 w = new Pen2(Color2.White, 2);

            PaintRoundButton(g, b, w, x, y, bsize);
            g.DrawLine(w, x + 4, y + bsize / 2, x + bsize - 4, y + bsize / 2);
        }
Beispiel #2
0
        public static void PaintMoveRightButton(IGraphics g, Brush2 b, int x, int y, int bsize)
        {
            Pen2 w = new Pen2(Color2.White, 2);

            PaintRoundButton(g, b, w, x, y, bsize);
            g.FillClosedCurve(Brushes2.White,
                              new[] { new Point2(x + bsize - 4, y + bsize / 2), new Point2(x + 4, y + 5), new Point2(x + 4, y + bsize - 5) });
        }
Beispiel #3
0
 public static void PaintRoundButton(IGraphics g, Brush2 b, Pen2 w, int x, int y, int size, bool selected)
 {
     if (selected)
     {
         g.FillEllipse(Brushes2.Red, x - 1, y - 1, size + 2, size + 2);
     }
     g.FillEllipse(b, x, y, size, size);
     g.DrawEllipse(w, x + 2, y + 2, size - 4, size - 4);
 }
Beispiel #4
0
 public static void PaintRoundButton(IGraphics g, Brush2 b, Pen2 w, int x, int y, int size)
 {
     PaintRoundButton(g, b, w, x, y, size, false);
 }