예제 #1
0
 // 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);
 }
예제 #2
0
 // 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);
 }