Overview | Methods | Fields | This Package | All Packages
Specifies the cursor's clipping rectangle.
Syntax
public final static void setClip( Rectangle r )
Parameters
r
A Rectangle object that specifies the clipping rectangle. If this parameter is null, the cursor is free to move anywhere on the screen.
Remarks
When you set a clipping rectangle on a cursor, the cursor is confined to the specified area of the screen. If a subsequent cursor position (set by calling setClip or by moving the mouse) lies outside this rectangle, Windows automatically adjusts the cursor position to remain in the clip area.
Cursor clipping is reset if the user switches applications.
See Also getClip