Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkWidgetNew

gtkWidgetNew


Description

This is a convenience function for creating a widget and setting its properties in one go. For example you might write: gtk_widget_new (GTK_TYPE_LABEL, "label", "Hello World", "xalign", 0.0, NULL) to create a left-aligned label. Equivalent to gObjectNew, but returns a widget so you don't have to cast the object yourself.

Usage

gtkWidgetNew(type, ..., show = TRUE)

Arguments

type

type ID of the widget to create

...

a new GtkWidget of type widget.type

Value

[GtkWidget] a new GtkWidget of type widget.type

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.