コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
ファイル: WinFormHelpers.cs プロジェクト: weimingtom/nshape
        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);
        }
コード例 #4
0
ファイル: DiagramSetController.cs プロジェクト: stewmc/vixen
		/// <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;
		}
コード例 #5
0
ファイル: DiagramSetController.cs プロジェクト: stewmc/vixen
		/// <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;
		}
コード例 #6
0
 public void SetModifiers(KeysDg modifiers)
 {
     this.modifiers = modifiers;
 }
コード例 #7
0
ファイル: WinFormHelpers.cs プロジェクト: weimingtom/nshape
 public void SetModifiers(KeysDg modifiers)
 {
     this.modifiers = modifiers;
 }
コード例 #8
0
 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)
 {
 }
コード例 #9
0
ファイル: LayerPresenter.cs プロジェクト: LudovicT/NShape
        /// <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;
        }
コード例 #10
0
ファイル: LayerPresenter.cs プロジェクト: LudovicT/NShape
        /// <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;
        }
コード例 #11
0
ファイル: LayerListView.cs プロジェクト: jestonitiro/nshape
			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) {
			}
コード例 #12
0
 /// <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;
 }
コード例 #13
0
 /// <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);
 }
コード例 #14
0
 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)
 {
 }
コード例 #15
0
ファイル: Tool.cs プロジェクト: jestonitiro/nshape
			/// <ToBeCompleted></ToBeCompleted>
			public bool IsKeyPressed(KeysDg modifier) {
				return (Modifiers & modifier) != 0;
			}