Package: gtk

Function gtk-widget-has-window

Lambda List

gtk-widget-has-window (widget)

Syntax

(gtk-widget-has-window widget) => has-window
(setf (gtk-widget-has-window widget) has-window)

Arguments

widget -- a gtk-widget instance
has-window -- a boolean whether or not widget has a window

Details

Accessor of the has window value of the gtk-widget object.

The gtk-widget-has-window function determines whether the widget has a gdk-window object of its own. The (setf gtk-widget-has-window) function specifies whether the widget has a gdk-window of its own.

Note that all realized widgets have a non-NULL "window" pointer, the gtk-widget-window function never returns a NULL window when a widget is realized, but for many of them it is actually the gdk-window object of one of its parent widgets. Widgets that do not create a window for themselves in "realize" must announce this by calling this function with the value false.

This function should only be called by widget implementations, and they should call it in their init() function.
 

See also

2021-9-20