Convert over to use GetOpt::Long and introduce -f and -h.
[fvwm.git] / libs / PictureImageLoader.h
blob02056d7407970e447c71454ec7aafb50f67a3ab9
1 /* -*-c-*- */
2 /* Copyright (C) 2002 Olivier Chapuis */
4 #ifndef PICTURE_IMAGE_LOADER_H
5 #define PICTURE_IMAGE_LOADER_H
7 /* ---------------------------- included header files ---------------------- */
9 #include <X11/Xmd.h>
11 /* ---------------------------- global macros ------------------------------ */
13 /* ---------------------------- type definitions --------------------------- */
15 /* ---------------------------- interface functions ------------------------ */
18 * <pubfunc>PImageCreatePixmapFromArgbData
19 * <description>
20 * Create a pixmap with its mask and alpha channel from ARGB data.
21 * </description>
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
30 * <description>
31 * Create a pixmap with its mask and alpha channel from a file.
32 * </description>
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
42 * <description>
43 * Create a FvwmPicture from a file.
44 * </description>
46 FvwmPicture *PImageLoadFvwmPictureFromFile(
47 Display *dpy, Window win, char *path, FvwmPictureAttributes fpa);
50 * <pubfunc>PImageLoadPixmapFromFile
51 * <description>
52 * Create a cursor from a file.
53 * </description>
55 Cursor PImageLoadCursorFromFile(
56 Display *dpy, Window win, char *path, int x_hot, int y_hot);
59 * <pubfunc>PImageLoadPixmapFromFile
60 * <description>
61 * Create a pixmap with its mask from xpm data.
62 * </description>
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 */