<Reference Include="gio-sharp"/>
<Reference Include="glib-sharp"/>
<Reference Include="OpenTK">
- <HintPath>$(SolutionDir)packages\OpenTK.Next.1.2.2336.6514-pre\lib\net20\OpenTK.dll</HintPath>
+ <HintPath>..\packages\OpenTK.2.0.0\lib\net20\OpenTK.dll</HintPath>
</Reference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Bottom,
Center,
}
-
- public enum RectanglesRelations
- {
- NoRelation, //nothing to do
- Intersect, //clipped clear & repaint, no test
- Contains, //clipped clear & repaint, test children
- Equal //repaint, no test
- }
}
lock (CurrentInterface.LayoutMutex) {
g = iTemp.CreateInstance(CurrentInterface);
page.AddChild (g);
+ //g.LogicalParent = this;
registerItemClick (g);
}
(g as Expandable).Expand += iTemp.Expand;
(g as Expandable).GetIsExpandable = iTemp.HasSubItems;
}
- //g.LogicalParent = this;
-
g.DataSource = data [i];
}
{
return r1.TopLeft == r2.TopLeft && r1.Size == r2.Size ? false : true;
}
- #endregion
-
- public RectanglesRelations test(Rectangle r)
- {
- if (r == this)
- return RectanglesRelations.Equal;
-
- int nbrPtIncluded = 0;
-
- if (this.ContainsOrIsEqual(r.TopLeft))
- nbrPtIncluded++;
- if (this.ContainsOrIsEqual(r.TopRight))
- nbrPtIncluded++;
- if (this.ContainsOrIsEqual(r.BottomLeft))
- nbrPtIncluded++;
- if (this.ContainsOrIsEqual(r.BottomRight))
- nbrPtIncluded++;
-
- switch (nbrPtIncluded)
- {
- case 0:
- return RectanglesRelations.NoRelation;
- case 4:
- return RectanglesRelations.Contains;
- default:
- return RectanglesRelations.Intersect;
- }
- }
+ #endregion
public static readonly Rectangle Zero = new Rectangle(0, 0, 0, 0);
public static Rectangle Empty
}
public void clear(Context ctx)
{
- //ctx.Save();
-
foreach (Rectangle r in list)
- {
ctx.Rectangle(r);
- }
ctx.Operator = Operator.Clear;
ctx.Fill();
ctx.Operator = Operator.Over;
- //ctx.Restore();
}
public override string ToString ()
{