コード例 #1
0
 //public Point Location { get; }
 public SimpleMouseEventArgs(SimpleMouseButtons button, int clicks, int x, int y, int delta, int timespan, bool isButtonUp, bool isButtonDown)
 {
     Button       = button;
     Clicks       = clicks;
     X            = x;
     Y            = y;
     Delta        = delta;
     TimeSpan     = timespan;
     IsButtonUp   = isButtonUp;
     IsButtonDown = isButtonDown;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:DesktopSprites.SpriteManagement.SimpleMouseEventArgs"/> class.
 /// </summary>
 /// <param name="buttons">The buttons that were pressed.</param>
 /// <param name="x">The x co-ordinate of the point that was clicked, in relation to the screen.</param>
 /// <param name="y">The y co-ordinate of the point that was clicked, in relation to the screen.</param>
 public SimpleMouseEventArgs(SimpleMouseButtons buttons, int x, int y)
 {
     Buttons = buttons;
     X = x;
     Y = y;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:DesktopSprites.SpriteManagement.SimpleMouseEventArgs"/> class.
 /// </summary>
 /// <param name="buttons">The buttons that were pressed.</param>
 /// <param name="x">The x co-ordinate of the point that was clicked, in relation to the screen.</param>
 /// <param name="y">The y co-ordinate of the point that was clicked, in relation to the screen.</param>
 public SimpleMouseEventArgs(SimpleMouseButtons buttons, int x, int y)
 {
     Buttons = buttons;
     X       = x;
     Y       = y;
 }