Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/X11
File: xpm.h
/*
[0] Fix | Delete
* Copyright (C) 1989-95 GROUPE BULL
[1] Fix | Delete
*
[2] Fix | Delete
* Permission is hereby granted, free of charge, to any person obtaining a copy
[3] Fix | Delete
* of this software and associated documentation files (the "Software"), to
[4] Fix | Delete
* deal in the Software without restriction, including without limitation the
[5] Fix | Delete
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
[6] Fix | Delete
* sell copies of the Software, and to permit persons to whom the Software is
[7] Fix | Delete
* furnished to do so, subject to the following conditions:
[8] Fix | Delete
*
[9] Fix | Delete
* The above copyright notice and this permission notice shall be included in
[10] Fix | Delete
* all copies or substantial portions of the Software.
[11] Fix | Delete
*
[12] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[13] Fix | Delete
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[14] Fix | Delete
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
[15] Fix | Delete
* GROUPE BULL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[16] Fix | Delete
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[17] Fix | Delete
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[18] Fix | Delete
*
[19] Fix | Delete
* Except as contained in this notice, the name of GROUPE BULL shall not be
[20] Fix | Delete
* used in advertising or otherwise to promote the sale, use or other dealings
[21] Fix | Delete
* in this Software without prior written authorization from GROUPE BULL.
[22] Fix | Delete
*/
[23] Fix | Delete
[24] Fix | Delete
/*****************************************************************************\
[25] Fix | Delete
* xpm.h: *
[26] Fix | Delete
* *
[27] Fix | Delete
* XPM library *
[28] Fix | Delete
* Include file *
[29] Fix | Delete
* *
[30] Fix | Delete
* Developed by Arnaud Le Hors *
[31] Fix | Delete
\*****************************************************************************/
[32] Fix | Delete
[33] Fix | Delete
/*
[34] Fix | Delete
* The code related to FOR_MSW has been added by
[35] Fix | Delete
* HeDu (hedu@cul-ipn.uni-kiel.de) 4/94
[36] Fix | Delete
*/
[37] Fix | Delete
[38] Fix | Delete
/*
[39] Fix | Delete
* The code related to AMIGA has been added by
[40] Fix | Delete
* Lorens Younes (d93-hyo@nada.kth.se) 4/96
[41] Fix | Delete
*/
[42] Fix | Delete
[43] Fix | Delete
#ifndef XPM_h
[44] Fix | Delete
#define XPM_h
[45] Fix | Delete
[46] Fix | Delete
/*
[47] Fix | Delete
* first some identification numbers:
[48] Fix | Delete
* the version and revision numbers are determined with the following rule:
[49] Fix | Delete
* SO Major number = LIB minor version number.
[50] Fix | Delete
* SO Minor number = LIB sub-minor version number.
[51] Fix | Delete
* e.g: Xpm version 3.2f
[52] Fix | Delete
* we forget the 3 which is the format number, 2 gives 2, and f gives 6.
[53] Fix | Delete
* thus we have XpmVersion = 2 and XpmRevision = 6
[54] Fix | Delete
* which gives SOXPMLIBREV = 2.6
[55] Fix | Delete
*
[56] Fix | Delete
* Then the XpmIncludeVersion number is built from these numbers.
[57] Fix | Delete
*/
[58] Fix | Delete
#define XpmFormat 3
[59] Fix | Delete
#define XpmVersion 4
[60] Fix | Delete
#define XpmRevision 11
[61] Fix | Delete
#define XpmIncludeVersion ((XpmFormat * 100 + XpmVersion) * 100 + XpmRevision)
[62] Fix | Delete
[63] Fix | Delete
#ifndef XPM_NUMBERS
[64] Fix | Delete
[65] Fix | Delete
#ifdef FOR_MSW
[66] Fix | Delete
# define SYSV /* uses memcpy string.h etc. */
[67] Fix | Delete
# include <malloc.h>
[68] Fix | Delete
# include "simx.h" /* defines some X stuff using MSW types */
[69] Fix | Delete
#define NEED_STRCASECMP /* at least for MSVC++ */
[70] Fix | Delete
#else /* FOR_MSW */
[71] Fix | Delete
# ifdef AMIGA
[72] Fix | Delete
# include "amigax.h"
[73] Fix | Delete
# else /* not AMIGA */
[74] Fix | Delete
# include <X11/Xlib.h>
[75] Fix | Delete
# include <X11/Xutil.h>
[76] Fix | Delete
# endif /* not AMIGA */
[77] Fix | Delete
#endif /* FOR_MSW */
[78] Fix | Delete
[79] Fix | Delete
/* let's define Pixel if it is not done yet */
[80] Fix | Delete
#if ! defined(_XtIntrinsic_h) && ! defined(PIXEL_ALREADY_TYPEDEFED)
[81] Fix | Delete
typedef unsigned long Pixel; /* Index into colormap */
[82] Fix | Delete
# define PIXEL_ALREADY_TYPEDEFED
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
/* Return ErrorStatus codes:
[86] Fix | Delete
* null if full success
[87] Fix | Delete
* positive if partial success
[88] Fix | Delete
* negative if failure
[89] Fix | Delete
*/
[90] Fix | Delete
[91] Fix | Delete
#define XpmColorError 1
[92] Fix | Delete
#define XpmSuccess 0
[93] Fix | Delete
#define XpmOpenFailed -1
[94] Fix | Delete
#define XpmFileInvalid -2
[95] Fix | Delete
#define XpmNoMemory -3
[96] Fix | Delete
#define XpmColorFailed -4
[97] Fix | Delete
[98] Fix | Delete
typedef struct {
[99] Fix | Delete
char *name; /* Symbolic color name */
[100] Fix | Delete
char *value; /* Color value */
[101] Fix | Delete
Pixel pixel; /* Color pixel */
[102] Fix | Delete
} XpmColorSymbol;
[103] Fix | Delete
[104] Fix | Delete
typedef struct {
[105] Fix | Delete
char *name; /* name of the extension */
[106] Fix | Delete
unsigned int nlines; /* number of lines in this extension */
[107] Fix | Delete
char **lines; /* pointer to the extension array of strings */
[108] Fix | Delete
} XpmExtension;
[109] Fix | Delete
[110] Fix | Delete
typedef struct {
[111] Fix | Delete
char *string; /* characters string */
[112] Fix | Delete
char *symbolic; /* symbolic name */
[113] Fix | Delete
char *m_color; /* monochrom default */
[114] Fix | Delete
char *g4_color; /* 4 level grayscale default */
[115] Fix | Delete
char *g_color; /* other level grayscale default */
[116] Fix | Delete
char *c_color; /* color default */
[117] Fix | Delete
} XpmColor;
[118] Fix | Delete
[119] Fix | Delete
typedef struct {
[120] Fix | Delete
unsigned int width; /* image width */
[121] Fix | Delete
unsigned int height; /* image height */
[122] Fix | Delete
unsigned int cpp; /* number of characters per pixel */
[123] Fix | Delete
unsigned int ncolors; /* number of colors */
[124] Fix | Delete
XpmColor *colorTable; /* list of related colors */
[125] Fix | Delete
unsigned int *data; /* image data */
[126] Fix | Delete
} XpmImage;
[127] Fix | Delete
[128] Fix | Delete
typedef struct {
[129] Fix | Delete
unsigned long valuemask; /* Specifies which attributes are defined */
[130] Fix | Delete
char *hints_cmt; /* Comment of the hints section */
[131] Fix | Delete
char *colors_cmt; /* Comment of the colors section */
[132] Fix | Delete
char *pixels_cmt; /* Comment of the pixels section */
[133] Fix | Delete
unsigned int x_hotspot; /* Returns the x hotspot's coordinate */
[134] Fix | Delete
unsigned int y_hotspot; /* Returns the y hotspot's coordinate */
[135] Fix | Delete
unsigned int nextensions; /* number of extensions */
[136] Fix | Delete
XpmExtension *extensions; /* pointer to array of extensions */
[137] Fix | Delete
} XpmInfo;
[138] Fix | Delete
[139] Fix | Delete
typedef int (*XpmAllocColorFunc)(
[140] Fix | Delete
Display* /* display */,
[141] Fix | Delete
Colormap /* colormap */,
[142] Fix | Delete
char* /* colorname */,
[143] Fix | Delete
XColor* /* xcolor */,
[144] Fix | Delete
void* /* closure */
[145] Fix | Delete
);
[146] Fix | Delete
[147] Fix | Delete
typedef int (*XpmFreeColorsFunc)(
[148] Fix | Delete
Display* /* display */,
[149] Fix | Delete
Colormap /* colormap */,
[150] Fix | Delete
Pixel* /* pixels */,
[151] Fix | Delete
int /* npixels */,
[152] Fix | Delete
void* /* closure */
[153] Fix | Delete
);
[154] Fix | Delete
[155] Fix | Delete
typedef struct {
[156] Fix | Delete
unsigned long valuemask; /* Specifies which attributes are
[157] Fix | Delete
defined */
[158] Fix | Delete
[159] Fix | Delete
Visual *visual; /* Specifies the visual to use */
[160] Fix | Delete
Colormap colormap; /* Specifies the colormap to use */
[161] Fix | Delete
unsigned int depth; /* Specifies the depth */
[162] Fix | Delete
unsigned int width; /* Returns the width of the created
[163] Fix | Delete
pixmap */
[164] Fix | Delete
unsigned int height; /* Returns the height of the created
[165] Fix | Delete
pixmap */
[166] Fix | Delete
unsigned int x_hotspot; /* Returns the x hotspot's
[167] Fix | Delete
coordinate */
[168] Fix | Delete
unsigned int y_hotspot; /* Returns the y hotspot's
[169] Fix | Delete
coordinate */
[170] Fix | Delete
unsigned int cpp; /* Specifies the number of char per
[171] Fix | Delete
pixel */
[172] Fix | Delete
Pixel *pixels; /* List of used color pixels */
[173] Fix | Delete
unsigned int npixels; /* Number of used pixels */
[174] Fix | Delete
XpmColorSymbol *colorsymbols; /* List of color symbols to override */
[175] Fix | Delete
unsigned int numsymbols; /* Number of symbols */
[176] Fix | Delete
char *rgb_fname; /* RGB text file name */
[177] Fix | Delete
unsigned int nextensions; /* Number of extensions */
[178] Fix | Delete
XpmExtension *extensions; /* List of extensions */
[179] Fix | Delete
[180] Fix | Delete
unsigned int ncolors; /* Number of colors */
[181] Fix | Delete
XpmColor *colorTable; /* List of colors */
[182] Fix | Delete
/* 3.2 backward compatibility code */
[183] Fix | Delete
char *hints_cmt; /* Comment of the hints section */
[184] Fix | Delete
char *colors_cmt; /* Comment of the colors section */
[185] Fix | Delete
char *pixels_cmt; /* Comment of the pixels section */
[186] Fix | Delete
/* end 3.2 bc */
[187] Fix | Delete
unsigned int mask_pixel; /* Color table index of transparent
[188] Fix | Delete
color */
[189] Fix | Delete
[190] Fix | Delete
/* Color Allocation Directives */
[191] Fix | Delete
Bool exactColors; /* Only use exact colors for visual */
[192] Fix | Delete
unsigned int closeness; /* Allowable RGB deviation */
[193] Fix | Delete
unsigned int red_closeness; /* Allowable red deviation */
[194] Fix | Delete
unsigned int green_closeness; /* Allowable green deviation */
[195] Fix | Delete
unsigned int blue_closeness; /* Allowable blue deviation */
[196] Fix | Delete
int color_key; /* Use colors from this color set */
[197] Fix | Delete
[198] Fix | Delete
Pixel *alloc_pixels; /* Returns the list of alloc'ed color
[199] Fix | Delete
pixels */
[200] Fix | Delete
int nalloc_pixels; /* Returns the number of alloc'ed
[201] Fix | Delete
color pixels */
[202] Fix | Delete
[203] Fix | Delete
Bool alloc_close_colors; /* Specify whether close colors should
[204] Fix | Delete
be allocated using XAllocColor
[205] Fix | Delete
or not */
[206] Fix | Delete
int bitmap_format; /* Specify the format of 1bit depth
[207] Fix | Delete
images: ZPixmap or XYBitmap */
[208] Fix | Delete
[209] Fix | Delete
/* Color functions */
[210] Fix | Delete
XpmAllocColorFunc alloc_color; /* Application color allocator */
[211] Fix | Delete
XpmFreeColorsFunc free_colors; /* Application color de-allocator */
[212] Fix | Delete
void *color_closure; /* Application private data to pass to
[213] Fix | Delete
alloc_color and free_colors */
[214] Fix | Delete
[215] Fix | Delete
} XpmAttributes;
[216] Fix | Delete
[217] Fix | Delete
/* XpmAttributes value masks bits */
[218] Fix | Delete
#define XpmVisual (1L<<0)
[219] Fix | Delete
#define XpmColormap (1L<<1)
[220] Fix | Delete
#define XpmDepth (1L<<2)
[221] Fix | Delete
#define XpmSize (1L<<3) /* width & height */
[222] Fix | Delete
#define XpmHotspot (1L<<4) /* x_hotspot & y_hotspot */
[223] Fix | Delete
#define XpmCharsPerPixel (1L<<5)
[224] Fix | Delete
#define XpmColorSymbols (1L<<6)
[225] Fix | Delete
#define XpmRgbFilename (1L<<7)
[226] Fix | Delete
/* 3.2 backward compatibility code */
[227] Fix | Delete
#define XpmInfos (1L<<8)
[228] Fix | Delete
#define XpmReturnInfos XpmInfos
[229] Fix | Delete
/* end 3.2 bc */
[230] Fix | Delete
#define XpmReturnPixels (1L<<9)
[231] Fix | Delete
#define XpmExtensions (1L<<10)
[232] Fix | Delete
#define XpmReturnExtensions XpmExtensions
[233] Fix | Delete
[234] Fix | Delete
#define XpmExactColors (1L<<11)
[235] Fix | Delete
#define XpmCloseness (1L<<12)
[236] Fix | Delete
#define XpmRGBCloseness (1L<<13)
[237] Fix | Delete
#define XpmColorKey (1L<<14)
[238] Fix | Delete
[239] Fix | Delete
#define XpmColorTable (1L<<15)
[240] Fix | Delete
#define XpmReturnColorTable XpmColorTable
[241] Fix | Delete
[242] Fix | Delete
#define XpmReturnAllocPixels (1L<<16)
[243] Fix | Delete
#define XpmAllocCloseColors (1L<<17)
[244] Fix | Delete
#define XpmBitmapFormat (1L<<18)
[245] Fix | Delete
[246] Fix | Delete
#define XpmAllocColor (1L<<19)
[247] Fix | Delete
#define XpmFreeColors (1L<<20)
[248] Fix | Delete
#define XpmColorClosure (1L<<21)
[249] Fix | Delete
[250] Fix | Delete
[251] Fix | Delete
/* XpmInfo value masks bits */
[252] Fix | Delete
#define XpmComments XpmInfos
[253] Fix | Delete
#define XpmReturnComments XpmComments
[254] Fix | Delete
[255] Fix | Delete
/* XpmAttributes mask_pixel value when there is no mask */
[256] Fix | Delete
#ifndef FOR_MSW
[257] Fix | Delete
#define XpmUndefPixel 0x80000000
[258] Fix | Delete
#else
[259] Fix | Delete
/* int is only 16 bit for MSW */
[260] Fix | Delete
#define XpmUndefPixel 0x8000
[261] Fix | Delete
#endif
[262] Fix | Delete
[263] Fix | Delete
/*
[264] Fix | Delete
* color keys for visual type, they must fit along with the number key of
[265] Fix | Delete
* each related element in xpmColorKeys[] defined in XpmI.h
[266] Fix | Delete
*/
[267] Fix | Delete
#define XPM_MONO 2
[268] Fix | Delete
#define XPM_GREY4 3
[269] Fix | Delete
#define XPM_GRAY4 3
[270] Fix | Delete
#define XPM_GREY 4
[271] Fix | Delete
#define XPM_GRAY 4
[272] Fix | Delete
#define XPM_COLOR 5
[273] Fix | Delete
[274] Fix | Delete
[275] Fix | Delete
/* macros for forward declarations of functions with prototypes */
[276] Fix | Delete
#define FUNC(f, t, p) extern t f p
[277] Fix | Delete
#define LFUNC(f, t, p) static t f p
[278] Fix | Delete
[279] Fix | Delete
[280] Fix | Delete
/*
[281] Fix | Delete
* functions declarations
[282] Fix | Delete
*/
[283] Fix | Delete
[284] Fix | Delete
_XFUNCPROTOBEGIN
[285] Fix | Delete
[286] Fix | Delete
/* FOR_MSW, all ..Pixmap.. are excluded, only the ..XImage.. are used */
[287] Fix | Delete
/* Same for Amiga! */
[288] Fix | Delete
[289] Fix | Delete
#if !defined(FOR_MSW) && !defined(AMIGA)
[290] Fix | Delete
FUNC(XpmCreatePixmapFromData, int, (Display *display,
[291] Fix | Delete
Drawable d,
[292] Fix | Delete
char **data,
[293] Fix | Delete
Pixmap *pixmap_return,
[294] Fix | Delete
Pixmap *shapemask_return,
[295] Fix | Delete
XpmAttributes *attributes));
[296] Fix | Delete
[297] Fix | Delete
FUNC(XpmCreateDataFromPixmap, int, (Display *display,
[298] Fix | Delete
char ***data_return,
[299] Fix | Delete
Pixmap pixmap,
[300] Fix | Delete
Pixmap shapemask,
[301] Fix | Delete
XpmAttributes *attributes));
[302] Fix | Delete
[303] Fix | Delete
FUNC(XpmReadFileToPixmap, int, (Display *display,
[304] Fix | Delete
Drawable d,
[305] Fix | Delete
const char *filename,
[306] Fix | Delete
Pixmap *pixmap_return,
[307] Fix | Delete
Pixmap *shapemask_return,
[308] Fix | Delete
XpmAttributes *attributes));
[309] Fix | Delete
[310] Fix | Delete
FUNC(XpmWriteFileFromPixmap, int, (Display *display,
[311] Fix | Delete
const char *filename,
[312] Fix | Delete
Pixmap pixmap,
[313] Fix | Delete
Pixmap shapemask,
[314] Fix | Delete
XpmAttributes *attributes));
[315] Fix | Delete
#endif
[316] Fix | Delete
[317] Fix | Delete
FUNC(XpmCreateImageFromData, int, (Display *display,
[318] Fix | Delete
char **data,
[319] Fix | Delete
XImage **image_return,
[320] Fix | Delete
XImage **shapemask_return,
[321] Fix | Delete
XpmAttributes *attributes));
[322] Fix | Delete
[323] Fix | Delete
FUNC(XpmCreateDataFromImage, int, (Display *display,
[324] Fix | Delete
char ***data_return,
[325] Fix | Delete
XImage *image,
[326] Fix | Delete
XImage *shapeimage,
[327] Fix | Delete
XpmAttributes *attributes));
[328] Fix | Delete
[329] Fix | Delete
FUNC(XpmReadFileToImage, int, (Display *display,
[330] Fix | Delete
const char *filename,
[331] Fix | Delete
XImage **image_return,
[332] Fix | Delete
XImage **shapeimage_return,
[333] Fix | Delete
XpmAttributes *attributes));
[334] Fix | Delete
[335] Fix | Delete
FUNC(XpmWriteFileFromImage, int, (Display *display,
[336] Fix | Delete
const char *filename,
[337] Fix | Delete
XImage *image,
[338] Fix | Delete
XImage *shapeimage,
[339] Fix | Delete
XpmAttributes *attributes));
[340] Fix | Delete
[341] Fix | Delete
FUNC(XpmCreateImageFromBuffer, int, (Display *display,
[342] Fix | Delete
char *buffer,
[343] Fix | Delete
XImage **image_return,
[344] Fix | Delete
XImage **shapemask_return,
[345] Fix | Delete
XpmAttributes *attributes));
[346] Fix | Delete
#if !defined(FOR_MSW) && !defined(AMIGA)
[347] Fix | Delete
FUNC(XpmCreatePixmapFromBuffer, int, (Display *display,
[348] Fix | Delete
Drawable d,
[349] Fix | Delete
char *buffer,
[350] Fix | Delete
Pixmap *pixmap_return,
[351] Fix | Delete
Pixmap *shapemask_return,
[352] Fix | Delete
XpmAttributes *attributes));
[353] Fix | Delete
[354] Fix | Delete
FUNC(XpmCreateBufferFromImage, int, (Display *display,
[355] Fix | Delete
char **buffer_return,
[356] Fix | Delete
XImage *image,
[357] Fix | Delete
XImage *shapeimage,
[358] Fix | Delete
XpmAttributes *attributes));
[359] Fix | Delete
[360] Fix | Delete
FUNC(XpmCreateBufferFromPixmap, int, (Display *display,
[361] Fix | Delete
char **buffer_return,
[362] Fix | Delete
Pixmap pixmap,
[363] Fix | Delete
Pixmap shapemask,
[364] Fix | Delete
XpmAttributes *attributes));
[365] Fix | Delete
#endif
[366] Fix | Delete
FUNC(XpmReadFileToBuffer, int, (const char *filename, char **buffer_return));
[367] Fix | Delete
FUNC(XpmWriteFileFromBuffer, int, (const char *filename, char *buffer));
[368] Fix | Delete
[369] Fix | Delete
FUNC(XpmReadFileToData, int, (const char *filename, char ***data_return));
[370] Fix | Delete
FUNC(XpmWriteFileFromData, int, (const char *filename, char **data));
[371] Fix | Delete
[372] Fix | Delete
FUNC(XpmAttributesSize, int, (void));
[373] Fix | Delete
FUNC(XpmFreeAttributes, void, (XpmAttributes *attributes));
[374] Fix | Delete
FUNC(XpmFreeExtensions, void, (XpmExtension *extensions,
[375] Fix | Delete
int nextensions));
[376] Fix | Delete
[377] Fix | Delete
FUNC(XpmFreeXpmImage, void, (XpmImage *image));
[378] Fix | Delete
FUNC(XpmFreeXpmInfo, void, (XpmInfo *info));
[379] Fix | Delete
FUNC(XpmGetErrorString, char *, (int errcode));
[380] Fix | Delete
FUNC(XpmLibraryVersion, int, (void));
[381] Fix | Delete
[382] Fix | Delete
/* XpmImage functions */
[383] Fix | Delete
FUNC(XpmReadFileToXpmImage, int, (const char *filename,
[384] Fix | Delete
XpmImage *image,
[385] Fix | Delete
XpmInfo *info));
[386] Fix | Delete
[387] Fix | Delete
FUNC(XpmWriteFileFromXpmImage, int, (const char *filename,
[388] Fix | Delete
XpmImage *image,
[389] Fix | Delete
XpmInfo *info));
[390] Fix | Delete
#if !defined(FOR_MSW) && !defined(AMIGA)
[391] Fix | Delete
FUNC(XpmCreatePixmapFromXpmImage, int, (Display *display,
[392] Fix | Delete
Drawable d,
[393] Fix | Delete
XpmImage *image,
[394] Fix | Delete
Pixmap *pixmap_return,
[395] Fix | Delete
Pixmap *shapemask_return,
[396] Fix | Delete
XpmAttributes *attributes));
[397] Fix | Delete
#endif
[398] Fix | Delete
FUNC(XpmCreateImageFromXpmImage, int, (Display *display,
[399] Fix | Delete
XpmImage *image,
[400] Fix | Delete
XImage **image_return,
[401] Fix | Delete
XImage **shapeimage_return,
[402] Fix | Delete
XpmAttributes *attributes));
[403] Fix | Delete
[404] Fix | Delete
FUNC(XpmCreateXpmImageFromImage, int, (Display *display,
[405] Fix | Delete
XImage *image,
[406] Fix | Delete
XImage *shapeimage,
[407] Fix | Delete
XpmImage *xpmimage,
[408] Fix | Delete
XpmAttributes *attributes));
[409] Fix | Delete
#if !defined(FOR_MSW) && !defined(AMIGA)
[410] Fix | Delete
FUNC(XpmCreateXpmImageFromPixmap, int, (Display *display,
[411] Fix | Delete
Pixmap pixmap,
[412] Fix | Delete
Pixmap shapemask,
[413] Fix | Delete
XpmImage *xpmimage,
[414] Fix | Delete
XpmAttributes *attributes));
[415] Fix | Delete
#endif
[416] Fix | Delete
FUNC(XpmCreateDataFromXpmImage, int, (char ***data_return,
[417] Fix | Delete
XpmImage *image,
[418] Fix | Delete
XpmInfo *info));
[419] Fix | Delete
[420] Fix | Delete
FUNC(XpmCreateXpmImageFromData, int, (char **data,
[421] Fix | Delete
XpmImage *image,
[422] Fix | Delete
XpmInfo *info));
[423] Fix | Delete
[424] Fix | Delete
FUNC(XpmCreateXpmImageFromBuffer, int, (char *buffer,
[425] Fix | Delete
XpmImage *image,
[426] Fix | Delete
XpmInfo *info));
[427] Fix | Delete
[428] Fix | Delete
FUNC(XpmCreateBufferFromXpmImage, int, (char **buffer_return,
[429] Fix | Delete
XpmImage *image,
[430] Fix | Delete
XpmInfo *info));
[431] Fix | Delete
[432] Fix | Delete
FUNC(XpmGetParseError, int, (char *filename,
[433] Fix | Delete
int *linenum_return,
[434] Fix | Delete
int *charnum_return));
[435] Fix | Delete
[436] Fix | Delete
FUNC(XpmFree, void, (void *ptr));
[437] Fix | Delete
[438] Fix | Delete
_XFUNCPROTOEND
[439] Fix | Delete
[440] Fix | Delete
/* backward compatibility */
[441] Fix | Delete
[442] Fix | Delete
/* for version 3.0c */
[443] Fix | Delete
#define XpmPixmapColorError XpmColorError
[444] Fix | Delete
#define XpmPixmapSuccess XpmSuccess
[445] Fix | Delete
#define XpmPixmapOpenFailed XpmOpenFailed
[446] Fix | Delete
#define XpmPixmapFileInvalid XpmFileInvalid
[447] Fix | Delete
#define XpmPixmapNoMemory XpmNoMemory
[448] Fix | Delete
#define XpmPixmapColorFailed XpmColorFailed
[449] Fix | Delete
[450] Fix | Delete
#define XpmReadPixmapFile(dpy, d, file, pix, mask, att) \
[451] Fix | Delete
XpmReadFileToPixmap(dpy, d, file, pix, mask, att)
[452] Fix | Delete
#define XpmWritePixmapFile(dpy, file, pix, mask, att) \
[453] Fix | Delete
XpmWriteFileFromPixmap(dpy, file, pix, mask, att)
[454] Fix | Delete
[455] Fix | Delete
/* for version 3.0b */
[456] Fix | Delete
#define PixmapColorError XpmColorError
[457] Fix | Delete
#define PixmapSuccess XpmSuccess
[458] Fix | Delete
#define PixmapOpenFailed XpmOpenFailed
[459] Fix | Delete
#define PixmapFileInvalid XpmFileInvalid
[460] Fix | Delete
#define PixmapNoMemory XpmNoMemory
[461] Fix | Delete
#define PixmapColorFailed XpmColorFailed
[462] Fix | Delete
[463] Fix | Delete
#define ColorSymbol XpmColorSymbol
[464] Fix | Delete
[465] Fix | Delete
#define XReadPixmapFile(dpy, d, file, pix, mask, att) \
[466] Fix | Delete
XpmReadFileToPixmap(dpy, d, file, pix, mask, att)
[467] Fix | Delete
#define XWritePixmapFile(dpy, file, pix, mask, att) \
[468] Fix | Delete
XpmWriteFileFromPixmap(dpy, file, pix, mask, att)
[469] Fix | Delete
#define XCreatePixmapFromData(dpy, d, data, pix, mask, att) \
[470] Fix | Delete
XpmCreatePixmapFromData(dpy, d, data, pix, mask, att)
[471] Fix | Delete
#define XCreateDataFromPixmap(dpy, data, pix, mask, att) \
[472] Fix | Delete
XpmCreateDataFromPixmap(dpy, data, pix, mask, att)
[473] Fix | Delete
[474] Fix | Delete
#endif /* XPM_NUMBERS */
[475] Fix | Delete
#endif
[476] Fix | Delete
[477] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function