diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-09 09:53:34 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-09 09:53:34 +0200 |
| commit | cc06e82be44573a8d5da3b3c96858e1e42c5df12 (patch) | |
| tree | b0ac3485a761d08eac137e63782e5fac10d3ea86 | |
| parent | a7f82b9ad4f5bb8f740d026377987cffd7db5725 (diff) | |
code cleaning
| -rw-r--r-- | src/GraphicObjects/Group.cs | 26 |
1 files 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
|