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 --- src/gs-hardware-support-context-dialog.h | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/gs-hardware-support-context-dialog.h (limited to 'src/gs-hardware-support-context-dialog.h') diff --git a/src/gs-hardware-support-context-dialog.h b/src/gs-hardware-support-context-dialog.h new file mode 100644 index 0000000..8983c74 --- /dev/null +++ b/src/gs-hardware-support-context-dialog.h @@ -0,0 +1,51 @@ +/* -*- 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 LLC + * + * Author: Philip Withnall + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include +#include +#include + +#include "gs-app.h" +#include "gs-info-window.h" + +G_BEGIN_DECLS + +#define GS_TYPE_HARDWARE_SUPPORT_CONTEXT_DIALOG (gs_hardware_support_context_dialog_get_type ()) + +G_DECLARE_FINAL_TYPE (GsHardwareSupportContextDialog, gs_hardware_support_context_dialog, GS, HARDWARE_SUPPORT_CONTEXT_DIALOG, GsInfoWindow) + +GsHardwareSupportContextDialog *gs_hardware_support_context_dialog_new (GsApp *app); + +GsApp *gs_hardware_support_context_dialog_get_app (GsHardwareSupportContextDialog *self); +void gs_hardware_support_context_dialog_set_app (GsHardwareSupportContextDialog *self, + GsApp *app); + +void gs_hardware_support_context_dialog_get_control_support (GdkDisplay *display, + GPtrArray *relations, + gboolean *any_control_relations_set_out, + AsRelationKind *control_relations, + gboolean *has_touchscreen_out, + gboolean *has_keyboard_out, + gboolean *has_mouse_out); + +GdkMonitor *gs_hardware_support_context_dialog_get_largest_monitor (GdkDisplay *display); +void gs_hardware_support_context_dialog_get_display_support (GdkMonitor *monitor, + GPtrArray *relations, + gboolean *any_display_relations_set_out, + gboolean *desktop_match_out, + AsRelationKind *desktop_relation_kind_out, + gboolean *mobile_match_out, + AsRelationKind *mobile_relation_kind_out, + gboolean *other_match_out, + AsRelationKind *other_relation_kind_out); + +G_END_DECLS -- cgit v1.2.3