---
title: "setCursorFor(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/setcursorfor(_:)"
---

# setCursorFor(_:)

Sets the type of mouse cursor according to the type of area the mouse cursor is over.

## Declaration

```swift
func setCursorFor(_ area: PDFAreaOfInterest)
```

## Discussion

Discussion This method is especially useful for custom subclasses of the PDFView class.

## See Also

### Working with Mouse Position and Events

- [areaOfInterest(forMouse:)](pdfkit/pdfview/areaofinterest(formouse:).md)
- [areaOfInterest(for:)](pdfkit/pdfview/areaofinterest(for:).md)
- [PDFAreaOfInterest](pdfkit/pdfareaofinterest.md)
- [perform(_:)](pdfkit/pdfview/perform(_:).md)
- [Drag Operations](pdfkit/drag-operations.md)
