• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# UI.MouseEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: OnMouseUp

		override public void OnMouseUp(MouseEventArgs mouseEvent)
		{
			if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
			{
				if (GetChildClicks || this.MouseCaptured == true)
				{
					ClickButton(mouseEvent);
				}
			}

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


示例17: OnMouseDown

			override public void OnMouseDown(MouseEventArgs mouseEvent)
			{
				if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
				{
					MouseDownOnBar = true;
					DownPosition = new Vector2(mouseEvent.X, mouseEvent.Y);
					DownPosition += OriginRelativeParent;
				}
				else
				{
					MouseDownOnBar = false;
				}
				base.OnMouseDown(mouseEvent);
			}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:14,代码来源:Splitter.cs


示例18: OnMouseWheel

 public override void OnMouseWheel(MouseEventArgs mouseEvent)
 {
     double scrolledPos = mouseEvent.WheelDelta / Height + textScrollWidget.Position0To1;
     if (scrolledPos > 1)
     {
         scrolledPos = 1;
     }
     else if (scrolledPos < 0)
     {
         scrolledPos = 0;
     }
     textScrollWidget.Position0To1 = scrolledPos;
     base.OnMouseWheel(mouseEvent);
 }
开发者ID:broettge,项目名称:MatterControl,代码行数:14,代码来源:TextScrolBar.cs


示例19: OnMouseDown

		override public void OnMouseDown(MouseEventArgs mouseEvent)
		{
			if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
			{
				MouseDownOnBar = true;
				Vector2 mouseRelClient = new Vector2(mouseEvent.X, mouseEvent.Y);
				DownPosition = mouseRelClient;
			}
			else
			{
				MouseDownOnBar = false;
			}

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


示例20: OnMouseDown

		public override void OnMouseDown(MouseEventArgs mouseEvent)
		{
			base.OnMouseDown(mouseEvent);

			if (mouseEvent.Button == MouseButtons.Left)
			{
				int x = (int)mouseEvent.X - imageOffset.x;
				int y = (int)mouseEvent.Y - imageOffset.y;

				FloodFill filler = new FloodFill(RGBA_Bytes.Red);
				filler.Fill(imageToFillOn, x, y);

				Invalidate();
			}
		}
开发者ID:glocklueng,项目名称:agg-sharp,代码行数:15,代码来源:FloodFill.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UI.SaveFileDialogParams类代码示例发布时间:2022-05-26
下一篇:
C# UI.GuiWidget类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap