implement full Tray-API

This commit is contained in:
Gregor Biswanger
2017-10-18 05:30:36 +02:00
parent 7be3cbe524
commit 8caec22de9
8 changed files with 483 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
namespace ElectronNET.API
{
public class DisplayBalloonOptions
{
public string Icon { get; set; }
public string Title { get; set; }
public string Content { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
namespace ElectronNET.API.Entities
{
public enum HighlightMode
{
/// <summary>
/// Highlight the tray icon when it is clicked and also when its context menu is open. This is the default.
/// </summary>
selection,
/// <summary>
/// Always highlight the tray icon.
/// </summary>
always,
/// <summary>
/// Never highlight the tray icon.
/// </summary>
never
}
}

View File

@@ -0,0 +1,10 @@
namespace ElectronNET.API
{
public class TrayClickEventArgs
{
public bool AltKey { get; set; }
public bool ShiftKey { get; set; }
public bool CtrlKey { get; set; }
public bool MetaKey { get; set; }
}
}