本文整理汇总了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);
}
}
示例2: ClickButton
public void ClickButton(MouseEventArgs mouseEvent)
{
if (PrivateClick != null)
{
UiThread.RunOnIdle(() => PrivateClick(this, mouseEvent));
}
}
示例3: EscapeMenu
private void EscapeMenu(object sender, MouseEventArgs mouseEvent)
{
if (Menu != null)
{
Menu(this);
}
}
示例4: ClickButton
public void ClickButton(MouseEventArgs mouseEvent)
{
if (PrivateClick != null)
{
PrivateClick(this, mouseEvent);
}
}
示例5: installButton_Click
void installButton_Click(object sender, MouseEventArgs mouseEvent)
{
bool canContinue = this.OnSave();
if (canContinue)
{
UiThread.RunOnIdle(MoveToNextWidget);
}
}
示例6: OnMouseMove
public override void OnMouseMove(MouseEventArgs mouseEvent)
{
if (downOnBar)
{
textScrollWidget.Position0To1 = mouseEvent.Y / Height;
}
base.OnMouseMove(mouseEvent);
}
示例7: okButton_Click
void okButton_Click(object sender, MouseEventArgs mouseEvent)
{
if (ClickedOk != null)
{
ClickedOk(this, null);
}
Close();
}
示例8: OnMouseDown
override public void OnMouseDown(MouseEventArgs mouseEvent)
{
MouseDownOnThumb = true;
Vector2 mousePosition = new Vector2(mouseEvent.X, mouseEvent.Y);
MouseDownPosition = mousePosition;
base.OnMouseDown(mouseEvent);
}
示例9: OnMouseDown
public override void OnMouseDown(MouseEventArgs mouseEvent)
{
if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
{
overlay.Visible = true;
}
base.OnMouseDown(mouseEvent);
}
示例10: OnMouseUp
override public void OnMouseUp(MouseEventArgs mouseEvent)
{
if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
{
ClickButton(mouseEvent);
}
base.OnMouseUp(mouseEvent);
}
示例11: OnMouseDown
public override void OnMouseDown(MouseEventArgs mouseEvent)
{
if (leftToRight.FirstWidgetUnderMouse)
{
OnSelected(mouseEvent);
}
base.OnMouseDown(mouseEvent);
}
示例12: OnMouseDown
public override void OnMouseDown(MouseEventArgs mouseEvent)
{
if (!popOutButton.FirstWidgetUnderMouse)
{
OnSelected(mouseEvent);
}
base.OnMouseDown(mouseEvent);
}
示例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));
}
}
示例14: OnMouseUp
public override void OnMouseUp(MouseEventArgs mouseEvent)
{
if (PositionWithinLocalBounds(mouseEvent.X, mouseEvent.Y))
{
if (Selected != null)
{
Selected(this, mouseEvent);
}
}
base.OnMouseUp(mouseEvent);
}
示例15: OnMouseDown
public override void OnMouseDown(MouseEventArgs mouseEvent)
{
if (IsOpen)
{
mouseDownWhileOpen = true;
}
else
{
mouseDownWhileOpen = false;
}
base.OnMouseDown(mouseEvent);
}