GDIndex.gif Previous-2.gif Next-3.gif

GDstate_set_drawable - GD API


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.