aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-05 18:32:18 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-05 18:32:18 +0200
commitb9e90a3df66f4bd8228c1246af830d7801ea57ba (patch)
tree8de343d8341be621c4b5daa12899155e0bc2f26a /src/GraphicObjects/TemplatedControl.cs
parente9963abca14fbad8ff6c215e5c9d6b45652b38dc (diff)
TreeView
template access with './', update all templates binding path begining with '/' starts at current level
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
-rw-r--r--src/GraphicObjects/TemplatedControl.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs
index 744cd329..f1c719f6 100644
--- a/src/GraphicObjects/TemplatedControl.cs
+++ b/src/GraphicObjects/TemplatedControl.cs
@@ -99,6 +99,17 @@ namespace Crow
//prevent name searching in template
return nameToFind == this.Name ? this : null;
}
+ protected override void onDraw (Cairo.Context gr)
+ {
+ gr.Save ();
+ //clip to client zone
+ CairoHelpers.CairoRectangle (gr, ClientRectangle, CornerRadius);
+ gr.Clip ();
+
+ if (child != null)
+ child.Paint (ref gr);
+ gr.Restore ();
+ }
#endregion
protected virtual void loadTemplate(GraphicObject template = null)