protected override bool OnExposeEvent(EventExpose evnt) { using (Cairo.Context cr = Gdk.CairoHelper.Create(evnt.Window)) { cr.LineWidth = 1; cr.SharpLineX(Allocation.X, Allocation.Y, Allocation.X, Allocation.Bottom); /*if (vScrollBar.Visible && hScrollBar.Visible) { * cr.SharpLineX (Allocation.Right, Allocation.Top, Allocation.Right, Allocation.Y + Allocation.Height / 2); * } else {*/ cr.SharpLineX(Allocation.Right, Allocation.Top, Allocation.Right, Allocation.Bottom); // } cr.SharpLineY(Allocation.Left, Allocation.Y, Allocation.Right, Allocation.Y); /* if (vScrollBar.Visible && hScrollBar.Visible) { * cr.SharpLineY (Allocation.Left, Allocation.Bottom, Allocation.Left + Allocation.Width / 2 , Allocation.Bottom); * } else {*/ cr.SharpLineY(Allocation.Left, Allocation.Bottom, Allocation.Right, Allocation.Bottom); // } cr.Color = Mono.TextEditor.Highlighting.ColorSheme.ToCairoColor(Style.Dark(State)); cr.Stroke(); } return(base.OnExposeEvent(evnt)); }
protected override bool OnExposeEvent(EventExpose evnt) { using (Cairo.Context cr = Gdk.CairoHelper.Create(evnt.Window)) { cr.LineWidth = 1; var alloc = Allocation; int right = alloc.RightInside(); int bottom = alloc.BottomInside(); cr.SharpLineX(alloc.X, alloc.Y, alloc.X, bottom); cr.SharpLineX(right, alloc.Y, right, bottom); cr.SharpLineY(alloc.X, alloc.Y, right, alloc.Y); cr.SharpLineY(alloc.X, bottom, right, bottom); cr.Color = Mono.TextEditor.Highlighting.ColorScheme.ToCairoColor(Style.Dark(State)); cr.Stroke(); } return(base.OnExposeEvent(evnt)); }
protected override bool OnExposeEvent(EventExpose evnt) { if (BorderVisible) { using (Cairo.Context cr = Gdk.CairoHelper.Create(evnt.Window)) { cr.LineWidth = 1; var alloc = Allocation; int right = alloc.RightInside(); int bottom = alloc.BottomInside(); cr.SharpLineX(alloc.X, alloc.Y, alloc.X, bottom); cr.SharpLineX(right, alloc.Y, right, bottom); cr.SharpLineY(alloc.X, alloc.Y, right, alloc.Y); cr.SharpLineY(alloc.X, bottom, right, bottom); cr.Color = (HslColor)Style.Dark(State); cr.Stroke(); } } return(base.OnExposeEvent(evnt)); }