diff options
author | Alexander Larsson <alexl@redhat.com> | 2020-01-28 08:34:14 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2020-01-29 19:06:16 +0100 |
commit | 884e06ad372d6147145d83327d6aa56d01e851f9 (patch) | |
tree | 8259ed855038b36eb0fb8896dffa6c9c07f8c88c /gtk/gtkicontheme.h | |
parent | 53c542765f9c57519e7d74d69bb564ca82e24d60 (diff) | |
download | gtk+-884e06ad372d6147145d83327d6aa56d01e851f9.tar.gz |
icon theme: Add gtk_icon_info_download_texture() function
This returns a reference to the texture (if possible) and can be
used to get access to the pixels of the icon.
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r-- | gtk/gtkicontheme.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index 484d329439..dee4b114ca 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -213,6 +213,11 @@ GDK_AVAILABLE_IN_ALL const gchar * gtk_icon_info_get_filename (GtkIconInfo *self); GDK_AVAILABLE_IN_ALL gboolean gtk_icon_info_is_symbolic (GtkIconInfo *self); +GDK_AVAILABLE_IN_ALL +GdkTexture * gtk_icon_info_download_texture (GtkIconInfo *self, + GError **error); + +GDK_AVAILABLE_IN_ALL void gtk_icon_info_snapshot_with_colors (GtkIconInfo *icon_info, GdkSnapshot *snapshot, double width, |