diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-14 15:07:08 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-14 15:07:08 +0200 |
| commit | 721fa8de23a9c56396c1df9f012682b7f65775fb (patch) | |
| tree | 52f87a88f9728306fa76806b8d5212b6b44379d4 /src/GraphicObjects/TemplatedControl.cs | |
| parent | 9d0137b1d39e62b09437b6a11e8dcf1318e2a7eb (diff) | |
adjusting stroke position to have sharper lines, ClipToClientRect property
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedControl.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs index 4745b87b..b10d89eb 100644 --- a/src/GraphicObjects/TemplatedControl.cs +++ b/src/GraphicObjects/TemplatedControl.cs @@ -82,9 +82,12 @@ namespace Crow protected override void onDraw (Cairo.Context gr) { gr.Save (); - //clip to client zone - CairoHelpers.CairoRectangle (gr, ClientRectangle, CornerRadius); - gr.Clip (); + + if (ClipToClientRect) { + //clip to client zone + CairoHelpers.CairoRectangle (gr, ClientRectangle, CornerRadius); + gr.Clip (); + } if (child != null) child.Paint (ref gr); |