Back to index

plt-scheme  4.2.1
Classes | Defines | Typedefs | Functions
xpm.h File Reference
#include <X11/Xlib.h>
#include <X11/Xutil.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XpmColorSymbol
struct  XpmExtension
struct  XpmColor
struct  XpmImage
struct  XpmInfo
struct  XpmAttributes

Defines

#define XpmFormat   3
#define XpmVersion   4
#define XpmRevision   7
#define XpmIncludeVersion   ((XpmFormat * 100 + XpmVersion) * 100 + XpmRevision)
#define PIXEL_ALREADY_TYPEDEFED
#define XpmColorError   1
#define XpmSuccess   0
#define XpmOpenFailed   -1
#define XpmFileInvalid   -2
#define XpmNoMemory   -3
#define XpmColorFailed   -4
#define XpmFree(ptr)   free(ptr)
#define XpmVisual   (1L<<0)
#define XpmColormap   (1L<<1)
#define XpmDepth   (1L<<2)
#define XpmSize   (1L<<3) /* width & height */
#define XpmHotspot   (1L<<4) /* x_hotspot & y_hotspot */
#define XpmCharsPerPixel   (1L<<5)
#define XpmColorSymbols   (1L<<6)
#define XpmRgbFilename   (1L<<7)
#define XpmInfos   (1L<<8)
#define XpmReturnInfos   XpmInfos
#define XpmReturnPixels   (1L<<9)
#define XpmExtensions   (1L<<10)
#define XpmReturnExtensions   XpmExtensions
#define XpmExactColors   (1L<<11)
#define XpmCloseness   (1L<<12)
#define XpmRGBCloseness   (1L<<13)
#define XpmColorKey   (1L<<14)
#define XpmColorTable   (1L<<15)
#define XpmReturnColorTable   XpmColorTable
#define XpmReturnAllocPixels   (1L<<16)
#define XpmComments   XpmInfos
#define XpmReturnComments   XpmComments
#define XpmUndefPixel   0x80000000
#define XPM_MONO   2
#define XPM_GREY4   3
#define XPM_GRAY4   3
#define XPM_GREY   4
#define XPM_GRAY   4
#define XPM_COLOR   5
#define FUNC(f, t, p)   extern t f()
#define LFUNC(f, t, p)   static t f()
#define XpmPixmapColorError   XpmColorError
#define XpmPixmapSuccess   XpmSuccess
#define XpmPixmapOpenFailed   XpmOpenFailed
#define XpmPixmapFileInvalid   XpmFileInvalid
#define XpmPixmapNoMemory   XpmNoMemory
#define XpmPixmapColorFailed   XpmColorFailed
#define XpmReadPixmapFile(dpy, d, file, pix, mask, att)   XpmReadFileToPixmap(dpy, d, file, pix, mask, att)
#define XpmWritePixmapFile(dpy, file, pix, mask, att)   XpmWriteFileFromPixmap(dpy, file, pix, mask, att)
#define PixmapColorError   XpmColorError
#define PixmapSuccess   XpmSuccess
#define PixmapOpenFailed   XpmOpenFailed
#define PixmapFileInvalid   XpmFileInvalid
#define PixmapNoMemory   XpmNoMemory
#define PixmapColorFailed   XpmColorFailed
#define ColorSymbol   XpmColorSymbol
#define XReadPixmapFile(dpy, d, file, pix, mask, att)   XpmReadFileToPixmap(dpy, d, file, pix, mask, att)
#define XWritePixmapFile(dpy, file, pix, mask, att)   XpmWriteFileFromPixmap(dpy, file, pix, mask, att)
#define XCreatePixmapFromData(dpy, d, data, pix, mask, att)   XpmCreatePixmapFromData(dpy, d, data, pix, mask, att)
#define XCreateDataFromPixmap(dpy, data, pix, mask, att)   XpmCreateDataFromPixmap(dpy, data, pix, mask, att)

