From 6f0f7d1b40a8fa8d46a2d6f4317600001cdbbb18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:57:27 +0200 Subject: Adding upstream version 43.5. Signed-off-by: Daniel Baumann --- lib/gs-icon.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/gs-icon.h (limited to 'lib/gs-icon.h') 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 + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include +#include +#include +#include + +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 -- cgit v1.2.3