// Move or resize this window. void IToolkitWindow.MoveResize(int x, int y, int width, int height) { DrawingToolkit.ValidateWindowPosition(ref x, ref y); DrawingToolkit.ValidateWindowSize(ref width, ref height); Move(x, y); Resize(width, height); }
// Invalidate a rectangle within this window. void IToolkitWindow.Invalidate(int x, int y, int width, int height) { DrawingToolkit.ValidateWindowPosition(ref x, ref y); DrawingToolkit.ValidateWindowSize(ref width, ref height); Repaint(x, y, width + 1, height + 1); }