当前位置: 首页>>代码示例>>C#>>正文


C# UI.MouseEventArgs类代码示例

本文整理汇总了C#中MatterHackers.Agg.UI.MouseEventArgs的典型用法代码示例。如果您正苦于以下问题:C# MouseEventArgs类的具体用法?C# MouseEventArgs怎么用?C# MouseEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MouseEventArgs类属于MatterHackers.Agg.UI命名空间,在下文中一共展示了MouseEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnCancelMenuButton

 private void OnCancelMenuButton(object sender, MouseEventArgs mouseEvent)
 {
     if (CancelMenu != null)
     {
         CancelMenu(this);
     }
 }
开发者ID:jeske,项目名称:agg-sharp,代码行数:7,代码来源:CreditsScreen.cs

示例2: ClickButton

		public void ClickButton(MouseEventArgs mouseEvent)
		{
			if (PrivateClick != null)
			{
				UiThread.RunOnIdle(() => PrivateClick(this, mouseEvent));
			}
		}
开发者ID:broettge,项目名称:MatterControl,代码行数:7,代码来源:ClickWidget.cs

示例3: EscapeMenu

 private void EscapeMenu(object sender, MouseEventArgs mouseEvent)
 {
     if (Menu != null)
     {
         Menu(this);
     }
 }
开发者ID:jeske,项目名称:agg-sharp,代码行数:7,代码来源:PlayFieldView.cs

示例4: ClickButton

 public void ClickButton(MouseEventArgs mouseEvent)
 {
     if (PrivateClick != null)
     {
         PrivateClick(this, mouseEvent);
     }
 }
开发者ID:klewisjohnson,项目名称:MatterControl,代码行数:7,代码来源:ClickWidget.cs

示例5: installButton_Click

 void installButton_Click(object sender, MouseEventArgs mouseEvent)
 {
     bool canContinue = this.OnSave();
     if (canContinue)
     {
         UiThread.RunOnIdle(MoveToNextWidget);
     }
 }
开发者ID:klewisjohnson,项目名称:MatterControl,代码行数:8,代码来源:SetupStepInstallDriver.cs

示例6: OnMouseMove

		public override void OnMouseMove(MouseEventArgs mouseEvent)
		{
			if (downOnBar)
			{
				textScrollWidget.Position0To1 = mouseEvent.Y / Height;
			}
			base.OnMouseMove(mouseEvent);
		}
开发者ID:fuding,项目名称:MatterControl,代码行数:8,代码来源:TextScrolBar.cs

示例7: okButton_Click

 void okButton_Click(object sender, MouseEventArgs mouseEvent)
 {
     if (ClickedOk != null)
     {
         ClickedOk(this, null);
     }
     Close();
 }
开发者ID:jeske,项目名称:agg-sharp,代码行数:8,代码来源:MessageBox.cs

示例8: OnMouseDown

		override public void OnMouseDown(MouseEventArgs mouseEvent)
		{
			MouseDownOnThumb = true;
			Vector2 mousePosition = new Vector2(mouseEvent.X, mouseEvent.Y);
			MouseDownPosition = mousePosition;

			base.OnMouseDown(mouseEvent);
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:8,代码来源:ScrollBar.cs

示例9: OnMouseDown

		public override void OnMouseDown(MouseEventArgs mouseEvent)
		{
			if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
			{
				overlay.Visible = true;
			}
			base.OnMouseDown(mouseEvent);
		}
开发者ID:broettge,项目名称:MatterControl,代码行数:8,代码来源:FatFlatClickWidget.cs

示例10: OnMouseUp

        override public void OnMouseUp(MouseEventArgs mouseEvent)
        {
            if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
            {
                ClickButton(mouseEvent);
            }

            base.OnMouseUp(mouseEvent);
        }
开发者ID:rubenkar,项目名称:MatterControl,代码行数:9,代码来源:ClickWidget.cs

示例11: OnMouseDown

		public override void OnMouseDown(MouseEventArgs mouseEvent)
		{
			if (leftToRight.FirstWidgetUnderMouse)
			{
				OnSelected(mouseEvent);
			}

			base.OnMouseDown(mouseEvent);
		}
开发者ID:broettge,项目名称:MatterControl,代码行数:9,代码来源:PopOutTextTab.cs

示例12: OnMouseDown

		public override void OnMouseDown(MouseEventArgs mouseEvent)
		{
			if (!popOutButton.FirstWidgetUnderMouse)
			{
				OnSelected(mouseEvent);
			}

			base.OnMouseDown(mouseEvent);
		}
开发者ID:tellingmachine,项目名称:MatterControl,代码行数:9,代码来源:PopOutTextTab.cs

示例13: MouseEventArgs

		//public MouseEventArgs(MouseButtons button, int clicks, int x, int y, int wheelDelta)
		//: this

		public MouseEventArgs(MouseEventArgs original, double newX, double newY)
			: this(original.Button, original.Clicks, newX, newY, original.WheelDelta)
		{
			positions[0] = new Vector2(newX, newY);
			for (int i = 1; i < original.NumPositions; i++)
			{
				positions.Add(original.GetPosition(i));
			}
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:12,代码来源:MouseEventArgs.cs

示例14: OnMouseUp

 public override void OnMouseUp(MouseEventArgs mouseEvent)
 {
     if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
     {
         if (Selected != null)
         {
             Selected(this, mouseEvent);
         }
     }
     base.OnMouseUp(mouseEvent);
 }
开发者ID:jeske,项目名称:agg-sharp,代码行数:11,代码来源:MenuItem.cs

示例15: OnMouseDown

		public override void OnMouseDown(MouseEventArgs mouseEvent)
		{
			if (IsOpen)
			{
				mouseDownWhileOpen = true;
			}
			else
			{
				mouseDownWhileOpen = false;
			}
			base.OnMouseDown(mouseEvent);
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:12,代码来源:Menu.cs


注:本文中的MatterHackers.Agg.UI.MouseEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。