File: gWidgets-icons.Rd

package info (click to toggle)
r-cran-gwidgets 0.0-54.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,360 kB
  • sloc: sh: 13; makefile: 2
file content (46 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
\name{gWidgets-icons}
\alias{gWidgets-icons}
\alias{addStockIcons}
\alias{getStockIcons}
\alias{stockIconFromClass}
\alias{stockIconFromObject}
\alias{.addStockIcons,ANY-method}
\alias{.getStockIcons,ANY-method}
\alias{.stockIconFromClass,ANY-method}
\alias{.stockIconFromObject,ANY-method}

\title{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())
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{iconNames}{A vector of icon names}
  \item{iconFiles}{A matching vector of filenames for the icons}
  \item{...}{ignored}
  \item{toolkit}{Which toolkit to use}
}
\details{
  The file type must be supported by the toolkit. The \code{tcltk}
  supports few filetypes without additional libraries.
}
% \references{}
% \author{}
% \note{}
% \seealso{}
\examples{
\dontrun{
 iconNames <- c("larrow","rarrow")
 iconFiles <= c("/usr/share/icons/larrow.png",
    "/usr/share/icons/rarrow.png")
 addStockIcons(iconNames, iconFiles)
}
}
\keyword{interface}% at least one, from doc/KEYWORDS