annotate src/xpm/include/xpm.h @ 27140:a9eeb18e749c v8.2.4099

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