gdkGCSetRgbFgColor {RGtk2} | R Documentation

## gdkGCSetRgbFgColor

### Description

Set the foreground color of a GC using an unallocated color. The pixel value for the color will be determined using GdkRGB. If the colormap for the GC has not previously been initialized for GdkRGB, then for pseudo-color colormaps (colormaps with a small modifiable number of colors), a colorcube will be allocated in the colormap.

### Usage

    gdkGCSetRgbFgColor(object, color)

### Arguments

``object`` | a `GdkGC`
``color`` | an unallocated `GdkColor`.

### Details

Calling this function for a GC without a colormap is an error.

### Author(s)

Derived by RGtkGen from GTK+ documentation

[Package RGtk2 version 2.20.40 Index]