00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef META_GRADIENT_H
00025 #define META_GRADIENT_H
00026
00027 #include <gdk-pixbuf/gdk-pixbuf.h>
00028 #include <gdk/gdkcolor.h>
00029
00030 typedef enum
00031 {
00032 META_GRADIENT_VERTICAL,
00033 META_GRADIENT_HORIZONTAL,
00034 META_GRADIENT_DIAGONAL,
00035 META_GRADIENT_LAST
00036 } MetaGradientType;
00037
00038 GdkPixbuf* meta_gradient_create_simple (int width,
00039 int height,
00040 const GdkColor *from,
00041 const GdkColor *to,
00042 MetaGradientType style);
00043 GdkPixbuf* meta_gradient_create_multi (int width,
00044 int height,
00045 const GdkColor *colors,
00046 int n_colors,
00047 MetaGradientType style);
00048 GdkPixbuf* meta_gradient_create_interwoven (int width,
00049 int height,
00050 const GdkColor colors1[2],
00051 int thickness1,
00052 const GdkColor colors2[2],
00053 int thickness2);
00054
00055
00056
00057
00058
00059 void meta_gradient_add_alpha (GdkPixbuf *pixbuf,
00060 const guchar *alphas,
00061 int n_alphas,
00062 MetaGradientType type);
00063
00064
00065 #endif