Exemplo n.º 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;
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="e"></param>
 internal ItemKeyEventArgs(KeyEventArgs e, CursorController cursorController)
     : base(e.KeyData)
 {
     this.cursorController = cursorController;
 }