1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-21 18:37:11 +00:00

Rename protocol method.

This commit is contained in:
Thomas Harte 2025-02-21 11:37:37 -05:00
parent 4de1025468
commit 50acbb70da
3 changed files with 6 additions and 6 deletions

View File

@ -787,13 +787,13 @@ class MachineDocument:
return subview == self.volumeView || subview == self.optionsView
}
internal func scanTargetViewDidShowOSMouseCursor(_ view: CSScanTargetView) {
// The OS mouse cursor became visible, so show the volume controls.
internal func scanTargetViewDidMouseoverSubviews(_ view: CSScanTargetView) {
// The OS mouse cursor became visible, so show the options.
optionsFader.animateIn()
}
internal func scanTargetViewWouldHideOSMouseCursor(_ view: CSScanTargetView) {
// The OS mouse cursor will be hidden, so hide the volume controls.
// The OS mouse cursor will be hidden, so hide the options if visible.
optionsFader.animateOut(delay: 0.0)
}

View File

@ -77,7 +77,7 @@
Announces that the OS mouse cursor is now being displayed again, after having been invisible.
@param view The view making the announcement.
*/
- (void)scanTargetViewDidShowOSMouseCursor:(nonnull CSScanTargetView *)view;
- (void)scanTargetViewDidMouseoverSubviews:(nonnull CSScanTargetView *)view;
/*!
Announces that the OS mouse cursor would now be hidden; 'would' means that if this is not

View File

@ -306,7 +306,7 @@ static CVReturn DisplayLinkCallback(__unused CVDisplayLinkRef displayLink, const
[self scheduleMouseHideAfter:standardMouseHideInterval];
}
if(event.trackingArea == _subviewTrackingArea && !_mouseIsCaptured) {
[self.responderDelegate scanTargetViewDidShowOSMouseCursor:self];
[self.responderDelegate scanTargetViewDidMouseoverSubviews:self];
}
}
@ -339,7 +339,7 @@ static CVReturn DisplayLinkCallback(__unused CVDisplayLinkRef displayLink, const
_subviewTrackingArea &&
NSPointInRect([self convertPoint:event.locationInWindow fromView:nil], _subviewTrackingArea.rect)
) {
[self.responderDelegate scanTargetViewDidShowOSMouseCursor:self];
[self.responderDelegate scanTargetViewDidMouseoverSubviews:self];
}
} else {
// Mouse capture is on, so move the cursor back to the middle of the window, and