~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to hw/xnest/Color.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Xorg: Color.h,v 1.3 2000/08/17 19:53:28 cpqbld Exp $ */
 
2
/*
 
3
 
 
4
Copyright 1993 by Davor Matic
 
5
 
 
6
Permission to use, copy, modify, distribute, and sell this software
 
7
and its documentation for any purpose is hereby granted without fee,
 
8
provided that the above copyright notice appear in all copies and that
 
9
both that copyright notice and this permission notice appear in
 
10
supporting documentation.  Davor Matic makes no representations about
 
11
the suitability of this software for any purpose.  It is provided "as
 
12
is" without express or implied warranty.
 
13
 
 
14
*/
 
15
/* $XFree86$ */
 
16
 
 
17
#ifndef XNESTCOLOR_H
 
18
#define XNESTCOLOR_H
 
19
 
 
20
#define DUMB_WINDOW_MANAGERS
 
21
 
 
22
#define MAXCMAPS 1
 
23
#define MINCMAPS 1
 
24
 
 
25
typedef struct {
 
26
  Colormap colormap;
 
27
} xnestPrivColormap;
 
28
 
 
29
typedef struct {
 
30
  int numCmapIDs;
 
31
  Colormap *cmapIDs;
 
32
  int numWindows;
 
33
  Window *windows;
 
34
  int index;
 
35
} xnestInstalledColormapWindows;
 
36
 
 
37
#define xnestColormapPriv(pCmap) \
 
38
  ((xnestPrivColormap *)((pCmap)->devPriv))
 
39
 
 
40
#define xnestColormap(pCmap) (xnestColormapPriv(pCmap)->colormap)
 
41
 
 
42
#define xnestPixel(pixel) (pixel)
 
43
 
 
44
Bool xnestCreateColormap(ColormapPtr pCmap);
 
45
void xnestDestroyColormap(ColormapPtr pCmap);
 
46
void xnestSetInstalledColormapWindows(ScreenPtr pScreen);
 
47
void xnestSetScreenSaverColormapWindow(ScreenPtr pScreen);
 
48
void xnestDirectInstallColormaps(ScreenPtr pScreen);
 
49
void xnestDirectUninstallColormaps(ScreenPtr pScreen);
 
50
void xnestInstallColormap(ColormapPtr pCmap);
 
51
void xnestUninstallColormap(ColormapPtr pCmap);
 
52
int xnestListInstalledColormaps(ScreenPtr pScreen, Colormap *pCmapIDs);
 
53
void xnestStoreColors(ColormapPtr pCmap, int nColors, xColorItem *pColors);
 
54
void xnestResolveColor(unsigned short *pRed, unsigned short *pGreen,
 
55
                       unsigned short *pBlue, VisualPtr pVisual);
 
56
Bool xnestCreateDefaultColormap(ScreenPtr pScreen);
 
57
 
 
58
#endif /* XNESTCOLOR_H */