2 /* Copyright (C) 2002 Olivier Chapuis */
4 #ifndef PICTURE_IMAGE_LOADER_H
5 #define PICTURE_IMAGE_LOADER_H
7 /* ---------------------------- included header files ---------------------- */
11 /* ---------------------------- global macros ------------------------------ */
13 /* ---------------------------- type definitions --------------------------- */
15 /* ---------------------------- interface functions ------------------------ */
18 * <pubfunc>PImageCreatePixmapFromArgbData
20 * Create a pixmap with its mask and alpha channel from ARGB data.
23 Bool
PImageCreatePixmapFromArgbData(
24 Display
*dpy
, Window win
, CARD32
*data
, int start
, int width
,
25 int height
, Pixmap
*pixmap
, Pixmap
*mask
, Pixmap
*alpha
,
26 int *nalloc_pixels
, Pixel
**alloc_pixels
, int *no_limit
,
27 FvwmPictureAttributes fpa
);
29 * <pubfunc>PImageLoadPixmapFromFile
31 * Create a pixmap with its mask and alpha channel from a file.
34 Bool
PImageLoadPixmapFromFile(
35 Display
*dpy
, Window win
, char *file
, Pixmap
*pixmap
, Pixmap
*mask
,
36 Pixmap
*alpha
, int *width
, int *height
, int *depth
,
37 int *nalloc_pixels
, Pixel
**alloc_pixels
, int *no_limit
,
38 FvwmPictureAttributes fpa
);
41 * <pubfunc>PImageLoadPixmapFromFile
43 * Create a FvwmPicture from a file.
46 FvwmPicture
*PImageLoadFvwmPictureFromFile(
47 Display
*dpy
, Window win
, char *path
, FvwmPictureAttributes fpa
);
50 * <pubfunc>PImageLoadPixmapFromFile
52 * Create a cursor from a file.
55 Cursor
PImageLoadCursorFromFile(
56 Display
*dpy
, Window win
, char *path
, int x_hot
, int y_hot
);
59 * <pubfunc>PImageLoadPixmapFromFile
61 * Create a pixmap with its mask from xpm data.
64 Bool
PImageLoadPixmapFromXpmData(
65 Display
*dpy
, Window win
, int color_limit
, char **data
,
66 Pixmap
*pixmap
, Pixmap
*mask
, int *width
,
67 int *height
, int *depth
);
69 #endif /* PICTURE_IMAGE_LOADER_H */