setOnMouseEntered(_:)
Specifies whether the receiver accepts Mouseentered(with:) events.
Declaration
func setOnMouseEntered(_ flag: Bool)Parameters
- flag:
True if the receiver accepts future Mouseentered(with:) event messages; otherwise it ignores them.
Discussion
Accepting mouseEntered(with:) event messages allows the cursor to be made the current cursor when the cursor enters a view’s cursor rectangle.