Ejemplo n.º 1
0
        public override void BasicDrawSelected(Cairo.Context context)
        {
            context.LineWidth = 1.0;
            RectangleD rect = DisplayBox;

            rect.OffsetDot5();
            context.Rectangle(GdkCairoHelper.CairoRectangle(rect));
            context.Stroke();
        }
Ejemplo n.º 2
0
        protected override void DrawFrame(Cairo.Context context, double lineWidth, Cairo.Color lineColor, Cairo.Color fillColor)
        {
            RectangleD rect = DisplayBox;

            rect.OffsetDot5();
            context.Rectangle(GdkCairoHelper.CairoRectangle(rect));
            context.Color = fillColor;
            context.FillPreserve();
            context.Color     = lineColor;
            context.LineWidth = lineWidth;
            context.Stroke();
        }
Ejemplo n.º 3
0
        public virtual void Draw(Context context, IDrawingView view)
        {
            RectangleD rect = ViewDisplayBox(view);

            context.Save();
            context.LineWidth = LineWidth;
            context.Rectangle(GdkCairoHelper.CairoRectangle(rect));
            context.Color = FillColor;
            context.FillPreserve();
            context.Color = LineColor;
            context.Stroke();
            context.Restore();
        }
Ejemplo n.º 4
0
        public override void BasicDraw(Context context)
        {
            RectangleD displayBox = DisplayBox;

            context.LineWidth = LineWidth;
            context.Save();
            displayBox.OffsetDot5();
            context.Rectangle(GdkCairoHelper.CairoRectangle(displayBox));
            context.Restore();
            context.Color = FillColor;
            context.FillPreserve();
            context.Color = LineColor;
            context.Stroke();
        }
Ejemplo n.º 5
0
 public override void BasicDrawSelected(Cairo.Context context)
 {
     context.Rectangle(GdkCairoHelper.CairoRectangle(DisplayBox));
 }