/// <ToBeCompleted></ToBeCompleted> public LayerMouseEventArgs(Layer layer, LayerItem item, MouseEventType eventType, MouseButtonsDg buttons, int clickCount, int wheelDelta, Point position, KeysDg modifiers) : base(eventType, buttons, clickCount, wheelDelta, position, modifiers) { this.layer = layer; this.item = item; }
/// <ToBeCompleted></ToBeCompleted> protected internal void SetMouseEvent(MouseEventType eventType, MouseButtonsDg buttons, int clickCount, int wheelDelta, Point position, KeysDg modifiers) { EventType = eventType; Buttons = buttons; Clicks = clickCount; Modifiers = modifiers; Position = position; WheelDelta = wheelDelta; }
private static KeysDg GetModifiers() { // get Modifier Keys KeysDg result = KeysDg.None; if ((Control.ModifierKeys & Keys.Control) != 0) { result |= KeysDg.Control; } if ((Control.ModifierKeys & Keys.Shift) != 0) { result |= KeysDg.Shift; } if ((Control.ModifierKeys & Keys.Alt) != 0) { result |= KeysDg.Alt; } return(result); }
/// <ToBeCompleted></ToBeCompleted> public ShapeMouseEventArgs(IEnumerable<Shape> shapes, Diagram diagram, MouseEventType eventType, MouseButtonsDg buttons, int clicks, int delta, Point location, KeysDg modifiers) : base(eventType, buttons, clicks, delta, location, modifiers) { if (shapes == null) throw new ArgumentNullException("shapes"); this.shapes.AddRange(shapes); this.diagram = diagram; }
/// <summary> /// Initializing a new instance of <see cref="T:Dataweb.NShape.Controllers.MouseEventArgsDg" />. /// </summary> public MouseEventArgsDg(MouseEventType eventType, MouseButtonsDg buttons, int clicks, int delta, Point location, KeysDg modifiers) { this.buttons = buttons; this.clicks = clicks; this.wheelDelta = delta; this.eventType = eventType; this.position = location; this.modifiers = modifiers; }
public void SetModifiers(KeysDg modifiers) { this.modifiers = modifiers; }
public LayerListViewMouseEventArgs(Layer layer, LayerItem item, MouseEventType eventType, MouseButtonsDg buttons, int clickCount, int wheelDelta, Point position, KeysDg modifiers) : base(layer, item, eventType, buttons, clickCount, wheelDelta, position, modifiers) { }
/// <ToBeCompleted></ToBeCompleted> protected internal void SetMouseEvent(MouseEventType eventType, MouseButtonsDg buttons, int clickCount, int wheelDelta, Point position, KeysDg modifiers) { this.eventType = eventType; this.buttons = buttons; this.clicks = clickCount; this.modifiers = modifiers; this.position = position; this.wheelDelta = wheelDelta; }
/// <ToBeCompleted></ToBeCompleted> public LayerMouseEventArgs(Layer layer, LayerItem item, IEnumerable <Layer> selectedlayers, MouseEventType eventType, MouseButtonsDg buttons, int clickCount, int wheelDelta, Point position, KeysDg modifiers) : base(eventType, buttons, clickCount, wheelDelta, position, modifiers) { this._layer = layer; this._item = item; this._selectedLayers = new List <Layer>(selectedlayers); }
public LayerMouseEventArgs(Layer layer, LayerItem item, MouseEventType eventType, MouseButtonsDg buttons, int clickCount, int wheelDelta, Point position, KeysDg modifiers) : this(layer, item, EnumerationHelper.Enumerate(layer), eventType, buttons, clickCount, wheelDelta, position, modifiers) { }
/// <ToBeCompleted></ToBeCompleted> public bool IsKeyPressed(KeysDg modifier) { return (Modifiers & modifier) != 0; }