예제 #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();
        }
예제 #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();
        }
예제 #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();
        }
예제 #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();
        }
예제 #5
0
 public PixToggleButtonHandle(IComponentControl owner, ILocator locator, Gdk.Pixbuf iconOff, Gdk.Pixbuf iconOn)
     : base(owner, locator)
 {
     m_imageOff = GdkCairoHelper.PixbufToImageSurface(iconOff);
     m_imageOn  = GdkCairoHelper.PixbufToImageSurface(iconOn);
 }
예제 #6
0
 public override void BasicDrawSelected(Cairo.Context context)
 {
     context.Rectangle(GdkCairoHelper.CairoRectangle(DisplayBox));
 }