diff options
| author | william341 <[email protected]> | 2017-05-28 12:37:00 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-28 12:37:00 -0700 |
| commit | 771c20cfb3a703e0f1550fdcf9eb07b78298c944 (patch) | |
| tree | 59cb532e15ebff313fdba2be264d78ec0033f407 /ShiftOS.WinForms/IDesktopWidget.cs | |
| parent | 496b0cbf8659c99203f48210fd39c572400ae623 (diff) | |
| parent | c7ba7d733c756d196f98dd4533289a1ef4db715f (diff) | |
| download | shiftos_thereturn-771c20cfb3a703e0f1550fdcf9eb07b78298c944.tar.gz shiftos_thereturn-771c20cfb3a703e0f1550fdcf9eb07b78298c944.tar.bz2 shiftos_thereturn-771c20cfb3a703e0f1550fdcf9eb07b78298c944.zip | |
Merge pull request #1 from shiftos-game/master
welp, no longer a dev.
Diffstat (limited to 'ShiftOS.WinForms/IDesktopWidget.cs')
| -rw-r--r-- | ShiftOS.WinForms/IDesktopWidget.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/IDesktopWidget.cs b/ShiftOS.WinForms/IDesktopWidget.cs new file mode 100644 index 0000000..95c373c --- /dev/null +++ b/ShiftOS.WinForms/IDesktopWidget.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ShiftOS.Engine; + +namespace ShiftOS.WinForms +{ + /// <summary> + /// Provides base functionality for a ShiftOS desktop widget. + /// </summary> + public interface IDesktopWidget + { + /// <summary> + /// Performs routine setup operations to keep the widget up to date. + /// </summary> + void Setup(); + + /// <summary> + /// Occurs when a skin is loaded. + /// </summary> + void OnSkinLoad(); + + /// <summary> + /// Occurs when a Shiftorium upgrade is installed. + /// </summary> + void OnUpgrade(); + + /// <summary> + /// Hides this desktop widget. + /// </summary> + void Hide(); + + /// <summary> + /// Shows this desktop widget. + /// </summary> + void Show(); + + /// <summary> + /// Gets or sets the location on the desktop that this widget resides. + /// </summary> + Point Location { get; set; } + + /// <summary> + /// Gets or sets this widget's size. + /// </summary> + Size Size { get; set; } + } +} |
