Class Plugin
The plugin class.
Inheritance
Inherited Members
Namespace: DesktopMagicPluginAPI
Assembly: DesktopMagicPluginAPI.dll
Syntax
public abstract class Plugin
Properties
| Improve this Doc View SourceApplication
Informations about the main application.
Declaration
public IPluginData Application { get; set; }
Property Value
| Type | Description |
|---|---|
| IPluginData |
RenderQuality
Gets or sets the render quality of the bitmap image.
Declaration
public virtual RenderQuality RenderQuality { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderQuality |
UpdateInterval
Gets or sets the interval, expressed in milliseconds, at which to call the Main() method.
Declaration
public virtual int UpdateInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceMain()
Occurs when the UpdateInterval elapses.
Declaration
public abstract Bitmap Main()
Returns
| Type | Description |
|---|---|
| System.Drawing.Bitmap |
OnMouseClick(Point, MouseButton)
Occurs when the window is clicked by the mouse.
Declaration
public virtual void OnMouseClick(Point position, MouseButton mouseButton)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | position | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
| MouseButton | mouseButton | The button associated with the event. |
OnMouseMove(Point)
Occurs when the mouse pointer is moved over the control.
Declaration
public virtual void OnMouseMove(Point position)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | position | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
OnMouseWheel(Point, Int32)
Occurs when the user rotates the mouse wheel while the mouse pointer is over this element.
Declaration
public virtual void OnMouseWheel(Point position, int delta)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Point | position | The x- and y-coordinates of the mouse pointer position relative to the plugin window. |
| System.Int32 | delta | A value that indicates the amount that the mouse wheel has changed. |
Start()
Occurs once when the plugin gets activated.
Declaration
public virtual void Start()
Stop()
Occurs once when the plugin gets deactivated.
Declaration
public virtual void Stop()