Package: gtk

Accessor gtk:gl-area-auto-render

Lambda List

gtk:gl-area-auto-render (object)

Syntax

(gtk:gl-area-auto-render object) => setting
(setf (gtk:gl-area-auto-render object) setting)

Arguments

object -- a gtk:gl-area widget
setting -- a boolean whether the area is auto rendering

Details

Accessor of the auto-render slot of the gtk:gl-area class. The gtk:gl-area-auto-render function returns whether the area is in auto render mode or not. The (setf gtk:gl-area-auto-render) function sets the property.

If setting is true the "render" signal will be emitted every time the widget draws. This is the default and is useful if drawing the widget is faster. If setting is false the data from previous rendering is kept around and will be used for drawing the widget the next time, unless the window is resized. In order to force a rendering the gtk:gl-area-queue-render function must be called. This mode is useful when the scene changes seldom, but takes a long time to redraw.
 

See also

2024-10-26