Typedefs

typedef unsigned long Pixel

Functions

 FUNC (XpmCreatePixmapFromData, int,(Display *display, Drawable d, char **data, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes))
 FUNC (XpmCreateDataFromPixmap, int,(Display *display, char ***data_return, Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes))
 FUNC (XpmReadFileToPixmap, int,(Display *display, Drawable d, char *filename, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes))
 FUNC (XpmWriteFileFromPixmap, int,(Display *display, char *filename, Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes))
 FUNC (XpmCreateImageFromData, int,(Display *display, char **data, XImage **image_return, XImage **shapemask_return, XpmAttributes *attributes))
 FUNC (XpmCreateDataFromImage, int,(Display *display, char ***data_return, XImage *image, XImage *shapeimage, XpmAttributes *attributes))
 FUNC (XpmReadFileToImage, int,(Display *display, char *filename, XImage **image_return, XImage **shapeimage_return, XpmAttributes *attributes))
 FUNC (XpmWriteFileFromImage, int,(Display *display, char *filename, XImage *image, XImage *shapeimage, XpmAttributes *attributes))
 FUNC (XpmCreateImageFromBuffer, int,(Display *display, char *buffer, XImage **image_return, XImage **shapemask_return, XpmAttributes *attributes))
 FUNC (XpmCreatePixmapFromBuffer, int,(Display *display, Drawable d, char *buffer, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes))
 FUNC (XpmCreateBufferFromImage, int,(Display *display, char **buffer_return, XImage *image, XImage *shapeimage, XpmAttributes *attributes))
 FUNC (XpmCreateBufferFromPixmap, int,(Display *display, char **buffer_return, Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes))
 FUNC (XpmReadFileToBuffer, int,(char *filename, char **buffer_return))
 FUNC (XpmWriteFileFromBuffer, int,(char *filename, char *buffer))
 FUNC (XpmReadFileToData, int,(char *filename, char ***data_return))
 FUNC (XpmWriteFileFromData, int,(char *filename, char **data))
 FUNC (XpmAttributesSize, int,())
 FUNC (XpmFreeAttributes, void,(XpmAttributes *attributes))
 FUNC (XpmFreeExtensions, void,(XpmExtension *extensions, int nextensions))
 FUNC (XpmFreeXpmImage, void,(XpmImage *image))
 FUNC (XpmFreeXpmInfo, void,(XpmInfo *info))
 FUNC (XpmGetErrorString, char *,(int errcode))
 FUNC (XpmLibraryVersion, int,())
 FUNC (XpmReadFileToXpmImage, int,(char *filename, XpmImage *image, XpmInfo *info))
 FUNC (XpmWriteFileFromXpmImage, int,(char *filename, XpmImage *image, XpmInfo *info))
 FUNC (XpmCreatePixmapFromXpmImage, int,(Display *display, Drawable d, XpmImage *image, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes))
 FUNC (XpmCreateImageFromXpmImage, int,(Display *display, XpmImage *image, XImage **image_return, XImage **shapeimage_return, XpmAttributes *attributes))
 FUNC (XpmCreateXpmImageFromImage, int,(Display *display, XImage *image, XImage *shapeimage, XpmImage *xpmimage, XpmAttributes *attributes))
 FUNC (XpmCreateXpmImageFromPixmap, int,(Display *display, Pixmap pixmap, Pixmap shapemask, XpmImage *xpmimage, XpmAttributes *attributes))
 FUNC (XpmCreateDataFromXpmImage, int,(char ***data_return, XpmImage *image, XpmInfo *info))
 FUNC (XpmCreateXpmImageFromData, int,(char **data, XpmImage *image, XpmInfo *info))
 FUNC (XpmCreateXpmImageFromBuffer, int,(char *buffer, XpmImage *image, XpmInfo *info))
 FUNC (XpmCreateBufferFromXpmImage, int,(char **buffer_return, XpmImage *image, XpmInfo *info))

