Overriding elementObj::implObj's basic do_draw() method

customkeyfocus.C does not use the simplified drawing interface implemented by the x::w::scratch_and_mask_buffer_draw template. customkeyfocus.C overrides the base do_draw() method that takes just two parameters:

customkeyfocus.C gives an example of manually redrawing the display element, one rectangle at a time.

The lambda that gets passed to draw_using_scratch_buffer() gets invoked with a picture, pixmap, and a graphic context representing a scratch buffer for drawing. draw_using_scratch_buffer() is the only mechanism that must be used for updating the apperance of the display element. After the lambda returns, the scratch buffers get copied to the window after some additional, optional processing related to shading inactive windows and adjusting the image in the style of a disabled element, if the focusable display element is disabled.

draw_using_scratch_buffer()'s remaining parameters, in addition to the closure are: the rectangle to be redrawn; the x::w::draw_info object (always passed as two separate parameters, some internal functions use different objects for specific situations); and the x::w::clip_region_set object in order to prove, by contract, that the clipping region is installed.