summaryrefslogtreecommitdiff
path: root/src/gradient.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradient.h')
-rw-r--r--src/gradient.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gradient.h b/src/gradient.h
index 079150c..4b14475 100644
--- a/src/gradient.h
+++ b/src/gradient.h
@@ -32,6 +32,26 @@ typedef enum
META_GRADIENT_DIAGONAL
} MetaGradientType;
+typedef struct _MetaGradientDescription MetaGradientDescription;
+
+/* this doesn't support interwoven at the moment, since
+ * I don't know what interwoven is good for
+ */
+struct _MetaGradientDescription
+{
+ MetaGradientType type;
+ GdkColor *colors;
+ int n_colors;
+};
+
+MetaGradientDescription* meta_gradient_description_new (MetaGradientType type,
+ const GdkColor *colors,
+ int n_colors);
+void meta_gradient_description_free (MetaGradientDescription *desc);
+GdkPixbuf* meta_gradient_description_render (const MetaGradientDescription *desc,
+ int width,
+ int height);
+
GdkPixbuf* meta_gradient_create_simple (int width,
int height,