diff options
author | Benjamin Otte <otte@redhat.com> | 2019-02-21 03:26:03 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-02-21 19:47:28 +0100 |
commit | 1ef250f44a93504bf154afca32cd2d4cc0908780 (patch) | |
tree | 399c27f63ab147b9302fbf29fc2fafb80e89b99f /gtk/gtksnapshot.h | |
parent | 0d119f81c8558d15567bb2784a2b0a6b01d237f8 (diff) | |
download | gtk+-1ef250f44a93504bf154afca32cd2d4cc0908780.tar.gz |
snapshot: Add functions to append shadows
Diffstat (limited to 'gtk/gtksnapshot.h')
-rw-r--r-- | gtk/gtksnapshot.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h index 1f61d7a214..05cf3f5867 100644 --- a/gtk/gtksnapshot.h +++ b/gtk/gtksnapshot.h @@ -146,6 +146,22 @@ void gtk_snapshot_append_border (GtkSnapshot const GskRoundedRect *outline, const float border_width[4], const GdkRGBA border_color[4]); +GDK_AVAILABLE_IN_ALL +void gtk_snapshot_append_inset_shadow (GtkSnapshot *snapshot, + const GskRoundedRect *outline, + const GdkRGBA *color, + float dx, + float dy, + float spread, + float blur_radius); +GDK_AVAILABLE_IN_ALL +void gtk_snapshot_append_outset_shadow (GtkSnapshot *snapshot, + const GskRoundedRect *outline, + const GdkRGBA *color, + float dx, + float dy, + float spread, + float blur_radius); /* next function implemented in gskpango.c */ GDK_AVAILABLE_IN_ALL void gtk_snapshot_append_layout (GtkSnapshot *snapshot, |