/* -*-c-*- */ /* Copyright (C) 2002 Olivier Chapuis */ #ifndef PICTURE_IMAGE_LOADER_H #define PICTURE_IMAGE_LOADER_H /* ---------------------------- included header files ---------------------- */ #include /* ---------------------------- global macros ------------------------------ */ /* ---------------------------- type definitions --------------------------- */ /* ---------------------------- interface functions ------------------------ */ /* * PImageCreatePixmapFromArgbData * * Create a pixmap with its mask and alpha channel from ARGB data. * */ Bool PImageCreatePixmapFromArgbData( Display *dpy, Window win, CARD32 *data, int start, int width, int height, Pixmap *pixmap, Pixmap *mask, Pixmap *alpha, int *nalloc_pixels, Pixel **alloc_pixels, int *no_limit, FvwmPictureAttributes fpa); /* * PImageLoadPixmapFromFile * * Create a pixmap with its mask and alpha channel from a file. * */ Bool PImageLoadPixmapFromFile( Display *dpy, Window win, char *file, Pixmap *pixmap, Pixmap *mask, Pixmap *alpha, int *width, int *height, int *depth, int *nalloc_pixels, Pixel **alloc_pixels, int *no_limit, FvwmPictureAttributes fpa); /* * PImageLoadPixmapFromFile * * Create a FvwmPicture from a file. * */ FvwmPicture *PImageLoadFvwmPictureFromFile( Display *dpy, Window win, char *path, FvwmPictureAttributes fpa); /* * PImageLoadPixmapFromFile * * Create a cursor from a file. * */ Cursor PImageLoadCursorFromFile( Display *dpy, Window win, char *path, int x_hot, int y_hot); /* * PImageLoadPixmapFromFile * * Create a pixmap with its mask from xpm data. * */ Bool PImageLoadPixmapFromXpmData( Display *dpy, Window win, int color_limit, char **data, Pixmap *pixmap, Pixmap *mask, int *width, int *height, int *depth); #endif /* PICTURE_IMAGE_LOADER_H */