Class Documentation

struct XpmColorSymbol

Definition at line 94 of file xpm.h.

Class Members
char * name
Pixel pixel
char * value
struct XpmExtension

Definition at line 100 of file xpm.h.

Class Members
char ** lines
char * name
unsigned int nlines
struct XpmColor

Definition at line 106 of file xpm.h.

Class Members
char * c_color
char * g4_color
char * g_color
char * m_color
char * string
char * symbolic
struct XpmImage

Definition at line 115 of file xpm.h.

Collaboration diagram for XpmImage:
Class Members
XpmColor * colorTable
unsigned int cpp
unsigned int * data
unsigned int height
unsigned int ncolors
unsigned int width
struct XpmInfo

Definition at line 124 of file xpm.h.

Collaboration diagram for XpmInfo:
Class Members
char * colors_cmt
XpmExtension * extensions
char * hints_cmt
unsigned int nextensions
char * pixels_cmt
unsigned long valuemask
unsigned int x_hotspot
unsigned int y_hotspot
struct XpmAttributes

Definition at line 135 of file xpm.h.

Collaboration diagram for XpmAttributes:
Class Members
Pixel * alloc_pixels
unsigned int blue_closeness
unsigned int closeness
int color_key
Colormap colormap
char * colors_cmt
XpmColorSymbol * colorsymbols
XpmColor * colorTable
unsigned int cpp
unsigned int depth
unsigned int exactColors
XpmExtension * extensions
unsigned int green_closeness
unsigned int height
char * hints_cmt
unsigned int mask_pixel
unsigned int nalloc_pixels
unsigned int ncolors
unsigned int nextensions
unsigned int npixels
unsigned int numsymbols
Pixel * pixels
char * pixels_cmt
unsigned int red_closeness
char * rgb_fname
unsigned long valuemask
Visual * visual
unsigned int width
unsigned int x_hotspot
unsigned int y_hotspot

Define Documentation

Definition at line 434 of file xpm.h.

#define FUNC (   f,
  t,
  p 
)    extern t f()

Definition at line 248 of file xpm.h.

#define LFUNC (   f,
  t,
  p 
)    static t f()

Definition at line 249 of file xpm.h.

Definition at line 75 of file xpm.h.

Definition at line 427 of file xpm.h.

Definition at line 432 of file xpm.h.

Definition at line 430 of file xpm.h.

Definition at line 431 of file xpm.h.

Definition at line 429 of file xpm.h.

#define PixmapSuccess   XpmSuccess

Definition at line 428 of file xpm.h.

#define XCreateDataFromPixmap (   dpy,
  data,
  pix,
  mask,
  att 
)    XpmCreateDataFromPixmap(dpy, data, pix, mask, att)

Definition at line 442 of file xpm.h.

#define XCreatePixmapFromData (   dpy,
  d,
  data,
  pix,
  mask,
  att 
)    XpmCreatePixmapFromData(dpy, d, data, pix, mask, att)

Definition at line 440 of file xpm.h.

#define XPM_COLOR   5

Definition at line 234 of file xpm.h.

#define XPM_GRAY   4

Definition at line 233 of file xpm.h.

#define XPM_GRAY4   3

Definition at line 231 of file xpm.h.

#define XPM_GREY   4

Definition at line 232 of file xpm.h.

#define XPM_GREY4   3

Definition at line 230 of file xpm.h.

#define XPM_MONO   2

Definition at line 229 of file xpm.h.

#define XpmCharsPerPixel   (1L<<5)

Definition at line 192 of file xpm.h.

#define XpmCloseness   (1L<<12)

Definition at line 204 of file xpm.h.

#define XpmColorError   1

Definition at line 84 of file xpm.h.

#define XpmColorFailed   -4

Definition at line 89 of file xpm.h.

#define XpmColorKey   (1L<<14)

Definition at line 206 of file xpm.h.

#define XpmColormap   (1L<<1)

