Learn R Programming

gWidgets (version 0.0-54.2)

gWidgets-icons: Functions for adding icons

Description

Two functions for listing "stock" icons, and adding "stock" icons. A stock icon can be referenced within gWidgets by its simple name, such as "ok" or "close".

Usage

addStockIcons(iconNames, iconFiles, ...,toolkit=guiToolkit())

getStockIcons(..., toolkit=guiToolkit())

Arguments

iconNames

A vector of icon names

iconFiles

A matching vector of filenames for the icons

...

ignored

toolkit

Which toolkit to use

Details

The file type must be supported by the toolkit. The tcltk supports few filetypes without additional libraries.

Examples

Run this code
# NOT RUN {
 iconNames <- c("larrow","rarrow")
 iconFiles <= c("/usr/share/icons/larrow.png",
    "/usr/share/icons/rarrow.png")
 addStockIcons(iconNames, iconFiles)
# }

Run the code above in your browser using DataLab