gtkWidgetRealize: gtkWidgetRealize

Description Usage Arguments Details Author(s)

View source: R/gtkFuncs.R

Description

Creates the GDK (windowing system) resources associated with a widget. For example, widget->window will be created when a widget is realized. Normally realization happens implicitly; if you show a widget and all its parent containers, then the widget will be realized and mapped automatically.

Usage

1

Arguments

object

a GtkWidget

Details

Realizing a widget requires all the widget's parent widgets to be realized; calling gtkWidgetRealize realizes the widget's parents in addition to widget itself. If a widget is not yet inside a toplevel window when you realize it, bad things will happen.

This function is primarily used in widget implementations, and isn't very useful otherwise. Many times when you think you might need it, a better approach is to connect to a signal that will be called after the widget is realized automatically, such as GtkWidget::expose-event. Or simply gSignalConnect to the GtkWidget::realize signal.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.