gtk-Resource-Files {RGtk2} | R Documentation |
Routines for handling resource files
gtkRcScannerNew()
gtkRcGetStyle(object)
gtkRcGetStyleByPaths(settings, widget.path, class.path, type)
gtkRcAddWidgetNameStyle(object, pattern)
gtkRcAddWidgetClassStyle(object, pattern)
gtkRcAddClassStyle(object, pattern)
gtkRcParse(filename)
gtkRcParseString(rc.string)
gtkRcReparseAll()
gtkRcReparseAllForSettings(settings, force.load)
gtkRcResetStyles(settings)
gtkRcAddDefaultFile(filename)
gtkRcGetDefaultFiles()
gtkRcSetDefaultFiles(filenames)
gtkRcParseColor(scanner, color)
gtkRcParseState(scanner, state)
gtkRcParsePriority(scanner, priority)
gtkRcFindModuleInPath(module.file)
gtkRcFindPixmapInPath(settings, scanner = NULL, pixmap.file)
gtkRcGetModuleDir()
gtkRcGetImModulePath()
gtkRcGetImModuleFile()
gtkRcGetThemeDir()
gtkRcStyleNew()
gtkRcStyleCopy(object)
GObject +----GtkRcStyle
GTK+ provides resource file mechanism for configuring various aspects of the operation of a GTK+ program at runtime.
An application can cause GTK+ to parse a specific RC
file by calling gtkRcParse
. In addition to this,
certain files will be read at the end of gtkInit
.
Unless modified, the files looked for will be
‘<SYSCONFDIR>/gtk-2.0/gtkrc’
and ‘.gtkrc-2.0’ in the users home directory.
(‘<SYSCONFDIR>’ defaults to
‘/usr/local/etc’. It can be changed with the
--prefix or --sysconfdir options when
configuring GTK+.) Note that although the filenames contain the version
number 2.0, all 2.x versions of GTK+ look for these files.
The set of these default files
can be retrieved with gtkRcGetDefaultFiles
and modified with gtkRcAddDefaultFile
and
gtkRcSetDefaultFiles
.
Additionally, the GTK2_RC_FILES
environment variable
can be set to a G_SEARCHPATH_SEPARATOR_S-separated
list of files
in order to overwrite the set of default files at runtime.
For each RC file, in addition to the file itself, GTK+ will look for
a locale-specific file that will be parsed after the main file.
For instance, if LANG
is set to ja_JP.ujis
,
when loading the default file ‘~/.gtkrc’ then GTK+ looks
for ‘~/.gtkrc.ja_JP’ and ‘~/.gtkrc.ja’,
and parses the first of those that exists.
GtkRcStyle
GtkRcStyle
structure is used to represent a set
of information about the appearance of a widget.
This can later be composited together with other
GtkRcStyle
structures to form a GtkStyle
.
GtkRcFlags
GtkRcFlags
enumeration is used as a bitmask
to specify which fields of a GtkRcStyle
have been
set for each state.
fg
bg
text
base
GtkRcTokenType
GtkRcTokenType
enumeration represents the tokens
in the RC file. It is exposed so that theme engines
can reuse these tokens when parsing the theme-engine
specific portions of a RC file.
invalid
include
normal
active
prelight
selected
insensitive
fg
bg
text
base
xthickness
ythickness
font
fontset
font-name
bg-pixmap
pixmap-path
style
binding
bind
widget
widget-class
class
lowest
gtk
application
theme
rc
highest
engine
module-path
im-module-path
im-module-file
stock
ltr
rtl
last
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html