From cc06e82be44573a8d5da3b3c96858e1e42c5df12 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Wed, 9 Sep 2015 09:53:34 +0200 Subject: [PATCH] code cleaning --- src/GraphicObjects/Group.cs | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index 929bae9a..18b00453 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -154,31 +154,25 @@ namespace go CairoHelpers.CairoRectangle(gr,rBack,CornerRadius); gr.Fill (); - foreach (GraphicObject g in Children.Where(ch=>ch.Visible)) { + foreach (GraphicObject g in Children) { g.Paint (ref gr); } } public override void Paint(ref Context ctx, Rectangles clip = null) { - if ( !(Visible) ) + if ( !Visible ) return; - // ctx.Save (); - -// if (clip!=null) -// clip.clearAndClip (ctx);//n'était pas actif - if (bmp == null) UpdateGraphic (); else { Rectangle rb = Parent.ContextCoordinates (Slot); - if (clip != null) { + if (clip != null) clip.Rebase (this); - //localClip = clip.intersectingRects (Slot.Size); - } else { + else { clip = new Rectangles (); //TODO:added lately slot to empty clip, //should rework this precise case causing expandable not @@ -214,8 +208,6 @@ namespace go } base.Paint (ref ctx, clip); - - // ctx.Restore(); } #endregion @@ -238,16 +230,6 @@ namespace go base.checkHoverWidget (e); } #endregion - -// public override string ToString() -// { -// string tmp = base.ToString(); -// foreach (GraphicObject w in Children) -// { -// tmp += "\n" + w.ToString(); -// } -// return tmp; -// } #region IXmlSerializable -- 2.47.3