Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGScreenUpdateMoveEventMBS class.
CGScreenUpdateMoveEventMBS.ScreenMove(deltaX as Integer, deltaY as Integer, rectCount as Integer, rects() as CGRectMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | CoreGraphics | MBS MacCG Plugin | 16.1 | ✅ Yes | ❌ No | ❌ No | ❌ No |
When an area of the display is moved, your callback function will be invoked with a count of the number of rectangles in the moved area, and a list of the moved rectangles. The rectangles are in global coordinates, and describe the area prior to the move operation.
A single rectangle may occupy multiple displays, either by overlapping the displays or by residing on coincident displays when mirroring is active. Use CGDisplayMBS.GetDisplaysWithRect to determine the displays a rectangle occupies.
DeltaX/DeltaY: The distance a region on the screen moves in pixel units.
The fields deltaX and deltaY describe the direction of movement. Positive values of deltaX indicate movement to the right; negative values indicate movement to the left. Positive values of deltaY indicate movement downward; negative values indicate movement upward.
Some examples using this event:
The items on this page are in the following plugins: MBS MacCG Plugin.