Typically called (indirectly) by a snip within the buffer to force the buffer to be redrawn.
For wx:media-edit% objects, calling this method may force the recalculation of location information if a maximum width is set for the buffer, even if the buffer currently has delayed refreshing (see refresh-delayed?).
The localx, localy, width, and height arguments specify the area that needs repainting in the coordinate system of snip.