using System.Drawing; namespace DesktopMagic.Api; /// /// Defines properties and methods that provide information about the main application. /// public interface IPluginData { /// /// Gets the current theme setting of the main application. /// ITheme Theme { get; } /// /// Gets the window size of the plugin window. /// Size WindowSize { get; } /// /// Gets the window position of the plugin window. /// Point WindowPosition { get; } /// /// Gets the name of the plugin. /// string PluginName { get; } /// /// Gets the path of the parent directory of the plugin. /// string PluginPath { get; } /// /// Updates the plugin window. /// void UpdateWindow(); /// /// Logs a message to the application log. /// /// The message to log. /// The log level (Info, Warning, Error). void Log(string message, LogLevel level = LogLevel.Info); /// /// Shows a message box to the user. /// /// The message to display. /// The title of the message box. void ShowMessage(string message, string title); }