Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

gf_palette_t

A QNX Graphics Framework palette

Synopsis:

#include <gf/gf.h>

typedef struct {
        int ncolors;
        gf_color_t *colors;
} gf_palette_t;

Description:

The gf_palette_t structure defines a color palette associated with a surface. It contains at least the following members:

ncolors
The number of colors in the colors array.
colors
Pointer to an array of ncolors colors, of type gf_color_t.

The gf_color_t Type

A gf_color_t is a generic 32-bit color argument used by the GF library. This type is assumed to be native endian, with the following components:

Classification:

QNX Graphics Framework

See also:

gf_surface_attach(), gf_surface_attach_by_sid(), gf_surface_create(), gf_surface_create_layer()