seb-win-refactoring/SafeExamBrowser.Contracts/UserInterface/Taskbar/ITaskbar.cs

55 lines
1.6 KiB
C#
Raw Normal View History

2017-07-05 11:41:19 +02:00
/*
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
2017-07-05 11:41:19 +02:00
*
* 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.Contracts.UserInterface.Taskbar.Events;
namespace SafeExamBrowser.Contracts.UserInterface.Taskbar
2017-07-05 11:41:19 +02:00
{
/// <summary>
/// Defines the functionality of the application taskbar. The taskbar is the main user interface element via which the user can access
/// the browser, third-party applications, system controls and so on.
/// </summary>
public interface ITaskbar
2017-07-05 11:41:19 +02:00
{
/// <summary>
/// Event fired when the user clicked the quit button in the taskbar.
/// </summary>
event QuitButtonClickedEventHandler QuitButtonClicked;
/// <summary>
/// Adds the given application button to the taskbar.
/// </summary>
void AddApplication(IApplicationButton button);
/// <summary>
/// Adds the given notification button to the taskbar.
/// </summary>
void AddNotification(INotificationButton button);
/// <summary>
/// Adds the given system control to the taskbar.
/// </summary>
void AddSystemControl(ISystemControl control);
/// <summary>
/// Closes the taskbar.
/// </summary>
void Close();
/// <summary>
/// Returns the absolute height of the taskbar (i.e. in physical pixels).
/// </summary>
int GetAbsoluteHeight();
/// <summary>
/// Moves the taskbar to the bottom of and resizes it according to the current working area.
/// </summary>
void InitializeBounds();
2017-07-05 11:41:19 +02:00
}
}