pixmap.h

Go to the documentation of this file.
00001 #ifndef LIBAFTERIMAGE_PIXMAP_H_HEADER_FILE_INCLUDED
00002 #define LIBAFTERIMAGE_PIXMAP_H_HEADER_FILE_INCLUDED
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 
00009 typedef struct ShadingInfo
00010 {
00011     XColor tintColor;
00012     unsigned int shading;
00013 }
00014 ShadingInfo;
00015 
00016 #define NO_NEED_TO_SHADE(o) ((o).shading==100 && (o).tintColor.red==0xFFFF && (o).tintColor.green==0xFFFF && (o).tintColor.blue == 0xFFFF)
00017 int FillPixmapWithTile (Pixmap pixmap, Pixmap tile, int x, int y, int width, int height, int tile_x, int tile_y);
00018 Pixmap GetRootPixmap (Atom id);
00019 Pixmap ValidatePixmap (Pixmap p, int bSetHandler, int bTransparent, unsigned int *pWidth, unsigned int *pHeight);
00020 int GetRootDimensions (int *width, int *height);
00021 int GetWinPosition (Window w, int *x, int *y);
00022 ARGB32 shading2tint32(ShadingInfo * shading);
00023 Pixmap scale_pixmap (ASVisual *asv, Pixmap src, int src_w, int src_h, int width, int height, GC gc, ARGB32 tint);
00024 Pixmap ScalePixmap (Pixmap src, int src_w, int src_h, int width, int height, GC gc, ShadingInfo * shading);
00025 void copyshade_drawable_area( ASVisual *asv, Drawable src, Pixmap trg,
00026                                                  int x, int y, int w, int h,
00027                                                  int trg_x, int trg_y,
00028                                                  GC gc, ARGB32 tint);
00029 void CopyAndShadeArea ( Drawable src, Pixmap trg,
00030                                    int x, int y, int w, int h,
00031                                    int trg_x, int trg_y,
00032                                    GC gc, ShadingInfo * shading);
00033 void tile_pixmap (ASVisual *asv, Pixmap src, Pixmap trg, int src_w, int src_h, int x, int y, int w, int h, GC gc, ARGB32 tint);
00034 void ShadeTiledPixmap (Pixmap src, Pixmap trg, int src_w, int src_h, int x, int y, int w, int h, GC gc, ShadingInfo * shading);
00035 Pixmap shade_pixmap (ASVisual *asv, Pixmap src, int x, int y, int width, int height, GC gc, ARGB32 tint);
00036 Pixmap ShadePixmap (Pixmap src, int x, int y, int width, int height, GC gc, ShadingInfo * shading);
00037 Pixmap center_pixmap (ASVisual *asv, Pixmap src, int src_w, int src_h, int width, int height, GC gc, ARGB32 tint);
00038 Pixmap CenterPixmap (Pixmap src, int src_w, int src_h, int width, int height, GC gc, ShadingInfo * shading);
00039 Pixmap grow_pixmap (ASVisual *asv, Pixmap src, int src_w, int src_h, int width, int height, GC gc, ARGB32 tint );
00040 Pixmap GrowPixmap (Pixmap src, int src_w, int src_h, int width, int height, GC gc, ShadingInfo * shading);
00041 Pixmap cut_win_pixmap ( ASVisual *asv, Window win, Drawable src, int src_w, int src_h, int width,
00042                                             int height, GC gc, ARGB32 tint);
00043 Pixmap CutWinPixmap ( Window win, Drawable src, int src_w, int src_h, int width,
00044                                       int height, GC gc, ShadingInfo * shading);
00045 int fill_with_darkened_background (ASVisual *asv, Pixmap * pixmap, ARGB32 tint, int x, int y, int width, int height, int root_x, int root_y, int bDiscardOriginal, ASImage *root_im);
00046 int fill_with_pixmapped_background (ASVisual *asv, Pixmap * pixmap, ASImage *image, int x, int y, int width, int height, int root_x, int root_y, int bDiscardOriginal, ASImage *root_im);
00047 /************************************************/
00048 
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 
00053 
00054 #endif /* #ifndef LIBAFTERIMAGE_PIXMAP_H_HEADER_FILE_INCLUDED */
00055 

Generated on Tue Jul 5 14:13:32 2011 for ROOT_528-00b_version by  doxygen 1.5.1