diff options
author | Victor Kareh <[email protected]> | 2019-05-30 16:27:59 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 12:34:34 -0400 |
commit | a1797ff49005fe18a3ae55f763f5a58ade66b480 (patch) | |
tree | a65dc5158e529c37801d4ecbc9b4aedf1c889684 /src/ui/gradient.h | |
parent | fc5c86d9da24c795e42b0a00c6414365ea8949df (diff) | |
download | marco-a1797ff49005fe18a3ae55f763f5a58ade66b480.tar.bz2 marco-a1797ff49005fe18a3ae55f763f5a58ade66b480.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 */ |