[previous] [up] [next]     [contents] [index]
Next: find-scroll-step Up: wx:snip Previous: do-font

draw

Called (by a buffer) to draw the snip.

Before this method is called, the correct font, text color, and pen colour will have been set in the drawing context for this snip already. (This is not true for get-extent or partial-offset.) The draw method must not make any other assumptions about the state of the drawing context, except that the clipping region is already set to something approrpiate. Before draw returns, it must restore any drawing context settings that it changes.

See also on-paint in wx:media-buffer%.

The snip's buffer is usually internally locked for writing and reflowing when this method is called (see also Locks).



PLT