Called by the buffer to request a refresh to its displayed representation. When the administrator decides that the displayed should be refreshed, it calls the buffer's refreshmethod.
The localx, localy, w, and h arguments specify a region of the buffer to be updated (in buffer coordinates).