diff options
author | Victor Kareh <[email protected]> | 2019-05-30 16:27:59 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-01 14:49:43 +0200 |
commit | e01cfaee4cf5f07095be58bd33ab879377811f93 (patch) | |
tree | 4c78b0518dca0de73181c1b13c71f4981b4e4e58 /src/ui/gradient.h | |
parent | f0ed8d36fe436b024c98a934a7ded2850d8cc118 (diff) | |
download | marco-e01cfaee4cf5f07095be58bd33ab879377811f93.tar.bz2 marco-e01cfaee4cf5f07095be58bd33ab879377811f93.tar.xz |
gradient: sync code with mutter before it was removed
upstream commits:
https://gitlab.gnome.org/GNOME/metacity/commit/3932dca0
https://gitlab.gnome.org/GNOME/metacity/commit/10240013
https://gitlab.gnome.org/GNOME/metacity/commit/3fa97193
Diffstat (limited to 'src/ui/gradient.h')
-rw-r--r-- | src/ui/gradient.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/gradient.h b/src/ui/gradient.h index e40ba8eb..8da20485 100644 --- a/src/ui/gradient.h +++ b/src/ui/gradient.h @@ -27,6 +27,14 @@ #include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk/gdk.h> +/** + * MetaGradientType: + * @META_GRADIENT_VERTICAL: Vertical gradient + * @META_GRADIENT_HORIZONTAL: Horizontal gradient + * @META_GRADIENT_DIAGONAL: Diagonal gradient + * @META_GRADIENT_LAST: Marks the end of the #MetaGradientType enumeration + * + */ typedef enum { META_GRADIENT_VERTICAL, @@ -52,6 +60,7 @@ GdkPixbuf* meta_gradient_create_interwoven (int width, const GdkRGBA colors2[2], int thickness2); + /* Generate an alpha gradient and multiply it with the existing alpha * channel of the given pixbuf */ |