Files
DesktopMagic/src/DesktopMagicPluginAPI/IPluginData.cs
T
2021-12-23 11:12:51 +01:00

53 lines
1.4 KiB
C#

using System;
using System.Drawing;
namespace DesktopMagicPluginAPI
{
/// <summary>
/// Defines properties and methods that provide information about the main application.
/// </summary>
public interface IPluginData
{
/// <summary>
/// Gets the current font of the current theme.
/// </summary>
[Obsolete("Use the \"Theme\" property instead")]
string Font { get; }
/// <summary>
/// Gets the current color of the current theme.
/// </summary>
[Obsolete("Use the \"Theme\" property instead")]
Color Color { get; }
/// <summary>
/// Gets the current theme setting of the main application.
/// </summary>
ITheme Theme { get; }
/// <summary>
/// Gets the window size of the plugin window.
/// </summary>
Size WindowSize { get; }
/// <summary>
/// Gets the window position of the plugin window.
/// </summary>
Point WindowPosition { get; }
/// <summary>
/// Gets the name of the plugin.
/// </summary>
string PluginName { get; }
/// <summary>
/// Gets the path of the parent directory of the plugin.
/// </summary>
string PluginPath { get; }
/// <summary>
/// Updates the plugin window.
/// </summary>
void UpdateWindow();
}
}