gtkWidgetSetHasWindow {RGtk2} | R Documentation

## gtkWidgetSetHasWindow

### Description

Specifies whether `widget` has a `GdkWindow` of its own. Note that all realized widgets have a non-`NULL` "window" pointer (`gtkWidgetGetWindow` never returns a `NULL` window when a widget is realized), but for many of them it's actually the `GdkWindow` of one of its parent widgets. Widgets that create a `window` for themselves in GtkWidget::`realize()` however must announce this by calling this function with `has.window` = `TRUE`.

### Usage

    gtkWidgetSetHasWindow(object, has.window)

### Arguments

``object`` | a `GtkWidget`
``has.window`` | whether or not `widget` has a window.

### Details

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

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.40 Index]