ggiSetGCForeground(3)

ggiSetGCForeground3

Set or get the foreground or background color used in drawing operations in a visual

Usage

#include <ggi/ggi.h>
int ggiSetGCForeground(ggi_visual_t vis,ggi_pixel  color);
int ggiGetGCForeground(ggi_visual_t vis,ggi_pixel *color);
int ggiSetGCBackground(ggi_visual_t vis,ggi_pixel  color);
int ggiGetGCBackground(ggi_visual_t vis,ggi_pixel *color);

Overview

ggiSetGCForeground and ggiGetGCForeground set or reads the current colors for the foreground, used in all normal drawing functions.

ggiSetGCBackground and ggiGetGCBackground set or reads the current colors for the background, used in two-color operations like drawing text.

Return value

All four functions 0 for OK.

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From libggi2-dev 1:2.2.2-5 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.