/usr/share/xpaint/include/palette.h is in xpaint 2.9.1.4-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | #ifndef __palette_h__
#define __palette_h__
/* +-------------------------------------------------------------------+ */
/* | Copyright 1992, David Koblas. | */
/* | Copyright 1995, 1996 Torsten Martinsen (bullestock@dk-online.dk) | */
/* | | */
/* | Permission to use, copy, modify, and distribute this software | */
/* | and its documentation for any purpose and without fee is hereby | */
/* | granted, provided that the above copyright notice appear in all | */
/* | copies and that both that copyright notice and this permission | */
/* | notice appear in supporting documentation. This software is | */
/* | provided "as is" without express or implied warranty. | */
/* +-------------------------------------------------------------------+ */
/* $Id: palette.h,v 1.17 2005/03/20 20:15:32 demailly Exp $ */
typedef struct paletteUserList_s {
Widget widget;
struct paletteUserList_s *next;
} paletteUserList;
typedef struct {
int isGrey;
int isDefault;
int isMapped;
int ncolors;
/*
**
*/
int readonly_;
Display *display;
Colormap cmap;
Visual *visual;
int depth;
void *htable, *ltable;
void *ctable;
Pixel mine;
/*
** TrueColor visual support
*/
int rShift, gShift, bShift;
int rRange, gRange, bRange;
/*
** Free color entries
*/
int nfree;
void *list;
/*
** Cache the last request value here
*/
void *last;
/*
** List of all widgets that are using this palette
*/
paletteUserList *userList;
} Palette;
Palette *PaletteCreate(Widget);
Pixel PaletteAlloc(Palette *, XColor *);
int PaletteAllocN(Palette *, XColor *, int, Pixel *);
Palette *PaletteFindDpy(Display *, Colormap);
Palette *PaletteFind(Widget, Colormap);
XColor *PaletteLookup(Palette *, Pixel);
void PaletteAddUser(Palette *, Widget);
void PaletteSetInvalid(Palette *, Pixel);
void PaletteDelete(Palette *);
Boolean PaletteLookupColor(Palette *, XColor *, Pixel *);
Boolean PaletteSetPixel(Palette *, Pixel, XColor *);
Palette *PaletteGetDefault(Widget);
Pixel PaletteGetUnused(Palette *);
/*
** Convenience
*/
void PixmapInvert(Widget, Colormap, Pixmap);
#endif /* __palette_h__ */
|