Top | Description | ![]() |
![]() |
![]() |
![]() |
enum MetaGradientType; GdkPixbuf * meta_gradient_create_simple (int width
,int height
,const GdkRGBA *from
,const GdkRGBA *to
,MetaGradientType style
); GdkPixbuf * meta_gradient_create_multi (int width
,int height
,const GdkRGBA *colors
,int n_colors
,MetaGradientType style
); GdkPixbuf * meta_gradient_create_interwoven (int width
,int height
,const GdkRGBA colors1[2]
,int thickness1
,const GdkRGBA colors2[2]
,int thickness2
); void meta_gradient_add_alpha (GdkPixbuf *pixbuf
,const guchar *alphas
,int n_alphas
,MetaGradientType type
);
typedef enum { META_GRADIENT_VERTICAL, META_GRADIENT_HORIZONTAL, META_GRADIENT_DIAGONAL, META_GRADIENT_LAST } MetaGradientType;
Vertical gradient | |
Horizontal gradient | |
Diagonal gradient | |
Marks the end of the MetaGradientType enumeration |
GdkPixbuf * meta_gradient_create_simple (int width
,int height
,const GdkRGBA *from
,const GdkRGBA *to
,MetaGradientType style
);
|
Width in pixels |
|
Height in pixels |
|
Starting color |
|
Ending color |
|
Gradient style |
Returns : |
A new linear gradient. [transfer full] |
GdkPixbuf * meta_gradient_create_multi (int width
,int height
,const GdkRGBA *colors
,int n_colors
,MetaGradientType style
);
|
Width in pixels |
|
Height in pixels |
|
Array of colors. [array length=n_colors] |
|
Number of colors |
|
Gradient style |
Returns : |
A new multi-step linear gradient. [transfer full] |
GdkPixbuf * meta_gradient_create_interwoven (int width
,int height
,const GdkRGBA colors1[2]
,int thickness1
,const GdkRGBA colors2[2]
,int thickness2
);
Interwoven essentially means we have two vertical gradients, cut into horizontal strips of the given thickness, and then the strips are alternated. I'm not sure what it's good for, just copied since WindowMaker had it.
|
Width in pixels |
|
Height in pixels |
|
Array of colors |
|
Thickness |
|
Array of colors |
|
Thickness |
void meta_gradient_add_alpha (GdkPixbuf *pixbuf
,const guchar *alphas
,int n_alphas
,MetaGradientType type
);