gdkColorParse {RGtk2}R Documentation

gdkColorParse

Description

Parses a textual specification of a color and fill in the red, green, and blue fields of a GdkColor structure. The color is not allocated, you must call gdkColormapAllocColor yourself. The text string can be in any of the forms accepted by xparsecolor; these include name for a color from ‘rgb.txt’, such as DarkSlateGray, or a hex specification such as #3050b2 or #35b.

Usage

gdkColorParse(spec)

Arguments

spec [character] the string specifying the color.

Value

A list containing the following elements:

retval [logical] TRUE if the parsing succeeded.
color [GdkColor] the GdkColor to fill in

Author(s)

Derived by RGtkGen from GTK+ documentation


[Package RGtk2 version 2.12.5-3 Index]