示例#1
0
 /// <summary>
 /// Pass key up to appropriate item
 /// </summary>
 protected override void OnKeyUp(KeyEventArgs e)
 {
     using (var cursorController = new Handlers.CursorController(this))
     {
         rootContainer.OnKeyUp(new Handlers.ItemKeyEventArgs(e, cursorController));
     }
     base.OnKeyUp(e);
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 internal ItemMouseEventArgs(MouseEventArgs source, CursorController cursorController)
 {
     Button = source.Button;
     Clicks = source.Clicks;
     Delta  = source.Delta;
     X      = source.X;
     Y      = source.Y;
     this.cursorController = cursorController;
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 public ItemMouseEventArgs(ItemMouseEventArgs source, float x, float y)
 {
     Button           = source.Button;
     Clicks           = source.Clicks;
     Delta            = source.Delta;
     X                = x;
     Y                = y;
     cursorController = source.cursorController;
 }
示例#4
0
 /// <summary>
 /// Pass mouse move to appropriate item
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseMove(MouseEventArgs e)
 {
     using (var cursorController = new Handlers.CursorController(this))
     {
         var localArgs = rootContainer.Global2Local(e);
         rootContainer.OnMouseMove(new Handlers.ItemMouseEventArgs(localArgs, cursorController));
     }
     base.OnMouseMove(e);
 }
示例#5
0
 /// <summary>
 /// Pass mouse double click to appropriate item
 /// </summary>
 /// <param name="e"></param>
 protected override void OnMouseDoubleClick(MouseEventArgs e)
 {
     panel.Focus();
     using (var cursorController = new Handlers.CursorController(this))
     {
         var localArgs = rootContainer.Global2Local(e);
         rootContainer.OnMouseDoubleClick(new Handlers.ItemMouseEventArgs(localArgs, cursorController));
     }
     base.OnMouseDoubleClick(e);
 }
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="e"></param>
 internal ItemKeyEventArgs(KeyEventArgs e, CursorController cursorController)
     : base(e.KeyData)
 {
     this.cursorController = cursorController;
 }