Definition at line 188 of file xpm.h.

#define XpmColorSymbols   (1L<<6)

Definition at line 193 of file xpm.h.

#define XpmColorTable   (1L<<15)

Definition at line 208 of file xpm.h.

#define XpmComments   XpmInfos

Definition at line 214 of file xpm.h.

#define XpmDepth   (1L<<2)

Definition at line 189 of file xpm.h.

#define XpmExactColors   (1L<<11)

Definition at line 203 of file xpm.h.

#define XpmExtensions   (1L<<10)

Definition at line 200 of file xpm.h.

#define XpmFileInvalid   -2

Definition at line 87 of file xpm.h.

#define XpmFormat   3

Definition at line 55 of file xpm.h.

#define XpmFree (   ptr)    free(ptr)

Definition at line 92 of file xpm.h.

#define XpmHotspot   (1L<<4) /* x_hotspot & y_hotspot */

Definition at line 191 of file xpm.h.

#define XpmIncludeVersion   ((XpmFormat * 100 + XpmVersion) * 100 + XpmRevision)

Definition at line 58 of file xpm.h.

#define XpmInfos   (1L<<8)

Definition at line 196 of file xpm.h.

#define XpmNoMemory   -3

Definition at line 88 of file xpm.h.

#define XpmOpenFailed   -1

Definition at line 86 of file xpm.h.

Definition at line 414 of file xpm.h.

Definition at line 419 of file xpm.h.

Definition at line 417 of file xpm.h.

Definition at line 418 of file xpm.h.

Definition at line 416 of file xpm.h.

Definition at line 415 of file xpm.h.

#define XpmReadPixmapFile (   dpy,
  d,
  file,
  pix,
  mask,
  att 
)    XpmReadFileToPixmap(dpy, d, file, pix, mask, att)

Definition at line 421 of file xpm.h.

#define XpmReturnAllocPixels   (1L<<16)

Definition at line 211 of file xpm.h.

Definition at line 209 of file xpm.h.

Definition at line 215 of file xpm.h.

Definition at line 201 of file xpm.h.

#define XpmReturnInfos   XpmInfos

Definition at line 197 of file xpm.h.

#define XpmReturnPixels   (1L<<9)

Definition at line 199 of file xpm.h.

#define XpmRevision   7

Definition at line 57 of file xpm.h.

#define XpmRGBCloseness   (1L<<13)

Definition at line 205 of file xpm.h.

#define XpmRgbFilename   (1L<<7)

Definition at line 194 of file xpm.h.

#define XpmSize   (1L<<3) /* width & height */

Definition at line 190 of file xpm.h.

#define XpmSuccess   0

Definition at line 85 of file xpm.h.

#define XpmUndefPixel   0x80000000

Definition at line 219 of file xpm.h.

#define XpmVersion   4

Definition at line 56 of file xpm.h.

#define XpmVisual   (1L<<0)

Definition at line 187 of file xpm.h.

#define XpmWritePixmapFile (   dpy,
  file,
  pix,
  mask,
  att 
)    XpmWriteFileFromPixmap(dpy, file, pix, mask, att)

Definition at line 423 of file xpm.h.

#define XReadPixmapFile (   dpy,
  d,
  file,
  pix,
  mask,
  att 
)    XpmReadFileToPixmap(dpy, d, file, pix, mask, att)

Definition at line 436 of file xpm.h.

#define XWritePixmapFile (   dpy,
  file,
  pix,
  mask,
  att 
)    XpmWriteFileFromPixmap(dpy, file, pix, mask, att)

Definition at line 438 of file xpm.h.


Typedef Documentation

typedef unsigned long Pixel

Definition at line 74 of file xpm.h.


Function Documentation

