diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:59:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:59:36 +0000 |
commit | ec52555862913a23417735f9f7f5402f5230da13 (patch) | |
tree | 5e43a30d289a3daa69dddfbb060216ff6332f197 /src/nautilus-icon-info.h | |
parent | Initial commit. (diff) | |
download | nautilus-upstream/3.38.2.tar.xz nautilus-upstream/3.38.2.zip |
Adding upstream version 3.38.2.upstream/3.38.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/nautilus-icon-info.h')
-rw-r--r-- | src/nautilus-icon-info.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/nautilus-icon-info.h b/src/nautilus-icon-info.h new file mode 100644 index 0000000..506acec --- /dev/null +++ b/src/nautilus-icon-info.h @@ -0,0 +1,44 @@ +#pragma once + +#include <glib-object.h> +#include <gdk-pixbuf/gdk-pixbuf.h> +#include <gdk/gdk.h> +#include <gio/gio.h> +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define NAUTILUS_LIST_ZOOM_LEVEL_N_ENTRIES (NAUTILUS_LIST_ZOOM_LEVEL_LARGER + 1) +#define NAUTILUS_CANVAS_ZOOM_LEVEL_N_ENTRIES (NAUTILUS_CANVAS_ZOOM_LEVEL_LARGEST + 1) + +/* Maximum size of an icon that the icon factory will ever produce */ +#define NAUTILUS_ICON_MAXIMUM_SIZE 320 + +#define NAUTILUS_TYPE_ICON_INFO (nautilus_icon_info_get_type ()) +G_DECLARE_FINAL_TYPE (NautilusIconInfo, nautilus_icon_info, NAUTILUS, ICON_INFO, GObject) + +NautilusIconInfo * nautilus_icon_info_new_for_pixbuf (GdkPixbuf *pixbuf, + int scale); +NautilusIconInfo * nautilus_icon_info_lookup (GIcon *icon, + int size, + int scale); +NautilusIconInfo * nautilus_icon_info_lookup_from_name (const char *name, + int size, + int scale); +NautilusIconInfo * nautilus_icon_info_lookup_from_path (const char *path, + int size, + int scale); +gboolean nautilus_icon_info_is_fallback (NautilusIconInfo *icon); +GdkPixbuf * nautilus_icon_info_get_pixbuf (NautilusIconInfo *icon); +GdkPixbuf * nautilus_icon_info_get_pixbuf_nodefault (NautilusIconInfo *icon); +GdkPixbuf * nautilus_icon_info_get_pixbuf_nodefault_at_size (NautilusIconInfo *icon, + gsize forced_size); +GdkPixbuf * nautilus_icon_info_get_pixbuf_at_size (NautilusIconInfo *icon, + gsize forced_size); +const char * nautilus_icon_info_get_used_name (NautilusIconInfo *icon); + +void nautilus_icon_info_clear_caches (void); + +gint nautilus_get_icon_size_for_stock_size (GtkIconSize size); + +G_END_DECLS |