ggiGetPalette man page on Mageia

Man page or keyword search:  
man Server   17783 pages
apropos Keyword Search (all sections)
Output format
Mageia logo
[printable version]

ggiSetPalette(3)		      GGI		      ggiSetPalette(3)

NAME
       ggiSetPalette, ggiGetPalette : Manipulate the palette of a visual

SYNOPSIS
       #include <ggi/ggi.h>

       int ggiSetPalette(ggi_visual_t vis, int s, int len, const ggi_color *cmap);

       int ggiGetPalette(ggi_visual_t vis, int s, int len, ggi_color *cmap);

DESCRIPTION
       LibGGI  visuals	in  GT_PALETTE	mode map all pixelvalues to the corre‐
       sponding ggi_color(3) entry in the visual's palette.

       ggiSetPalette sets a range of palette values of length len, starting at
       index number s.	The index can be GGI_PALETTE_DONTCARE to indicate that
       the palette can be installed anywhere in the CLUT.  This	 allows	 opti‐
       mized use in windowing environments (to minimize color flashing between
       windows) and should be used if possible.

       ggiGetPalette copies the specified colors (starting  from  s,  for  len
       colors) from the visual's palette to the array pointed by cmap.

RETURN VALUE
       ggiSetPalette  returns the number of the first entry changed.  <0 indi‐
       cate a ggi-error(3).

       ggiGetPalette returns 0 for OK, otherwise  a  ggi-error(3)  code.  When
       called with len=0 this function will not automatically succeed, but the
       return code will indicate whether there is a readable CLUT.

PALETTE IN GGI
       Write something useful here.

SEE ALSO
       ggiSetColorfulPalette(3)

libggi-2.2.x			  2006-12-30		      ggiSetPalette(3)
[top]

List of man pages available for Mageia

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net