本文整理汇总了C#中Gtk.ButtonReleaseEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ButtonReleaseEventArgs类的具体用法?C# ButtonReleaseEventArgs怎么用?C# ButtonReleaseEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ButtonReleaseEventArgs类属于Gtk命名空间,在下文中一共展示了ButtonReleaseEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnGraphEventsButtonReleaseEvent
protected void OnGraphEventsButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
{
try
{
GCurves.GCurve tmp;
AllCurves.Curves.TryGetValue(CurveSelectBox.ActiveText, out tmp);
double x = args.Event.X;
double y = args.Event.Y;
if (MovePoint.Value == true)
{
ProjectSaved = false;
if (y < 0 || GraphArea.Allocation.Height - y < GrBor || x < GrBor || x > GraphArea.Allocation.Width)
{
if (MovePoint.Key != 0 && MovePoint.Key != tmp.Points.Count - 1)
{
tmp.RemovePoint(MovePoint.Key);
}
RefreshGraph(false);
}
}
MovePoint = new KeyValuePair<int, bool>(MovePoint.Key, false);
//Fill the Valueboxes with the current value
XValBox.Text = (tmp.Points[tmp.SelectedPoint].Value.X + 1).ToString();
YValBox.Text = tmp.Points[tmp.SelectedPoint].Value.Y.ToString();
}
catch (Exception ex) { ReportError("Graph Mouse Up", ex); }
}
开发者ID:TimeScience,项目名称:desert-deflicker,代码行数:30,代码来源:DeSERtMain.cs
示例2: onDAButtonRelease
protected void onDAButtonRelease(object o, ButtonReleaseEventArgs args)
{
if (circuit == null)
return;
linkingCells = false;
circuit.stopLinking();
}
开发者ID:macbernick,项目名称:celltronix,代码行数:7,代码来源:MainWindow.cs
示例3: ProcessReleaseEvent
public void ProcessReleaseEvent(ButtonReleaseEventArgs args)
{
if (swiping) {
swiping = false;
swipeTest = new Point((int) args.Event.X, (int) args.Event.Y);
if (((swipeTest.X - swipeStart.X) < maxError) && ((swipeTest.X - swipeStart.X) > -maxError)) {
if (swipeTest.Y - swipeStart.Y > minSwipeLength) { // swipe down
if (SwipeDetected != null) {
SwipeDetected(this, SwipeDirection.Down);
}
} else if (swipeTest.Y - swipeStart.Y < -minSwipeLength) { // swipe up
if (SwipeDetected != null) {
SwipeDetected(this, SwipeDirection.Up);
}
}
} else if (((swipeTest.Y - swipeStart.Y) < maxError) && ((swipeTest.Y - swipeStart.Y) > -maxError)) {
if (swipeTest.X - swipeStart.X > minSwipeLength) { // swipe right
if (SwipeDetected != null) {
SwipeDetected(this, SwipeDirection.Right);
}
} else if (swipeTest.X - swipeStart.X < -minSwipeLength) { // swipe left
if (SwipeDetected != null) {
SwipeDetected(this, SwipeDirection.Left);
}
}
}
}
}
开发者ID:peter-gregory,项目名称:ClockRadio,代码行数:28,代码来源:GestureDetector.cs
示例4: ButtonReleaseHandler
public static void ButtonReleaseHandler(object o, ButtonReleaseEventArgs args)
{
upx = args.Event.X;
upy = args.Event.Y;
completecrop(configpath + finalString);
args.RetVal = true;
}
开发者ID:ardaozkal,项目名称:ownshot,代码行数:7,代码来源:Program.cs
示例5: HandleButtonReleaseEvent
void HandleButtonReleaseEvent (object o, ButtonReleaseEventArgs args)
{
var document = IdeApp.Workbench.ActiveDocument;
if (IdeApp.Workspace == null)
return;
if (document == null)
return;
if (document.ParsedDocument == null)
return;
if (args.Event.Button == LEFT_BUTTON)
{
if ((args.Event.State & ModifierType.ControlMask) == ModifierType.ControlMask)
{
if ((args.Event.State & ModifierType.ShiftMask) == ModifierType.ShiftMask)
{
RemoveMarker (document.Editor.Document);
JumpToImplementation ();
}
else
{
RemoveMarker (document.Editor.Document);
JumpToDefinition (document);
}
}
}
}
开发者ID:nixxa,项目名称:MonoDevelop.AddIns,代码行数:28,代码来源:JumpToDefinitionHandler.cs
示例6: OnBtnReleaseEvent
protected void OnBtnReleaseEvent(object sender, ButtonReleaseEventArgs e)
{
Gdk.EventButton evnt = e.Event;
//right click
if (evnt.Button == 3) {
menu.ShowAll();
menu.Popup (null, null, null, 3, Gtk.Global.CurrentEventTime);
}
}
开发者ID:garuma,项目名称:dbus-explorer,代码行数:9,代码来源:InformationView.cs
示例7: BindedWidget_ButtonReleaseEvent
protected override void BindedWidget_ButtonReleaseEvent(object sender, ButtonReleaseEventArgs evnt)
{
base.BindedWidget_ButtonReleaseEvent (sender, evnt);
if(Value)
{
int x, y;
ParentWindow.GetOrigin (out x, out y);
x += Allocation.X;
y += Allocation.Bottom;
ShowAt (x, y);
}
else
{
KillMenu (true);
}
}
开发者ID:MASGAU,项目名称:gtk-sharp-ribbon,代码行数:18,代码来源:DropdownRibbonGroup.cs
示例8: HandleButtonReleaseEvent
void HandleButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
{
var doc = IdeApp.Workbench.ActiveDocument;
if (args.Event.Button != 1
|| !IsCtrlPush(args.Event.State)
|| doc == null)
return;
ResolveResult resolveResult;
var item = CurrentRefactoryOperationsHandler.GetItem(doc, out resolveResult);
if (item == null)
return;
if (item is INamedElement)
IdeApp.ProjectOperations.JumpToDeclaration((INamedElement)item);
else if (item is IVariable)
IdeApp.ProjectOperations.JumpToDeclaration((IVariable)item);
}
开发者ID:nomit007,项目名称:MonoDevelop.MouseJumper,代码行数:20,代码来源:StartupHandler.cs
示例9: OnMouseUp
protected override void OnMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, Cairo.PointD point)
{
double x = point.X;
double y = point.Y;
// If the user didn't move the mouse, they want to deselect
int tolerance = 2;
if (Math.Abs (shape_origin.X - x) <= tolerance && Math.Abs (shape_origin.Y - y) <= tolerance) {
PintaCore.Actions.Edit.Deselect.Activate ();
hist.Dispose ();
hist = null;
} else {
if (hist != null)
PintaCore.History.PushNewItem (hist);
hist = null;
}
is_drawing = false;
}
开发者ID:xxgreg,项目名称:Pinta,代码行数:21,代码来源:SelectTool.cs
示例10: OnButtonReleaseEvent
private void OnButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
{
if(args.Event.Button != 1) {
return;
}
entry.HasFocus = true;
if(o == filter_button) {
ShowMenu(args.Event.Time);
}
}
开发者ID:mono-soc-2011,项目名称:banshee,代码行数:12,代码来源:SearchEntry.cs
示例11: OnButtonUp
private void OnButtonUp(object sender, ButtonReleaseEventArgs e)
{
if (e.Event.Button == 3)
Popup.Popup();
}
开发者ID:hut104,项目名称:ApsimX,代码行数:5,代码来源:ExplorerView.cs
示例12: track_clicked
//a track was selected
private void track_clicked(object o, ButtonReleaseEventArgs args)
{
LinkLabel label = (LinkLabel)o;
QueryInfo query = new QueryInfo (Key.Artist(main.Artist), Key.Title(label.Link));
main.LoadContent (query, typeof (SimilarTracks));
}
开发者ID:gsterjov,项目名称:fusemc,代码行数:8,代码来源:TopTracks.cs
示例13: tree_ButtonReleaseEvent
void tree_ButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
{
string formToOpen="";
TreeSelection selection = (o as TreeView).Selection;
TreeModel model;
if(selection.GetSelected(out model, out iter))
{
formToOpen=model.GetValue(iter,1).ToString();
//Console.WriteLine(formToOpen);
}
}
开发者ID:sumitglobussoft,项目名称:pinDominator-3.0,代码行数:14,代码来源:MainWindow.cs
示例14: BindedWidget_ButtonReleaseEvent
protected override void BindedWidget_ButtonReleaseEvent(object sender, ButtonReleaseEventArgs evnt)
{
ProcessEvent (evnt.Event);
Click ();
}
开发者ID:MASGAU,项目名称:gtk-sharp-ribbon,代码行数:5,代码来源:ApplicationButton.cs
示例15: OnButtonRelease
void OnButtonRelease(object obj, ButtonReleaseEventArgs args)
{
}
开发者ID:moscrif,项目名称:ide,代码行数:3,代码来源:FrameworkTree.cs
示例16: GetButtonReleaseEventArgs
protected override ButtonEventArgs GetButtonReleaseEventArgs(ButtonReleaseEventArgs args)
{
int x, y;
Widget.ConvertBinWindowToWidgetCoords ((int)args.Event.X, (int)args.Event.Y, out x, out y);
var xwt_args = base.GetButtonReleaseEventArgs (args);
xwt_args.X = x;
xwt_args.Y = y;
return xwt_args;
}
开发者ID:modulexcite,项目名称:xwt,代码行数:9,代码来源:TableViewBackend.cs
示例17: ButtonReleaseEventHandler
void ButtonReleaseEventHandler (object o, ButtonReleaseEventArgs a)
{
if (a.Event.Button == 1)
is_dragging = false;
old_selected = Selected;
}
开发者ID:alfredodev,项目名称:mono-tools,代码行数:7,代码来源:list.cs
示例18: OnPlusMinusButtonReleaseEvent
private void OnPlusMinusButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
{
if(click_id != 0) {
GLib.Source.Remove(click_id);
click_id = 0;
}
}
开发者ID:mono-soc-2011,项目名称:banshee,代码行数:7,代码来源:VolumeButton.cs
示例19: mouse_clicked
// user clicked on the window
void mouse_clicked(object o, ButtonReleaseEventArgs args)
{
Hide ();
}
开发者ID:gsterjov,项目名称:fusemc,代码行数:5,代码来源:TrayPopup.cs
示例20: OnButtonReleased
private void OnButtonReleased(object o, ButtonReleaseEventArgs args)
{
if(popup != null) {
Grab.Remove(popup);
Gdk.Pointer.Ungrab(0);
Gdk.Keyboard.Ungrab(0);
popup.Hide ();
popup.Destroy();
popup = null;
}
}
开发者ID:MASGAU,项目名称:gtk-sharp-ribbon,代码行数:12,代码来源:Gallery.cs
注:本文中的Gtk.ButtonReleaseEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论