mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae2bee3125 | ||
|
|
3d48777224 | ||
|
|
0a3b4060de | ||
|
|
b2dfec2ed3 | ||
|
|
d1c598505e | ||
|
|
441a8b00cc | ||
|
|
7a8503ea9f | ||
|
|
de80a58b54 | ||
|
|
f62ea316a1 | ||
|
|
668c393a1b | ||
|
|
24dac76057 | ||
|
|
5e3642e539 | ||
|
|
2f6662caea | ||
|
|
aeb31af2f9 | ||
|
|
8f650ac35a | ||
|
|
b69bba68bb | ||
|
|
d75aef7460 | ||
|
|
9dd40c7ae8 | ||
|
|
520f145eb0 | ||
|
|
77a1383e7b | ||
|
|
4e5502977d |
Binary file not shown.
Binary file not shown.
@@ -2,14 +2,14 @@
|
|||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "DesktopMagic"
|
#define MyAppName "DesktopMagic"
|
||||||
#define MyAppVersion "0.0.3.1"
|
#define MyAppVersion "0.0.3.2"
|
||||||
#define MyAppPublisher "Stone_Red"
|
#define MyAppPublisher "Stone_Red"
|
||||||
#define MyAppExeName "DesktopMagic.exe"
|
#define MyAppExeName "DesktopMagic.exe"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
||||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||||
AppId={{61FE5CE9-47C3-4255-A1F4-5BCF4ACA0876}
|
AppId={{61FE5CE9-47C3-4255-A1F4-5BCF4ACA0879}
|
||||||
AppName={#MyAppName}
|
AppName={#MyAppName}
|
||||||
AppVersion={#MyAppVersion}
|
AppVersion={#MyAppVersion}
|
||||||
;AppVerName={#MyAppName} {#MyAppVersion}
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
@@ -36,7 +36,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
|
|||||||
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
|
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "..\DesktopMagic\bin\Release\net5.0-windows\publish\DesktopMagic.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "..\DesktopMagic\bin\Release\net6.0-windows\publish\*"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using AlwaysUpToDate;
|
global using Stone_Red_Utilities.Logging;
|
||||||
|
|
||||||
using Stone_Red_Utilities.Logging;
|
using AlwaysUpToDate;
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
|
||||||
namespace DesktopMagic
|
namespace DesktopMagic;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Interaction logic for App.xaml
|
/// Interaction logic for App.xaml
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -30,19 +30,21 @@ namespace DesktopMagic
|
|||||||
public App()
|
public App()
|
||||||
{
|
{
|
||||||
logFilePath = ApplicationDataPath + "\\Log.log";
|
logFilePath = ApplicationDataPath + "\\Log.log";
|
||||||
Setup();
|
|
||||||
// Try to grab mutex
|
// Try to grab mutex
|
||||||
_mutex = new Mutex(true, $"Stone_Red{AppName}", out bool createdNew);
|
_mutex = new Mutex(true, $"Stone_Red{AppName}", out bool createdNew);
|
||||||
|
|
||||||
//check if creating new was successful
|
//check if creating new was successful
|
||||||
if (!createdNew)
|
if (!createdNew)
|
||||||
{
|
{
|
||||||
|
Setup(false);
|
||||||
Logger.Log("Shutting down because other instance already running.", "Setup");
|
Logger.Log("Shutting down because other instance already running.", "Setup");
|
||||||
//Shutdown Application
|
//Shutdown Application
|
||||||
Current.Shutdown();
|
Current.Shutdown();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Setup(true);
|
||||||
Exit += CloseMutexHandler;
|
Exit += CloseMutexHandler;
|
||||||
|
|
||||||
updater.ProgressChanged += Updater_ProgressChanged;
|
updater.ProgressChanged += Updater_ProgressChanged;
|
||||||
@@ -60,7 +62,7 @@ namespace DesktopMagic
|
|||||||
|
|
||||||
private void Updater_NoUpdateAvailible()
|
private void Updater_NoUpdateAvailible()
|
||||||
{
|
{
|
||||||
Logger.Log("No update available.", "Updater");
|
Logger.Log("No update available", "Updater");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Updater_OnException(Exception exception)
|
private void Updater_OnException(Exception exception)
|
||||||
@@ -70,7 +72,7 @@ namespace DesktopMagic
|
|||||||
|
|
||||||
private void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
|
private void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
|
||||||
{
|
{
|
||||||
Logger.Log($"{progressPercentage}% {totalBytesDownloaded}/{totalFileSize}", "Updater");
|
Logger.Log($"Downloading: {progressPercentage}% {totalBytesDownloaded}/{totalFileSize}", "Updater");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void CloseMutexHandler(object sender, EventArgs e)
|
protected void CloseMutexHandler(object sender, EventArgs e)
|
||||||
@@ -78,7 +80,7 @@ namespace DesktopMagic
|
|||||||
_mutex?.Close();
|
_mutex?.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Setup()
|
private void Setup(bool clearLogFile)
|
||||||
{
|
{
|
||||||
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
|
||||||
|
|
||||||
@@ -129,12 +131,16 @@ namespace DesktopMagic
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Logger.Log(ex.Message, "Setup", LogSeverity.Error);
|
|
||||||
_ = MessageBox.Show(ex.ToString());
|
_ = MessageBox.Show(ex.ToString());
|
||||||
|
Logger.Log(ex.Message, "Setup", LogSeverity.Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (clearLogFile)
|
||||||
|
{
|
||||||
Logger.ClearLogFile(LogSeverity.Info);
|
Logger.ClearLogFile(LogSeverity.Info);
|
||||||
Logger.Log("Log setup complete.", "Setup");
|
}
|
||||||
|
|
||||||
|
Logger.Log("Log setup complete", "Setup");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||||
@@ -143,4 +149,3 @@ namespace DesktopMagic
|
|||||||
Logger.Log(exception + (e.IsTerminating ? "\t Process terminating!" : ""), exception.Source, LogSeverity.Fatal);
|
Logger.Log(exception + (e.IsTerminating ? "\t Process terminating!" : ""), exception.Source, LogSeverity.Fatal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net5.0-windows</TargetFramework>
|
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<RootNamespace>DesktopMagic</RootNamespace>
|
<RootNamespace>DesktopMagic</RootNamespace>
|
||||||
<ApplicationIcon>icon.ico</ApplicationIcon>
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
||||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
||||||
<Authors>Stone_Red</Authors>
|
<Authors>Stone_Red</Authors>
|
||||||
<Version>0.0.3.1</Version>
|
<Version>0.0.3.2</Version>
|
||||||
<PackageProjectUrl>https://github.com/Stone-Red-Code/DesktopMagic</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Stone-Red-Code/DesktopMagic</PackageProjectUrl>
|
||||||
<RepositoryUrl>https://github.com/Stone-Red-Code/DesktopMagic</RepositoryUrl>
|
<RepositoryUrl>https://github.com/Stone-Red-Code/DesktopMagic</RepositoryUrl>
|
||||||
<AssemblyVersion>0.0.3.1</AssemblyVersion>
|
<AssemblyVersion>0.0.3.2</AssemblyVersion>
|
||||||
<FileVersion>0.0.3.1</FileVersion>
|
<FileVersion>0.0.3.2</FileVersion>
|
||||||
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ using DesktopMagic.Plugins;
|
|||||||
|
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
|
|
||||||
using Stone_Red_Utilities.Logging;
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
@@ -836,18 +834,22 @@ namespace DesktopMagic
|
|||||||
private void GithubButton_Click(object sender, RoutedEventArgs e)
|
private void GithubButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
string uri = "https://github.com/Stone-Red-Code/DesktopMagic";
|
string uri = "https://github.com/Stone-Red-Code/DesktopMagic";
|
||||||
ProcessStartInfo psi = new ProcessStartInfo();
|
ProcessStartInfo psi = new ProcessStartInfo
|
||||||
psi.UseShellExecute = true;
|
{
|
||||||
psi.FileName = uri;
|
UseShellExecute = true,
|
||||||
|
FileName = uri
|
||||||
|
};
|
||||||
_ = Process.Start(psi);
|
_ = Process.Start(psi);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DownloadPluginsButton_Click(object sender, RoutedEventArgs e)
|
private void DownloadPluginsButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
string uri = "https://github.com/Stone-Red-Code/DesktopMagic-Plugins";
|
string uri = "https://github.com/Stone-Red-Code/DesktopMagic-Plugins";
|
||||||
ProcessStartInfo psi = new ProcessStartInfo();
|
ProcessStartInfo psi = new ProcessStartInfo
|
||||||
psi.UseShellExecute = true;
|
{
|
||||||
psi.FileName = uri;
|
UseShellExecute = true,
|
||||||
|
FileName = uri
|
||||||
|
};
|
||||||
_ = Process.Start(psi);
|
_ = Process.Start(psi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace DesktopMagic.Plugins
|
namespace DesktopMagic.Plugins;
|
||||||
{
|
|
||||||
internal class PluginData : IPluginData
|
internal class PluginData : IPluginData
|
||||||
{
|
{
|
||||||
private readonly PluginWindow window;
|
private readonly PluginWindow window;
|
||||||
@@ -32,4 +32,3 @@ namespace DesktopMagic.Plugins
|
|||||||
window.UpdatePluginWindow();
|
window.UpdatePluginWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -20,8 +20,8 @@ using System.Windows.Interop;
|
|||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
|
|
||||||
namespace DesktopMagic
|
namespace DesktopMagic;
|
||||||
{
|
|
||||||
public partial class PluginWindow : Window
|
public partial class PluginWindow : Window
|
||||||
{
|
{
|
||||||
private readonly RegistryKey key;
|
private readonly RegistryKey key;
|
||||||
@@ -56,8 +56,10 @@ namespace DesktopMagic
|
|||||||
Owner = w;
|
Owner = w;
|
||||||
w.Hide();
|
w.Hide();
|
||||||
|
|
||||||
System.Timers.Timer t = new System.Timers.Timer();
|
System.Timers.Timer t = new System.Timers.Timer
|
||||||
t.Interval = 100;
|
{
|
||||||
|
Interval = 100
|
||||||
|
};
|
||||||
t.Elapsed += UpdateTimer_Elapsed;
|
t.Elapsed += UpdateTimer_Elapsed;
|
||||||
t.Start();
|
t.Start();
|
||||||
|
|
||||||
@@ -154,7 +156,7 @@ namespace DesktopMagic
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
App.Logger.Log(ex.ToString(), "Plugin");
|
App.Logger.Log(ex.ToString(), "Plugin", LogSeverity.Error);
|
||||||
_ = MessageBox.Show("File execution error:\n" + ex, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
_ = MessageBox.Show("File execution error:\n" + ex, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
Exit();
|
Exit();
|
||||||
return;
|
return;
|
||||||
@@ -194,8 +196,10 @@ namespace DesktopMagic
|
|||||||
|
|
||||||
LoadOptions(instance);
|
LoadOptions(instance);
|
||||||
|
|
||||||
valueTimer = new System.Timers.Timer();
|
valueTimer = new System.Timers.Timer
|
||||||
valueTimer.Interval = 1000;
|
{
|
||||||
|
Interval = 1000
|
||||||
|
};
|
||||||
valueTimer.Elapsed += ValueTimer_Elapsed;
|
valueTimer.Elapsed += ValueTimer_Elapsed;
|
||||||
|
|
||||||
pluginClassInstance.Start();
|
pluginClassInstance.Start();
|
||||||
@@ -244,7 +248,7 @@ namespace DesktopMagic
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
IsRunning = false;
|
IsRunning = false;
|
||||||
App.Logger.Log(ex.ToString(), "Plugin");
|
App.Logger.Log(ex.ToString(), "Plugin", LogSeverity.Error);
|
||||||
_ = MessageBox.Show("File execution error:\n" + ex, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
_ = MessageBox.Show("File execution error:\n" + ex, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
Exit();
|
Exit();
|
||||||
return;
|
return;
|
||||||
@@ -290,7 +294,7 @@ namespace DesktopMagic
|
|||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
IsRunning = false;
|
IsRunning = false;
|
||||||
App.Logger.Log(ex.ToString(), "Plugin");
|
App.Logger.Log(ex.ToString(), "Plugin", LogSeverity.Error);
|
||||||
_ = MessageBox.Show("File execution error:\n" + ex, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
_ = MessageBox.Show("File execution error:\n" + ex, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
Exit();
|
Exit();
|
||||||
return;
|
return;
|
||||||
@@ -404,4 +408,3 @@ namespace DesktopMagic
|
|||||||
|
|
||||||
#endregion Window Events
|
#endregion Window Events
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using DesktopMagicPluginAPI.Inputs;
|
using DesktopMagicPluginAPI.Inputs;
|
||||||
|
|
||||||
namespace DesktopMagic.Plugins
|
namespace DesktopMagic.Plugins;
|
||||||
{
|
|
||||||
internal class SettingElement
|
internal class SettingElement
|
||||||
{
|
{
|
||||||
public Element Element { get; }
|
public Element Element { get; }
|
||||||
@@ -15,4 +15,3 @@ namespace DesktopMagic.Plugins
|
|||||||
OrderIndex = orderIndex;
|
OrderIndex = orderIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace DesktopMagic.Plugins
|
namespace DesktopMagic.Plugins;
|
||||||
{
|
|
||||||
internal class Theme : ITheme
|
internal class Theme : ITheme
|
||||||
{
|
{
|
||||||
public Color PrimaryColor { get; set; } = Color.White;
|
public Color PrimaryColor { get; set; } = Color.White;
|
||||||
@@ -18,4 +18,3 @@ namespace DesktopMagic.Plugins
|
|||||||
public System.Windows.Media.Brush SecondaryBrush { get; set; } = System.Windows.Media.Brushes.White;
|
public System.Windows.Media.Brush SecondaryBrush { get; set; } = System.Windows.Media.Brushes.White;
|
||||||
public System.Windows.Media.Brush BackgroundBrush { get; set; } = System.Windows.Media.Brushes.Transparent;
|
public System.Windows.Media.Brush BackgroundBrush { get; set; } = System.Windows.Media.Brushes.Transparent;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
###############
|
||||||
|
# folder #
|
||||||
|
###############
|
||||||
|
/**/DROP/
|
||||||
|
/**/TEMP/
|
||||||
|
/**/packages/
|
||||||
|
/**/bin/
|
||||||
|
/**/obj/
|
||||||
|
_site
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<Company>Stone_Red</Company>
|
<Company>Stone_Red</Company>
|
||||||
<Product>Stone_Red</Product>
|
<Product>Stone_Red</Product>
|
||||||
<Version>0.0.0.5</Version>
|
<Version>0.0.0.5</Version>
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
|
<PackageReference Include="docfx.console" Version="2.58.9">
|
||||||
<PackageReference Include="Vsxmd" Version="1.4.5">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,888 +0,0 @@
|
|||||||
<a name='assembly'></a>
|
|
||||||
# DesktopMagicPluginAPI
|
|
||||||
|
|
||||||
## Contents
|
|
||||||
|
|
||||||
- [Button](#T-DesktopMagicPluginAPI-Inputs-Button 'DesktopMagicPluginAPI.Inputs.Button')
|
|
||||||
- [#ctor(value)](#M-DesktopMagicPluginAPI-Inputs-Button-#ctor-System-String- 'DesktopMagicPluginAPI.Inputs.Button.#ctor(System.String)')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-Button-Value 'DesktopMagicPluginAPI.Inputs.Button.Value')
|
|
||||||
- [Click()](#M-DesktopMagicPluginAPI-Inputs-Button-Click 'DesktopMagicPluginAPI.Inputs.Button.Click')
|
|
||||||
- [CheckBox](#T-DesktopMagicPluginAPI-Inputs-CheckBox 'DesktopMagicPluginAPI.Inputs.CheckBox')
|
|
||||||
- [#ctor(value)](#M-DesktopMagicPluginAPI-Inputs-CheckBox-#ctor-System-Boolean- 'DesktopMagicPluginAPI.Inputs.CheckBox.#ctor(System.Boolean)')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-CheckBox-Value 'DesktopMagicPluginAPI.Inputs.CheckBox.Value')
|
|
||||||
- [ComboBox](#T-DesktopMagicPluginAPI-Inputs-ComboBox 'DesktopMagicPluginAPI.Inputs.ComboBox')
|
|
||||||
- [#ctor(items)](#M-DesktopMagicPluginAPI-Inputs-ComboBox-#ctor-System-String[]- 'DesktopMagicPluginAPI.Inputs.ComboBox.#ctor(System.String[])')
|
|
||||||
- [Items](#P-DesktopMagicPluginAPI-Inputs-ComboBox-Items 'DesktopMagicPluginAPI.Inputs.ComboBox.Items')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-ComboBox-Value 'DesktopMagicPluginAPI.Inputs.ComboBox.Value')
|
|
||||||
- [Element](#T-DesktopMagicPluginAPI-Inputs-Element 'DesktopMagicPluginAPI.Inputs.Element')
|
|
||||||
- [ValueChanged()](#M-DesktopMagicPluginAPI-Inputs-Element-ValueChanged 'DesktopMagicPluginAPI.Inputs.Element.ValueChanged')
|
|
||||||
- [ElementAttribute](#T-DesktopMagicPluginAPI-Inputs-ElementAttribute 'DesktopMagicPluginAPI.Inputs.ElementAttribute')
|
|
||||||
- [#ctor(name,orderIndex)](#M-DesktopMagicPluginAPI-Inputs-ElementAttribute-#ctor-System-String,System-Int32- 'DesktopMagicPluginAPI.Inputs.ElementAttribute.#ctor(System.String,System.Int32)')
|
|
||||||
- [#ctor(orderIndex)](#M-DesktopMagicPluginAPI-Inputs-ElementAttribute-#ctor-System-Int32- 'DesktopMagicPluginAPI.Inputs.ElementAttribute.#ctor(System.Int32)')
|
|
||||||
- [#ctor()](#M-DesktopMagicPluginAPI-Inputs-ElementAttribute-#ctor 'DesktopMagicPluginAPI.Inputs.ElementAttribute.#ctor')
|
|
||||||
- [Name](#P-DesktopMagicPluginAPI-Inputs-ElementAttribute-Name 'DesktopMagicPluginAPI.Inputs.ElementAttribute.Name')
|
|
||||||
- [OrderIndex](#P-DesktopMagicPluginAPI-Inputs-ElementAttribute-OrderIndex 'DesktopMagicPluginAPI.Inputs.ElementAttribute.OrderIndex')
|
|
||||||
- [GraphicsExtentions](#T-DesktopMagicPluginAPI-Drawing-GraphicsExtentions 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions')
|
|
||||||
- [DrawStringFixedWidth(graphics,s,font,brush,x,y,width)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringFixedWidth-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Single,System-Single,System-Single- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single,System.Single)')
|
|
||||||
- [DrawStringFixedWidth(graphics,s,font,brush,point,width)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringFixedWidth-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Drawing-PointF,System-Single- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringFixedWidth(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF,System.Single)')
|
|
||||||
- [DrawStringMonospace(graphics,s,font,brush,x,y)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringMonospace-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Single,System-Single- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)')
|
|
||||||
- [DrawStringMonospace(graphics,s,font,brush,point)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringMonospace-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Drawing-PointF- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringMonospace(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)')
|
|
||||||
- [DrawStringNoLeftPadding(graphics,s,font,brush,x,y)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringNoLeftPadding-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Single,System-Single- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Single,System.Single)')
|
|
||||||
- [DrawStringNoLeftPadding(graphics,s,font,brush,point)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringNoLeftPadding-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Drawing-PointF- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.DrawStringNoLeftPadding(System.Drawing.Graphics,System.String,System.Drawing.Font,System.Drawing.Brush,System.Drawing.PointF)')
|
|
||||||
- [MeasureStringNoLeftPadding(graphics,text,font)](#M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-MeasureStringNoLeftPadding-System-Drawing-Graphics,System-String,System-Drawing-Font- 'DesktopMagicPluginAPI.Drawing.GraphicsExtentions.MeasureStringNoLeftPadding(System.Drawing.Graphics,System.String,System.Drawing.Font)')
|
|
||||||
- [IPluginData](#T-DesktopMagicPluginAPI-IPluginData 'DesktopMagicPluginAPI.IPluginData')
|
|
||||||
- [Color](#P-DesktopMagicPluginAPI-IPluginData-Color 'DesktopMagicPluginAPI.IPluginData.Color')
|
|
||||||
- [Font](#P-DesktopMagicPluginAPI-IPluginData-Font 'DesktopMagicPluginAPI.IPluginData.Font')
|
|
||||||
- [PluginName](#P-DesktopMagicPluginAPI-IPluginData-PluginName 'DesktopMagicPluginAPI.IPluginData.PluginName')
|
|
||||||
- [PluginPath](#P-DesktopMagicPluginAPI-IPluginData-PluginPath 'DesktopMagicPluginAPI.IPluginData.PluginPath')
|
|
||||||
- [Theme](#P-DesktopMagicPluginAPI-IPluginData-Theme 'DesktopMagicPluginAPI.IPluginData.Theme')
|
|
||||||
- [WindowPosition](#P-DesktopMagicPluginAPI-IPluginData-WindowPosition 'DesktopMagicPluginAPI.IPluginData.WindowPosition')
|
|
||||||
- [WindowSize](#P-DesktopMagicPluginAPI-IPluginData-WindowSize 'DesktopMagicPluginAPI.IPluginData.WindowSize')
|
|
||||||
- [UpdateWindow()](#M-DesktopMagicPluginAPI-IPluginData-UpdateWindow 'DesktopMagicPluginAPI.IPluginData.UpdateWindow')
|
|
||||||
- [ITheme](#T-DesktopMagicPluginAPI-ITheme 'DesktopMagicPluginAPI.ITheme')
|
|
||||||
- [BackgroundColor](#P-DesktopMagicPluginAPI-ITheme-BackgroundColor 'DesktopMagicPluginAPI.ITheme.BackgroundColor')
|
|
||||||
- [CornerRadius](#P-DesktopMagicPluginAPI-ITheme-CornerRadius 'DesktopMagicPluginAPI.ITheme.CornerRadius')
|
|
||||||
- [Font](#P-DesktopMagicPluginAPI-ITheme-Font 'DesktopMagicPluginAPI.ITheme.Font')
|
|
||||||
- [Margin](#P-DesktopMagicPluginAPI-ITheme-Margin 'DesktopMagicPluginAPI.ITheme.Margin')
|
|
||||||
- [PrimaryColor](#P-DesktopMagicPluginAPI-ITheme-PrimaryColor 'DesktopMagicPluginAPI.ITheme.PrimaryColor')
|
|
||||||
- [SecondaryColor](#P-DesktopMagicPluginAPI-ITheme-SecondaryColor 'DesktopMagicPluginAPI.ITheme.SecondaryColor')
|
|
||||||
- [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown')
|
|
||||||
- [#ctor(min,max,value)](#M-DesktopMagicPluginAPI-Inputs-IntegerUpDown-#ctor-System-Int32,System-Int32,System-Int32- 'DesktopMagicPluginAPI.Inputs.IntegerUpDown.#ctor(System.Int32,System.Int32,System.Int32)')
|
|
||||||
- [Maximum](#P-DesktopMagicPluginAPI-Inputs-IntegerUpDown-Maximum 'DesktopMagicPluginAPI.Inputs.IntegerUpDown.Maximum')
|
|
||||||
- [Minimum](#P-DesktopMagicPluginAPI-Inputs-IntegerUpDown-Minimum 'DesktopMagicPluginAPI.Inputs.IntegerUpDown.Minimum')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-IntegerUpDown-Value 'DesktopMagicPluginAPI.Inputs.IntegerUpDown.Value')
|
|
||||||
- [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label')
|
|
||||||
- [#ctor(value,bold)](#M-DesktopMagicPluginAPI-Inputs-Label-#ctor-System-String,System-Boolean- 'DesktopMagicPluginAPI.Inputs.Label.#ctor(System.String,System.Boolean)')
|
|
||||||
- [Bold](#P-DesktopMagicPluginAPI-Inputs-Label-Bold 'DesktopMagicPluginAPI.Inputs.Label.Bold')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-Label-Value 'DesktopMagicPluginAPI.Inputs.Label.Value')
|
|
||||||
- [MouseButton](#T-DesktopMagicPluginAPI-Inputs-MouseButton 'DesktopMagicPluginAPI.Inputs.MouseButton')
|
|
||||||
- [Left](#F-DesktopMagicPluginAPI-Inputs-MouseButton-Left 'DesktopMagicPluginAPI.Inputs.MouseButton.Left')
|
|
||||||
- [Middle](#F-DesktopMagicPluginAPI-Inputs-MouseButton-Middle 'DesktopMagicPluginAPI.Inputs.MouseButton.Middle')
|
|
||||||
- [Right](#F-DesktopMagicPluginAPI-Inputs-MouseButton-Right 'DesktopMagicPluginAPI.Inputs.MouseButton.Right')
|
|
||||||
- [Plugin](#T-DesktopMagicPluginAPI-Plugin 'DesktopMagicPluginAPI.Plugin')
|
|
||||||
- [Application](#P-DesktopMagicPluginAPI-Plugin-Application 'DesktopMagicPluginAPI.Plugin.Application')
|
|
||||||
- [RenderQuality](#P-DesktopMagicPluginAPI-Plugin-RenderQuality 'DesktopMagicPluginAPI.Plugin.RenderQuality')
|
|
||||||
- [UpdateInterval](#P-DesktopMagicPluginAPI-Plugin-UpdateInterval 'DesktopMagicPluginAPI.Plugin.UpdateInterval')
|
|
||||||
- [Main()](#M-DesktopMagicPluginAPI-Plugin-Main 'DesktopMagicPluginAPI.Plugin.Main')
|
|
||||||
- [OnMouseClick(position,mouseButton)](#M-DesktopMagicPluginAPI-Plugin-OnMouseClick-System-Drawing-Point,DesktopMagicPluginAPI-Inputs-MouseButton- 'DesktopMagicPluginAPI.Plugin.OnMouseClick(System.Drawing.Point,DesktopMagicPluginAPI.Inputs.MouseButton)')
|
|
||||||
- [OnMouseMove(position)](#M-DesktopMagicPluginAPI-Plugin-OnMouseMove-System-Drawing-Point- 'DesktopMagicPluginAPI.Plugin.OnMouseMove(System.Drawing.Point)')
|
|
||||||
- [OnMouseWheel(position,delta)](#M-DesktopMagicPluginAPI-Plugin-OnMouseWheel-System-Drawing-Point,System-Int32- 'DesktopMagicPluginAPI.Plugin.OnMouseWheel(System.Drawing.Point,System.Int32)')
|
|
||||||
- [Start()](#M-DesktopMagicPluginAPI-Plugin-Start 'DesktopMagicPluginAPI.Plugin.Start')
|
|
||||||
- [Stop()](#M-DesktopMagicPluginAPI-Plugin-Stop 'DesktopMagicPluginAPI.Plugin.Stop')
|
|
||||||
- [RenderQuality](#T-DesktopMagicPluginAPI-Drawing-RenderQuality 'DesktopMagicPluginAPI.Drawing.RenderQuality')
|
|
||||||
- [High](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-High 'DesktopMagicPluginAPI.Drawing.RenderQuality.High')
|
|
||||||
- [Low](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-Low 'DesktopMagicPluginAPI.Drawing.RenderQuality.Low')
|
|
||||||
- [Performance](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-Performance 'DesktopMagicPluginAPI.Drawing.RenderQuality.Performance')
|
|
||||||
- [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider')
|
|
||||||
- [#ctor(min,max,value)](#M-DesktopMagicPluginAPI-Inputs-Slider-#ctor-System-Double,System-Double,System-Double- 'DesktopMagicPluginAPI.Inputs.Slider.#ctor(System.Double,System.Double,System.Double)')
|
|
||||||
- [Maximum](#P-DesktopMagicPluginAPI-Inputs-Slider-Maximum 'DesktopMagicPluginAPI.Inputs.Slider.Maximum')
|
|
||||||
- [Minimum](#P-DesktopMagicPluginAPI-Inputs-Slider-Minimum 'DesktopMagicPluginAPI.Inputs.Slider.Minimum')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-Slider-Value 'DesktopMagicPluginAPI.Inputs.Slider.Value')
|
|
||||||
- [TextBox](#T-DesktopMagicPluginAPI-Inputs-TextBox 'DesktopMagicPluginAPI.Inputs.TextBox')
|
|
||||||
- [#ctor(value)](#M-DesktopMagicPluginAPI-Inputs-TextBox-#ctor-System-String- 'DesktopMagicPluginAPI.Inputs.TextBox.#ctor(System.String)')
|
|
||||||
- [Value](#P-DesktopMagicPluginAPI-Inputs-TextBox-Value 'DesktopMagicPluginAPI.Inputs.TextBox.Value')
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-Button'></a>
|
|
||||||
## Button `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a button control.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-Button-#ctor-System-String-'></a>
|
|
||||||
### #ctor(value) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [Button](#T-DesktopMagicPluginAPI-Inputs-Button 'DesktopMagicPluginAPI.Inputs.Button') class with the provided `value`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| value | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | The text caption displayed in the [Button](#T-DesktopMagicPluginAPI-Inputs-Button 'DesktopMagicPluginAPI.Inputs.Button') control. |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-Button-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the text caption displayed in the [Button](#T-DesktopMagicPluginAPI-Inputs-Button 'DesktopMagicPluginAPI.Inputs.Button') element.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-Button-Click'></a>
|
|
||||||
### Click() `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Triggers the [](#E-DesktopMagicPluginAPI-Inputs-Button-OnClick 'DesktopMagicPluginAPI.Inputs.Button.OnClick') event.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This method has no parameters.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-CheckBox'></a>
|
|
||||||
## CheckBox `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a check box control.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-CheckBox-#ctor-System-Boolean-'></a>
|
|
||||||
### #ctor(value) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [CheckBox](#T-DesktopMagicPluginAPI-Inputs-CheckBox 'DesktopMagicPluginAPI.Inputs.CheckBox') class with the provided `value`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| value | [System.Boolean](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Boolean 'System.Boolean') | A value indicating whether the [CheckBox](#T-DesktopMagicPluginAPI-Inputs-CheckBox 'DesktopMagicPluginAPI.Inputs.CheckBox') is in the checked state. |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-CheckBox-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or set a value indicating whether the [CheckBox](#T-DesktopMagicPluginAPI-Inputs-CheckBox 'DesktopMagicPluginAPI.Inputs.CheckBox') is in the checked state.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-ComboBox'></a>
|
|
||||||
## ComboBox `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a selection control with a drop-down list.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-ComboBox-#ctor-System-String[]-'></a>
|
|
||||||
### #ctor(items) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label') class with the provided `items`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| items | [System.String[]](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String[] 'System.String[]') | |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-ComboBox-Items'></a>
|
|
||||||
### Items `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the collection used to generate the content of the [ComboBox](#T-DesktopMagicPluginAPI-Inputs-ComboBox 'DesktopMagicPluginAPI.Inputs.ComboBox').
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-ComboBox-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the currently selected item associated with this [ComboBox](#T-DesktopMagicPluginAPI-Inputs-ComboBox 'DesktopMagicPluginAPI.Inputs.ComboBox').
|
|
||||||
|
|
||||||
##### Remarks
|
|
||||||
|
|
||||||
If you assign a value to this property, the displayed text in the user interface will not be changed.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-Element'></a>
|
|
||||||
## Element `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The element base class.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-Element-ValueChanged'></a>
|
|
||||||
### ValueChanged() `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Triggers the [](#E-DesktopMagicPluginAPI-Inputs-Element-OnValueChanged 'DesktopMagicPluginAPI.Inputs.Element.OnValueChanged') event.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This method has no parameters.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-ElementAttribute'></a>
|
|
||||||
## ElementAttribute `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Marks a Property as element.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-ElementAttribute-#ctor-System-String,System-Int32-'></a>
|
|
||||||
### #ctor(name,orderIndex) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Marks a Property as element with the provided `name` and `orderIndex`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| name | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | The name of the element. |
|
|
||||||
| orderIndex | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | The order index of the element. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-ElementAttribute-#ctor-System-Int32-'></a>
|
|
||||||
### #ctor(orderIndex) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Marks a Property as element with the provided `orderIndex`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| orderIndex | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | The order index of the element. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-ElementAttribute-#ctor'></a>
|
|
||||||
### #ctor() `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
*Inherit from parent.*
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This constructor has no parameters.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-ElementAttribute-Name'></a>
|
|
||||||
### Name `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The name of the element.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-ElementAttribute-OrderIndex'></a>
|
|
||||||
### OrderIndex `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The order index of the element.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Drawing-GraphicsExtentions'></a>
|
|
||||||
## GraphicsExtentions `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Drawing
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Extensions for the [Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') class.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringFixedWidth-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Single,System-Single,System-Single-'></a>
|
|
||||||
### DrawStringFixedWidth(graphics,s,font,brush,x,y,width) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| s | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to draw. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
| brush | [System.Drawing.Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') | [Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') that determines the color and texture of the drawn text. |
|
|
||||||
| x | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The x-coordinate of the upper-left corner of the drawn text. |
|
|
||||||
| y | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The y-coordinate of the upper-left corner of the drawn text. |
|
|
||||||
| width | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The specified width. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringFixedWidth-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Drawing-PointF,System-Single-'></a>
|
|
||||||
### DrawStringFixedWidth(graphics,s,font,brush,point,width) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| s | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to draw. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
| brush | [System.Drawing.Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') | [Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') that determines the color and texture of the drawn text. |
|
|
||||||
| point | [System.Drawing.PointF](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.PointF 'System.Drawing.PointF') | [PointF](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.PointF 'System.Drawing.PointF') structure that specifies the upper-left corner of the drawn text. |
|
|
||||||
| width | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The specified width. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringMonospace-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Single,System-Single-'></a>
|
|
||||||
### DrawStringMonospace(graphics,s,font,brush,x,y) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| s | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to draw. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
| brush | [System.Drawing.Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') | [Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') that determines the color and texture of the drawn text. |
|
|
||||||
| x | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The x-coordinate of the upper-left corner of the drawn text. |
|
|
||||||
| y | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The y-coordinate of the upper-left corner of the drawn text. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringMonospace-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Drawing-PointF-'></a>
|
|
||||||
### DrawStringMonospace(graphics,s,font,brush,point) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| s | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to draw. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
| brush | [System.Drawing.Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') | [Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') that determines the color and texture of the drawn text. |
|
|
||||||
| point | [System.Drawing.PointF](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.PointF 'System.Drawing.PointF') | [PointF](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.PointF 'System.Drawing.PointF') structure that specifies the upper-left corner of the drawn text. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringNoLeftPadding-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Single,System-Single-'></a>
|
|
||||||
### DrawStringNoLeftPadding(graphics,s,font,brush,x,y) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| s | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to draw. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
| brush | [System.Drawing.Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') | [Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') that determines the color and texture of the drawn text. |
|
|
||||||
| x | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The x-coordinate of the upper-left corner of the drawn text. |
|
|
||||||
| y | [System.Single](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Single 'System.Single') | The y-coordinate of the upper-left corner of the drawn text. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-DrawStringNoLeftPadding-System-Drawing-Graphics,System-String,System-Drawing-Font,System-Drawing-Brush,System-Drawing-PointF-'></a>
|
|
||||||
### DrawStringNoLeftPadding(graphics,s,font,brush,point) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| s | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to draw. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
| brush | [System.Drawing.Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') | [Brush](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Brush 'System.Drawing.Brush') that determines the color and texture of the drawn text. |
|
|
||||||
| point | [System.Drawing.PointF](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.PointF 'System.Drawing.PointF') | [PointF](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.PointF 'System.Drawing.PointF') structure that specifies the upper-left corner of the drawn text. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Drawing-GraphicsExtentions-MeasureStringNoLeftPadding-System-Drawing-Graphics,System-String,System-Drawing-Font-'></a>
|
|
||||||
### MeasureStringNoLeftPadding(graphics,text,font) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| graphics | [System.Drawing.Graphics](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Graphics 'System.Drawing.Graphics') | Graphics object. |
|
|
||||||
| text | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | String to measure. |
|
|
||||||
| font | [System.Drawing.Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') | [Font](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Font 'System.Drawing.Font') that defines the text format of the string. |
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-IPluginData'></a>
|
|
||||||
## IPluginData `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Defines properties and methods that provide information about the main application.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-Color'></a>
|
|
||||||
### Color `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the current color of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-Font'></a>
|
|
||||||
### Font `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the current font of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-PluginName'></a>
|
|
||||||
### PluginName `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the name of the plugin.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-PluginPath'></a>
|
|
||||||
### PluginPath `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the path of the parent directory of the plugin.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-Theme'></a>
|
|
||||||
### Theme `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the current theme setting of the main application.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-WindowPosition'></a>
|
|
||||||
### WindowPosition `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the window position of the plugin window.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-IPluginData-WindowSize'></a>
|
|
||||||
### WindowSize `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the window size of the plugin window.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-IPluginData-UpdateWindow'></a>
|
|
||||||
### UpdateWindow() `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Updates the plugin window.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This method has no parameters.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-ITheme'></a>
|
|
||||||
## ITheme `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The theme settings of the main application.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-ITheme-BackgroundColor'></a>
|
|
||||||
### BackgroundColor `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the background color of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-ITheme-CornerRadius'></a>
|
|
||||||
### CornerRadius `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the corner radius of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-ITheme-Font'></a>
|
|
||||||
### Font `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the font of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-ITheme-Margin'></a>
|
|
||||||
### Margin `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the corner radius of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-ITheme-PrimaryColor'></a>
|
|
||||||
### PrimaryColor `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the primary color of the current theme.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-ITheme-SecondaryColor'></a>
|
|
||||||
### SecondaryColor `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets the secondary color of the current theme.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-IntegerUpDown'></a>
|
|
||||||
## IntegerUpDown `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a up-down control.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-IntegerUpDown-#ctor-System-Int32,System-Int32,System-Int32-'></a>
|
|
||||||
### #ctor(min,max,value) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') class with the provided `min` value, `max` value and `value`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| min | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | The maximum value for the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') element. |
|
|
||||||
| max | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | The minimum value for the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') element. |
|
|
||||||
| value | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | The value assigned to the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') element. |
|
|
||||||
|
|
||||||
##### Exceptions
|
|
||||||
|
|
||||||
| Name | Description |
|
|
||||||
| ---- | ----------- |
|
|
||||||
| [System.ArgumentException](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.ArgumentException 'System.ArgumentException') | |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-IntegerUpDown-Maximum'></a>
|
|
||||||
### Maximum `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the maximum value for the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') element.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-IntegerUpDown-Minimum'></a>
|
|
||||||
### Minimum `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the minimum value for the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') element.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-IntegerUpDown-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the value assigned to the [IntegerUpDown](#T-DesktopMagicPluginAPI-Inputs-IntegerUpDown 'DesktopMagicPluginAPI.Inputs.IntegerUpDown') element.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-Label'></a>
|
|
||||||
## Label `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a label control.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-Label-#ctor-System-String,System-Boolean-'></a>
|
|
||||||
### #ctor(value,bold) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label') class with the provided `value`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| value | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | The text associated with this [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label') |
|
|
||||||
| bold | [System.Boolean](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Boolean 'System.Boolean') | A value indicating whether the content of the [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label') is bold or not. |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-Label-Bold'></a>
|
|
||||||
### Bold `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or set a value indicating whether the content of the [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label') is bold or not.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-Label-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the text associated with this [Label](#T-DesktopMagicPluginAPI-Inputs-Label 'DesktopMagicPluginAPI.Inputs.Label').
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-MouseButton'></a>
|
|
||||||
## MouseButton `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Mouse Buttons
|
|
||||||
|
|
||||||
<a name='F-DesktopMagicPluginAPI-Inputs-MouseButton-Left'></a>
|
|
||||||
### Left `constants`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The left mouse button.
|
|
||||||
|
|
||||||
<a name='F-DesktopMagicPluginAPI-Inputs-MouseButton-Middle'></a>
|
|
||||||
### Middle `constants`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The middle mouse button.
|
|
||||||
|
|
||||||
<a name='F-DesktopMagicPluginAPI-Inputs-MouseButton-Right'></a>
|
|
||||||
### Right `constants`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The right mouse button.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Plugin'></a>
|
|
||||||
## Plugin `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
The plugin class.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Plugin-Application'></a>
|
|
||||||
### Application `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Informations about the main application.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Plugin-RenderQuality'></a>
|
|
||||||
### RenderQuality `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the render quality of the bitmap image.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Plugin-UpdateInterval'></a>
|
|
||||||
### UpdateInterval `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the interval, expressed in milliseconds, at which to call the [Main](#M-DesktopMagicPluginAPI-Plugin-Main 'DesktopMagicPluginAPI.Plugin.Main') method.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Plugin-Main'></a>
|
|
||||||
### Main() `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Occurs when the [UpdateInterval](#P-DesktopMagicPluginAPI-Plugin-UpdateInterval 'DesktopMagicPluginAPI.Plugin.UpdateInterval') elapses.
|
|
||||||
|
|
||||||
##### Returns
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This method has no parameters.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Plugin-OnMouseClick-System-Drawing-Point,DesktopMagicPluginAPI-Inputs-MouseButton-'></a>
|
|
||||||
### OnMouseClick(position,mouseButton) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Occurs when the window is clicked by the mouse.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| position | [System.Drawing.Point](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Point 'System.Drawing.Point') | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
|
|
||||||
| mouseButton | [DesktopMagicPluginAPI.Inputs.MouseButton](#T-DesktopMagicPluginAPI-Inputs-MouseButton 'DesktopMagicPluginAPI.Inputs.MouseButton') | The button associated with the event. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Plugin-OnMouseMove-System-Drawing-Point-'></a>
|
|
||||||
### OnMouseMove(position) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Occurs when the mouse pointer is moved over the control.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| position | [System.Drawing.Point](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Point 'System.Drawing.Point') | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Plugin-OnMouseWheel-System-Drawing-Point,System-Int32-'></a>
|
|
||||||
### OnMouseWheel(position,delta) `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| position | [System.Drawing.Point](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Point 'System.Drawing.Point') | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
|
|
||||||
| delta | [System.Int32](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Int32 'System.Int32') | A value that indicates the amount that the mouse wheel has changed. |
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Plugin-Start'></a>
|
|
||||||
### Start() `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Occurs once when the plugin gets activated.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This method has no parameters.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Plugin-Stop'></a>
|
|
||||||
### Stop() `method`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Occurs once when the plugin gets deactivated.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
This method has no parameters.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Drawing-RenderQuality'></a>
|
|
||||||
## RenderQuality `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Drawing
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Specifies which render quality is used to display the bitmap images.
|
|
||||||
|
|
||||||
<a name='F-DesktopMagicPluginAPI-Drawing-RenderQuality-High'></a>
|
|
||||||
### High `constants`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Slower then [Low](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-Low 'DesktopMagicPluginAPI.Drawing.RenderQuality.Low') but produces higher quality output.
|
|
||||||
|
|
||||||
<a name='F-DesktopMagicPluginAPI-Drawing-RenderQuality-Low'></a>
|
|
||||||
### Low `constants`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Faster then [High](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-High 'DesktopMagicPluginAPI.Drawing.RenderQuality.High') but produces lower quality output.
|
|
||||||
|
|
||||||
<a name='F-DesktopMagicPluginAPI-Drawing-RenderQuality-Performance'></a>
|
|
||||||
### Performance `constants`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Provides performance benefits over [Low](#F-DesktopMagicPluginAPI-Drawing-RenderQuality-Low 'DesktopMagicPluginAPI.Drawing.RenderQuality.Low')
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-Slider'></a>
|
|
||||||
## Slider `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a slider control.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-Slider-#ctor-System-Double,System-Double,System-Double-'></a>
|
|
||||||
### #ctor(min,max,value) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') class with the provided `min` value, `max` value and `value`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| min | [System.Double](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Double 'System.Double') | The maximum value for the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') element. |
|
|
||||||
| max | [System.Double](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Double 'System.Double') | The minimum value for the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') element. |
|
|
||||||
| value | [System.Double](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Double 'System.Double') | The value assigned to the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') element. |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-Slider-Maximum'></a>
|
|
||||||
### Maximum `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the maximum value for the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') element.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-Slider-Minimum'></a>
|
|
||||||
### Minimum `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the minimum value for the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') element.
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-Slider-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the value assigned to the [Slider](#T-DesktopMagicPluginAPI-Inputs-Slider 'DesktopMagicPluginAPI.Inputs.Slider') element.
|
|
||||||
|
|
||||||
<a name='T-DesktopMagicPluginAPI-Inputs-TextBox'></a>
|
|
||||||
## TextBox `type`
|
|
||||||
|
|
||||||
##### Namespace
|
|
||||||
|
|
||||||
DesktopMagicPluginAPI.Inputs
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Represents a text box control.
|
|
||||||
|
|
||||||
<a name='M-DesktopMagicPluginAPI-Inputs-TextBox-#ctor-System-String-'></a>
|
|
||||||
### #ctor(value) `constructor`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Initializes a new instance of the [TextBox](#T-DesktopMagicPluginAPI-Inputs-TextBox 'DesktopMagicPluginAPI.Inputs.TextBox') class with the provided `value`.
|
|
||||||
|
|
||||||
##### Parameters
|
|
||||||
|
|
||||||
| Name | Type | Description |
|
|
||||||
| ---- | ---- | ----------- |
|
|
||||||
| value | [System.String](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.String 'System.String') | The text associated with this control. |
|
|
||||||
|
|
||||||
<a name='P-DesktopMagicPluginAPI-Inputs-TextBox-Value'></a>
|
|
||||||
### Value `property`
|
|
||||||
|
|
||||||
##### Summary
|
|
||||||
|
|
||||||
Gets or sets the text associated with this [TextBox](#T-DesktopMagicPluginAPI-Inputs-TextBox 'DesktopMagicPluginAPI.Inputs.TextBox').
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
###############
|
||||||
|
# temp file #
|
||||||
|
###############
|
||||||
|
*.yml
|
||||||
|
.manifest
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# PLACEHOLDER
|
||||||
|
TODO: Add .NET projects to the *src* folder and run `docfx` to generate **REAL** *API Documentation*!
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# Add your introductions here!
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
- name: Introduction
|
||||||
|
href: intro.md
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
"metadata": [
|
||||||
|
{
|
||||||
|
"src": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"**.csproj"
|
||||||
|
],
|
||||||
|
"src": "C:\\Users\\David\\Programmieren\\DesktopMagic\\src\\DesktopMagicPluginAPI"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dest": "api",
|
||||||
|
"disableGitFeatures": false,
|
||||||
|
"disableDefaultFilter": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"build": {
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"api/**.yml",
|
||||||
|
"api/index.md"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"articles/**.md",
|
||||||
|
"articles/**/toc.yml",
|
||||||
|
"toc.yml",
|
||||||
|
"*.md"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"resource": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"images/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"overwrite": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"apidoc/**.md"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"obj/**",
|
||||||
|
"_site/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dest": "_site",
|
||||||
|
"globalMetadataFiles": [],
|
||||||
|
"fileMetadataFiles": [],
|
||||||
|
"template": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"postProcessors": [],
|
||||||
|
"markdownEngineName": "markdig",
|
||||||
|
"noLangKeyword": false,
|
||||||
|
"keepFileLink": false,
|
||||||
|
"cleanupCacheHistory": false,
|
||||||
|
"disableGitFeatures": false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# This is the **HOMEPAGE**.
|
||||||
|
Refer to [Markdown](http://daringfireball.net/projects/markdown/) for how to write markdown files.
|
||||||
|
## Quick Start Notes:
|
||||||
|
1. Add images to the *images* folder if the file is referencing an image.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
- name: Articles
|
||||||
|
href: articles/
|
||||||
|
- name: Api Documentation
|
||||||
|
href: api/
|
||||||
|
homepage: api/index.md
|
||||||
Reference in New Issue
Block a user