TOC PREV NEXT INDEX

GDstate_set_drawable

Synopsis

set the drawable state

void GDstate_set_drawable
(GDview *view, _int flag)

Description

GDstate_set_drawable sets view 's drawable state. The drawable state determines whether drawing is done directly in the rendering window or, if double buffering is in effect, in the back (pixmap) buffer.

draw_mode can be either of the following:

0 -- Specifies that drawing is done directly in the rendering window. This is typically what you want.

If the rendering window is in double-buffer mode (the structure GDview has a member called double_buffer, which is either 1 or 2 if the view is in double-buffer mode), then you typically first refresh the view with a call to GDview_call_func, then set the drawable state to 0 for drawing directly to the rendering window.

For details on GDview_call_func, see See GDview_call_func .

1 -- Specifies that drawing is done to the back (pixmap) buffer. You then call GDview_call_func to make the drawing appear. This setting has no effect if the view is in fact in single-buffer mode.

par 1 -- Sets the drawing mode to xor. xor mode means that the drawing is created (and the background subsequently refreshed) by performing an xor operation on the background. This mode is generally quicker, and you typically use it for interactive objects such as line drawings. You can specif


TOC PREV NEXT INDEX