mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Add Start method.
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
- [Main()](#M-DesktopMagicPluginAPI-Plugin-Main 'DesktopMagicPluginAPI.Plugin.Main')
|
||||
- [OnMouseClick(position)](#M-DesktopMagicPluginAPI-Plugin-OnMouseClick-System-Drawing-Point- 'DesktopMagicPluginAPI.Plugin.OnMouseClick(System.Drawing.Point)')
|
||||
- [OnMouseMove(position)](#M-DesktopMagicPluginAPI-Plugin-OnMouseMove-System-Drawing-Point- 'DesktopMagicPluginAPI.Plugin.OnMouseMove(System.Drawing.Point)')
|
||||
- [Start()](#M-DesktopMagicPluginAPI-Plugin-Start 'DesktopMagicPluginAPI.Plugin.Start')
|
||||
- [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')
|
||||
@@ -502,6 +503,17 @@ Occurs when the mouse pointer is moved over the control.
|
||||
| ---- | ---- | ----------- |
|
||||
| position | [System.Drawing.Point](http://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k:System.Drawing.Point 'System.Drawing.Point') | |
|
||||
|
||||
<a name='M-DesktopMagicPluginAPI-Plugin-Start'></a>
|
||||
### Start() `method`
|
||||
|
||||
##### Summary
|
||||
|
||||
Occurs once when the pugin gets activated.
|
||||
|
||||
##### Parameters
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
<a name='T-DesktopMagicPluginAPI-Inputs-Slider'></a>
|
||||
## Slider `type`
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</member>
|
||||
<member name="E:DesktopMagicPluginAPI.Inputs.Button.OnClick">
|
||||
<summary>
|
||||
Occurs when the button is clicked.
|
||||
Occurs when the button gets clicked.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:DesktopMagicPluginAPI.Inputs.Button.Value">
|
||||
@@ -281,6 +281,11 @@
|
||||
Gets or sets the interval, expressed in milliseconds, at which to call the <see cref="M:DesktopMagicPluginAPI.Plugin.Main"/> method.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DesktopMagicPluginAPI.Plugin.Start">
|
||||
<summary>
|
||||
Occurs once when the pugin gets activated.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:DesktopMagicPluginAPI.Plugin.Main">
|
||||
<summary>
|
||||
Occurs when the <see cref="P:DesktopMagicPluginAPI.Plugin.UpdateInterval"/> elapses.
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace DesktopMagicPluginAPI.Inputs
|
||||
public class Button : Element
|
||||
{
|
||||
/// <summary>
|
||||
/// Occurs when the button is clicked.
|
||||
/// Occurs when the button gets clicked.
|
||||
/// </summary>
|
||||
public event Action OnClick;
|
||||
|
||||
|
||||
@@ -34,6 +34,13 @@ namespace DesktopMagicPluginAPI
|
||||
/// </summary>
|
||||
public virtual int UpdateInterval { get; set; } = 1000;
|
||||
|
||||
/// <summary>
|
||||
/// Occurs once when the pugin gets activated.
|
||||
/// </summary>
|
||||
public virtual void Start()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the <see cref="UpdateInterval"/> elapses.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user