Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGScreenRefreshEventMBS class.

CGScreenRefreshEventMBS.ScreenRefresh(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
The event to inform you about a screen refresh.

When an area of the display is modified or refreshed, this event function will be invoked with a count of the number of rectangles in the refreshed areas, and a list of the refreshed rectangles. The rectangles are in global coordinates.

Quartz invokes this event when operations such as drawing, window movement, scrolling, or display reconfiguration occur on local displays.

Note that a single rectangle may occupy multiple displays, either by overlapping the displays or by residing on coincident displays when mirroring is active. You can use the function CGDisplayMBS.GetDisplaysWithRect to determine the displays a rectangle occupies.

Some examples using this event:

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...