addStockIcons: Add to the stock icons

Description Usage Arguments Value Note Examples

View source: R/icons.R

Description

A stock icon requires a name and url. The name can be used to look up the css class used by the widgets using the function getStockIconByName.

Usage

1
addStockIcons(iconNames, iconFiles, ..., parent)

Arguments

iconNames

character vector of names. May be data frame with first two columns being names, then urls

iconFiles

character vector of icon urls (not files, despite the name of the function)

...

ignored

parent

a gwindow instance. Needed with gWidgetsWWW2.

Value

Modifies internal stock icon list, but has no useful return value

Note

Although this function can be called more than once, some browsers will balk if called more than 31 times.

Examples

1
2
3
w <- gwindow()
addStockIcons("rlogo", "http://www.r-project.org/Rlogo.jpg", parent=w) ## add one
getStockIconByName("rlogo")  ## check

gWidgetsWWW2 documentation built on May 2, 2019, 6:10 p.m.