Beispiel #1
0
            //--------------------------------------------------------------------------
            public static void CoordTransf(this ILayoutNode self, ref Gdi::Point pos, RectCoord before, RectCoord after)
            {
                Gdi::Point delta = self.GetLocation(before, after);

                pos.X += delta.X;
                pos.Y += delta.Y;
            }
Beispiel #2
0
 //--------------------------------------------------------------------------
 public static Gdi::Rectangle GetRect(this ILayoutNode self, RectCoord coord, RectCoord axis)
 {
     return(new Gdi::Rectangle(self.GetLocation(coord, axis), self.GetSize(coord)));
 }