diff options
Diffstat (limited to '')
-rw-r--r-- | lib/gs-icon.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/gs-icon.h b/lib/gs-icon.h new file mode 100644 index 0000000..b1b7a89 --- /dev/null +++ b/lib/gs-icon.h @@ -0,0 +1,32 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * vi:set noexpandtab tabstop=8 shiftwidth=8: + * + * Copyright (C) 2021 Endless OS Foundation, Inc + * + * Author: Philip Withnall <pwithnall@endlessos.org> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include <appstream.h> +#include <gio/gio.h> +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +guint gs_icon_get_width (GIcon *icon); +void gs_icon_set_width (GIcon *icon, + guint width); +guint gs_icon_get_height (GIcon *icon); +void gs_icon_set_height (GIcon *icon, + guint height); +guint gs_icon_get_scale (GIcon *icon); +void gs_icon_set_scale (GIcon *icon, + guint scale); + +GIcon *gs_icon_new_for_appstream_icon (AsIcon *appstream_icon); + +G_END_DECLS |