/* * Copyright (c) 2024 ETH Zürich, IT Services * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using SafeExamBrowser.Monitoring.Contracts.Display.Events; using SafeExamBrowser.Settings.Monitoring; namespace SafeExamBrowser.Monitoring.Contracts.Display { /// /// Monitors the displays of the computer for changes and provides access to display-related functionality. /// public interface IDisplayMonitor { /// /// Event fired when the primary display or its settings have changed. /// event DisplayChangedEventHandler DisplayChanged; /// /// Sets the desktop working area to accommodate to the taskbar's height and removes the configured wallpaper (if possible). /// void InitializePrimaryDisplay(int taskbarHeight); /// /// Resets the desktop working area and wallpaper to their previous (initial) state. /// void ResetPrimaryDisplay(); /// /// Starts monitoring for display changes, i.e. display changes will trigger the DisplaySettingsChanged event. /// void StartMonitoringDisplayChanges(); /// /// Stops monitoring for display changes. /// void StopMonitoringDisplayChanges(); /// /// Validates the currently active display configuration according to the given settings. /// ValidationResult ValidateConfiguration(DisplaySettings settings); } }