gWidgets-icons {gWidgets} | R Documentation

## 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

    ## Not run:
     iconNames <- c("larrow","rarrow")
     iconFiles <= c("/usr/share/icons/larrow.png",
        "/usr/share/icons/rarrow.png")
     addStockIcons(iconNames, iconFiles)
    ## End(Not run)

[Package gWidgets version 0.0-39 Index]