FUNC ( XpmCreatePixmapFromData  ,
int  ,
(Display *display, Drawable d, char **data, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes)   
)
FUNC ( XpmCreateDataFromPixmap  ,
int  ,
(Display *display, char ***data_return, Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes)   
)
FUNC ( XpmReadFileToPixmap  ,
int  ,
(Display *display, Drawable d, char *filename, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes)   
)
FUNC ( XpmWriteFileFromPixmap  ,
int  ,
(Display *display, char *filename, Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes)   
)
FUNC ( XpmCreateImageFromData  ,
int  ,
(Display *display, char **data, XImage **image_return, XImage **shapemask_return, XpmAttributes *attributes)   
)
FUNC ( XpmCreateDataFromImage  ,
int  ,
(Display *display, char ***data_return, XImage *image, XImage *shapeimage, XpmAttributes *attributes)   
)
FUNC ( XpmReadFileToImage  ,
int  ,
(Display *display, char *filename, XImage **image_return, XImage **shapeimage_return, XpmAttributes *attributes)   
)
FUNC ( XpmWriteFileFromImage  ,
int  ,
(Display *display, char *filename, XImage *image, XImage *shapeimage, XpmAttributes *attributes)   
)
FUNC ( XpmCreateImageFromBuffer  ,
int  ,
(Display *display, char *buffer, XImage **image_return, XImage **shapemask_return, XpmAttributes *attributes)   
)
FUNC ( XpmCreatePixmapFromBuffer  ,
int  ,
(Display *display, Drawable d, char *buffer, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes)   
)
FUNC ( XpmCreateBufferFromImage  ,
int  ,
(Display *display, char **buffer_return, XImage *image, XImage *shapeimage, XpmAttributes *attributes)   
)
FUNC ( XpmCreateBufferFromPixmap  ,
int  ,
(Display *display, char **buffer_return, Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes)   
)
FUNC ( XpmReadFileToBuffer  ,
int  ,
(char *filename, char **buffer_return)   
)
FUNC ( XpmWriteFileFromBuffer  ,
int  ,
(char *filename, char *buffer  
)
FUNC ( XpmReadFileToData  ,
int  ,
(char *filename, char ***data_return)   
)
FUNC ( XpmWriteFileFromData  ,
int  ,
(char *filename, char **data  
)
FUNC ( XpmAttributesSize  ,
int  ,
()   
)
FUNC ( XpmFreeAttributes  ,
void  ,
(XpmAttributes *attributes)   
)
FUNC ( XpmFreeExtensions  ,
void  ,
(XpmExtension *extensions, int nextensions)   
)
FUNC ( XpmFreeXpmImage  ,
void  ,
(XpmImage *image  
)
FUNC ( XpmFreeXpmInfo  ,
void  ,
(XpmInfo *info  
)
FUNC ( XpmGetErrorString  ,
char *  ,
(int errcode)   
)
FUNC ( XpmLibraryVersion  ,
int  ,
()   
)
FUNC ( XpmCreatePixmapFromXpmImage  ,
int  ,
(Display *display, Drawable d, XpmImage *image, Pixmap *pixmap_return, Pixmap *shapemask_return, XpmAttributes *attributes)   
)
FUNC ( XpmCreateImageFromXpmImage  ,
int  ,
(Display *display, XpmImage *image, XImage **image_return, XImage **shapeimage_return, XpmAttributes *attributes)   
)
FUNC ( XpmCreateXpmImageFromImage  ,
int  ,
(Display *display, XImage *image, XImage *shapeimage, XpmImage *xpmimage, XpmAttributes *attributes)   
)
FUNC ( XpmCreateXpmImageFromPixmap  ,
int  ,
(Display *display, Pixmap pixmap, Pixmap shapemask, XpmImage *xpmimage, XpmAttributes *attributes)   
)
FUNC ( XpmCreateDataFromXpmImage  ,
int  ,
(char ***data_return, XpmImage *image, XpmInfo *info  
)
FUNC ( XpmCreateBufferFromXpmImage  ,
int  ,
(char **buffer_return, XpmImage *image, XpmInfo *info  
)