mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 21:24:58 +00:00
implement full Tray-API
This commit is contained in:
9
ElectronNET.API/Entities/DisplayBalloonOptions.cs
Normal file
9
ElectronNET.API/Entities/DisplayBalloonOptions.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
20
ElectronNET.API/Entities/HighlightMode.cs
Normal file
20
ElectronNET.API/Entities/HighlightMode.cs
Normal 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
|
||||
}
|
||||
}
|
||||
10
ElectronNET.API/Entities/TrayClickEventArgs.cs
Normal file
10
ElectronNET.API/Entities/TrayClickEventArgs.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user