📄 xmxpm.h
字号:
#define _LtXpmExactColors (1L<<11)#define _LtXpmCloseness (1L<<12)#define _LtXpmRGBCloseness (1L<<13)#define _LtXpmColorKey (1L<<14)#define _LtXpmColorTable (1L<<15)#define _LtXpmReturnColorTable _LtXpmColorTable#define _LtXpmReturnAllocPixels (1L<<16)#define _LtXpmAllocCloseColors (1L<<17)#define _LtXpmBitmapFormat (1L<<18)#define _LtXpmAllocColor (1L<<19)#define _LtXpmFreeColors (1L<<20)#define _LtXpmColorClosure (1L<<21)/* _LtXpmInfo value masks bits */#define _LtXpmComments _LtXpmInfos#define _LtXpmReturnComments _LtXpmComments/* _LtXpmAttributes mask_pixel value when there is no mask */#ifndef FOR_MSW#define _LtXpmUndefPixel 0x80000000#else/* int is only 16 bit for MSW */#define _LtXpmUndefPixel 0x8000#endif/* * color keys for visual type, they must fit along with the number key of * each related element in _LtxpmColorKeys[] defined in XpmI.h */#define XPM_MONO 2#define XPM_GREY4 3#define XPM_GRAY4 3#define XPM_GREY 4#define XPM_GRAY 4#define XPM_COLOR 5/* macros for forward declarations of functions with prototypes */#if NeedFunctionPrototypes#define FUNC(f, t, p) extern t f p#define LFUNC(f, t, p) static t f p#else#define FUNC(f, t, p) extern t f()#define LFUNC(f, t, p) static t f()#endif/* * functions declarations */#ifdef __cplusplusextern "C" {#endif/* FOR_MSW, all ..Pixmap.. are excluded, only the ..XImage.. are used *//* Same for Amiga! */#if !defined(FOR_MSW) && !defined(AMIGA) FUNC(_LtXpmCreatePixmapFromData, int, (Display *display, Drawable d, char **data, Pixmap *pixmap_return, Pixmap *shapemask_return, _LtXpmAttributes *attributes)); FUNC(_LtXpmCreateDataFromPixmap, int, (Display *display, char ***data_return, Pixmap pixmap, Pixmap shapemask, _LtXpmAttributes *attributes)); FUNC(_LtXpmReadFileToPixmap, int, (Display *display, Drawable d, char *filename, Pixmap *pixmap_return, Pixmap *shapemask_return, _LtXpmAttributes *attributes)); FUNC(_LtXpmWriteFileFromPixmap, int, (Display *display, char *filename, Pixmap pixmap, Pixmap shapemask, _LtXpmAttributes *attributes));#endif FUNC(_LtXpmCreateImageFromData, int, (Display *display, char **data, XImage **image_return, XImage **shapemask_return, _LtXpmAttributes *attributes)); FUNC(_LtXpmCreateDataFromImage, int, (Display *display, char ***data_return, XImage *image, XImage *shapeimage, _LtXpmAttributes *attributes)); FUNC(_LtXpmReadFileToImage, int, (Display *display, char *filename, XImage **image_return, XImage **shapeimage_return, _LtXpmAttributes *attributes)); FUNC(_LtXpmWriteFileFromImage, int, (Display *display, char *filename, XImage *image, XImage *shapeimage, _LtXpmAttributes *attributes)); FUNC(_LtXpmCreateImageFromBuffer, int, (Display *display, char *buffer, XImage **image_return, XImage **shapemask_return, _LtXpmAttributes *attributes));#if !defined(FOR_MSW) && !defined(AMIGA) FUNC(_LtXpmCreatePixmapFromBuffer, int, (Display *display, Drawable d, char *buffer, Pixmap *pixmap_return, Pixmap *shapemask_return, _LtXpmAttributes *attributes)); FUNC(_LtXpmCreateBufferFromImage, int, (Display *display, char **buffer_return, XImage *image, XImage *shapeimage, _LtXpmAttributes *attributes)); FUNC(_LtXpmCreateBufferFromPixmap, int, (Display *display, char **buffer_return, Pixmap pixmap, Pixmap shapemask, _LtXpmAttributes *attributes));#endif FUNC(_LtXpmReadFileToBuffer, int, (char *filename, char **buffer_return)); FUNC(_LtXpmWriteFileFromBuffer, int, (char *filename, char *buffer)); FUNC(_LtXpmReadFileToData, int, (char *filename, char ***data_return)); FUNC(_LtXpmWriteFileFromData, int, (char *filename, char **data)); FUNC(_LtXpmAttributesSize, int, (void)); FUNC(_LtXpmFreeAttributes, void, (_LtXpmAttributes *attributes)); FUNC(_LtXpmFreeExtensions, void, (_LtXpmExtension *extensions, int nextensions)); FUNC(_LtXpmFreeXpmImage, void, (_LtXpmImage *image)); FUNC(_LtXpmFreeXpmInfo, void, (_LtXpmInfo *info)); FUNC(_LtXpmGetErrorString, char *, (int errcode)); FUNC(_LtXpmLibraryVersion, int, (void)); /* _LtXpmImage functions */ FUNC(_LtXpmReadFileToXpmImage, int, (char *filename, _LtXpmImage *image, _LtXpmInfo *info)); FUNC(_LtXpmWriteFileFromXpmImage, int, (char *filename, _LtXpmImage *image, _LtXpmInfo *info));#if !defined(FOR_MSW) && !defined(AMIGA) FUNC(_LtXpmCreatePixmapFromXpmImage, int, (Display *display, Drawable d, _LtXpmImage *image, Pixmap *pixmap_return, Pixmap *shapemask_return, _LtXpmAttributes *attributes));#endif FUNC(_LtXpmCreateImageFromXpmImage, int, (Display *display, _LtXpmImage *image, XImage **image_return, XImage **shapeimage_return, _LtXpmAttributes *attributes)); FUNC(_LtXpmCreateXpmImageFromImage, int, (Display *display, XImage *image, XImage *shapeimage, _LtXpmImage *xpmimage, _LtXpmAttributes *attributes));#if !defined(FOR_MSW) && !defined(AMIGA) FUNC(_LtXpmCreateXpmImageFromPixmap, int, (Display *display, Pixmap pixmap, Pixmap shapemask, _LtXpmImage *xpmimage, _LtXpmAttributes *attributes));#endif FUNC(_LtXpmCreateDataFromXpmImage, int, (char ***data_return, _LtXpmImage *image, _LtXpmInfo *info)); FUNC(_LtXpmCreateXpmImageFromData, int, (char **data, _LtXpmImage *image, _LtXpmInfo *info)); FUNC(_LtXpmCreateXpmImageFromBuffer, int, (char *buffer, _LtXpmImage *image, _LtXpmInfo *info)); FUNC(_LtXpmCreateBufferFromXpmImage, int, (char **buffer_return, _LtXpmImage *image, _LtXpmInfo *info)); FUNC(_LtXpmFree, void, (void *ptr));#ifdef __cplusplus} /* for C++ V2.0 */#endif/* backward compatibility *//* for version 3.0c */#define _LtXpmPixmapColorError _LtXpmColorError#define _LtXpmPixmapSuccess _LtXpmSuccess#define _LtXpmPixmapOpenFailed _LtXpmOpenFailed#define _LtXpmPixmapFileInvalid _LtXpmFileInvalid#define _LtXpmPixmapNoMemory _LtXpmNoMemory#define _LtXpmPixmapColorFailed _LtXpmColorFailed#define _LtXpmReadPixmapFile(dpy, d, file, pix, mask, att) \ _LtXpmReadFileToPixmap(dpy, d, file, pix, mask, att)#define _LtXpmWritePixmapFile(dpy, file, pix, mask, att) \ _LtXpmWriteFileFromPixmap(dpy, file, pix, mask, att)/* for version 3.0b */#define PixmapColorError _LtXpmColorError#define PixmapSuccess _LtXpmSuccess#define PixmapOpenFailed _LtXpmOpenFailed#define PixmapFileInvalid _LtXpmFileInvalid#define PixmapNoMemory _LtXpmNoMemory#define PixmapColorFailed _LtXpmColorFailed#define ColorSymbol _LtXpmColorSymbol#define XReadPixmapFile(dpy, d, file, pix, mask, att) \ _LtXpmReadFileToPixmap(dpy, d, file, pix, mask, att)#define XWritePixmapFile(dpy, file, pix, mask, att) \ _LtXpmWriteFileFromPixmap(dpy, file, pix, mask, att)#define XCreatePixmapFromData(dpy, d, data, pix, mask, att) \ _LtXpmCreatePixmapFromData(dpy, d, data, pix, mask, att)#define XCreateDataFromPixmap(dpy, data, pix, mask, att) \ _LtXpmCreateDataFromPixmap(dpy, data, pix, mask, att)#endif /* XPM_NUMBERS */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -