Tool.cs
上传用户:sxsgcs
上传日期:2013-10-21
资源大小:110k
文件大小:1k
- using System;
- using System.Windows.Forms;
- using System.Drawing;
- namespace DrawTools
- {
- /// <summary>
- /// Base class for all drawing tools
- /// </summary>
- abstract class Tool
- {
- /// <summary>
- /// Left nous button is pressed
- /// </summary>
- /// <param name="drawArea"></param>
- /// <param name="e"></param>
- public virtual void OnMouseDown(DrawArea drawArea, MouseEventArgs e)
- {
- }
- /// <summary>
- /// Mouse is moved, left mouse button is pressed or none button is pressed
- /// </summary>
- /// <param name="drawArea"></param>
- /// <param name="e"></param>
- public virtual void OnMouseMove(DrawArea drawArea, MouseEventArgs e)
- {
- }
- /// <summary>
- /// Left mouse button is released
- /// </summary>
- /// <param name="drawArea"></param>
- /// <param name="e"></param>
- public virtual void OnMouseUp(DrawArea drawArea, MouseEventArgs e)
- {
- }
- }
- }