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

gtkImageNewFromStock

gtkImageNewFromStock


Description

Creates a GtkImage displaying a stock icon. Sample stock icon names are GTK_STOCK_OPEN, GTK_STOCK_QUIT. Sample stock sizes are GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_SMALL_TOOLBAR. If the stock icon name isn't known, the image will be empty. You can register your own stock icon names, see gtkIconFactoryAddDefault and gtkIconFactoryAdd.

Usage

gtkImageNewFromStock(stock.id, size, show = TRUE)

Arguments

stock.id

a stock icon name

size

a stock icon size. [ type int]

Value

[GtkWidget] a new GtkImage displaying the stock icon

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.