Пример #1
0
    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); }
    }
Пример #2
0
 protected void onDAButtonRelease(object o, ButtonReleaseEventArgs args)
 {
     if (circuit == null)
         return;
     linkingCells = false;
     circuit.stopLinking();
 }
Пример #3
0
 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);
                 }
             }
         }
     }
 }
Пример #4
0
 public static void ButtonReleaseHandler(object o, ButtonReleaseEventArgs args)
 {
     upx = args.Event.X;
     upy = args.Event.Y;
     completecrop(configpath + finalString);
     args.RetVal = true;
 }
Пример #5
0
 protected void OnMouseReleased(object o, ButtonReleaseEventArgs args)
 {
     if (!this._allowRightClick && (int)args.Event.Button == 3)
     {
         return;
     }
     if (this.IsMouseIn && this.IsInWhenPressed)
     {
         this.CurrentState = ButtonState.Hover;
         if (args.Event.State.HasFlag((Enum)ModifierType.Button1Mask))
         {
             if (this.LeftClicked != null)
             {
                 this.LeftClicked((object)this, new LabelClickedEventArgs(this.LabelContent));
             }
         }
         else if (args.Event.State.HasFlag((Enum)ModifierType.Button3Mask) && this.RightClicked != null)
         {
             this.RightClicked((object)this, new LabelClickedEventArgs(this.LabelContent));
         }
     }
     else
     {
         this.CurrentState = ButtonState.Normal;
     }
     this.IsInWhenPressed = false;
 }
		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);
					}
				}
			}
		}
Пример #7
0
 private void button_Release(object o, ButtonReleaseEventArgs args)
 {
     if (this.ButtonReleaseEvent == null)
     {
         return;
     }
     this.ButtonReleaseEvent((object)this, args);
 }
Пример #8
0
 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);
     }
 }
Пример #9
0
 protected void on_tvAlbums_button_release_event(object o, Gtk.ButtonReleaseEventArgs args)
 {
     if (this.IsConnected())
     {
         if (args.Event.Button == 1)
         {
             oAlbumBrowser.GetAlbumSongs();
         }
         else if (args.Event.Button == 3)
         {
             oAlbumBrowser.ShowContextMenu();
         }
     }
 }
Пример #10
0
 void HeaderButtonRelease(object ob, Gtk.ButtonReleaseEventArgs args)
 {
     if (args.Event.Button == 1)
     {
         frame.DockInPlaceholder(item);
         frame.HidePlaceholder();
         if (header.GdkWindow != null)
         {
             header.GdkWindow.Cursor = handCursor;
         }
         frame.Toplevel.KeyPressEvent   -= HeaderKeyPress;
         frame.Toplevel.KeyReleaseEvent -= HeaderKeyRelease;
     }
 }
Пример #11
0
 protected void on_tvShares_button_release_event(object o, Gtk.ButtonReleaseEventArgs args)
 {
     if (this.IsConnected())
     {
         if (args.Event.Button == 1)
         {
             oShareBrowser.ExpandSelectedDirectory();
         }
         else if (args.Event.Button == 3)
         {
             oShareBrowser.ShowContextMenu();
         }
     }
 }
Пример #12
0
 protected void on_tvArtists_button_release_event(object o, Gtk.ButtonReleaseEventArgs args)
 {
     if (this.IsConnected())
     {
         if (args.Event.Button == 1)
         {
             oArtistBrowser.ExpandeSelectedItem();
         }
         else if (args.Event.Button == 3)
         {
             oArtistBrowser.ShowContextMenu();
         }
     }
 }
Пример #13
0
        protected override void OnMouseUp(Gtk.DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;

            if (surface_modified)
            {
                doc.History.PushNewItem(new SimpleHistoryItem(Icon, Name, undo_surface, doc.CurrentLayerIndex));
            }
            else if (undo_surface != null)
            {
                (undo_surface as IDisposable).Dispose();
            }

            surface_modified = false;
        }
Пример #14
0
        protected override void OnMouseUp(Gtk.DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            // If we were dragging the text around, finish that up
            if (tracking)
            {
                Cairo.PointD delta = new Cairo.PointD(point.X - startMouseXY.X, point.Y - startMouseXY.Y);

                clickPoint = new Point((int)(startClickPoint.X + delta.X), (int)(startClickPoint.Y + delta.Y));
                CurrentTextEngine.Origin = clickPoint;

                RedrawText(false, true);
                tracking = false;
                SetCursor(null);
            }
        }
Пример #15
0
        //when we have let go of our mouse button
        void DragEnd(object sender, Gtk.ButtonReleaseEventArgs args)
        {
            mouseEnd         = new Gdk.Point((int)Math.Floor(args.Event.X), (int)Math.Floor(args.Event.Y));
            topRightCoords   = new Gdk.Point(mouseEnd.X, mouseStart.Y);
            bottomLeftCoords = new Gdk.Point(mouseStart.X, mouseEnd.Y);

            Console.WriteLine("-------------------------------------");
            Console.WriteLine("Mouse Released");
            Console.WriteLine("Mouse End Point: ({0}, {1})", mouseEnd.X, mouseEnd.Y);
            Console.WriteLine("Top Right Point: ({0}, {1})", topRightCoords.X, topRightCoords.Y);
            Console.WriteLine("Bottom Left Point: ({0}, {1})", bottomLeftCoords.X, bottomLeftCoords.Y);
            Console.WriteLine("-------------------------------------");

            //all about dat crop
            DisplayCroppedImage();
        }
Пример #16
0
        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);
            }
        }
        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);
        }
Пример #18
0
 protected void OnButtonRelease(object o, ButtonReleaseEventArgs args)
 {
     if (this.isMouseIn)
     {
         if (this.isInWhenPressed)
         {
             this.SetButtonStyle(CcsColorButton.BtnState.Normal);
             this.ColorClick();
         }
         else
         {
             this.SetButtonStyle(CcsColorButton.BtnState.Hover);
         }
     }
     else
     {
         this.SetButtonStyle(CcsColorButton.BtnState.Normal);
     }
     this.isInWhenPressed = false;
 }
Пример #19
0
        void HandleTimescaleButtonRelease(object o, Gtk.ButtonReleaseEventArgs args)
        {
            if (args.Event.Button == 1)
            {
                args.Event.SetButton(2);
            }
            else
            {
                args.Event.SetButton(1);
            }

            if (seeking)
            {
                seeking            = false;
                Player.IgnoreTicks = false;
                if (IsPlayingPrevState)
                {
                    Player.Play();
                }
            }
        }
Пример #20
0
        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;
        }
Пример #21
0
        //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));
        }
Пример #22
0
	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);
		}
			
	}
Пример #23
0
 protected override void BindedWidget_ButtonReleaseEvent(object sender, ButtonReleaseEventArgs evnt)
 {
     ProcessEvent (evnt.Event);
     Click ();
 }
Пример #24
0
 private void HandleButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
 {
     Sheet.Controller.HandleEvent(args.Event);
 }
Пример #25
0
 void OnButtonRelease(object obj, ButtonReleaseEventArgs args)
 {
 }
Пример #26
0
 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;
 }
Пример #27
0
        private void OnButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
        {
            if(args.Event.Button != 1) {
                return;
            }

            entry.HasFocus = true;

            if(o == filter_button) {
                ShowMenu(args.Event.Time);
            }
        }
Пример #28
0
 protected virtual void OnWidgetClick(object o, Gtk.ButtonReleaseEventArgs args)
 {
     System.Diagnostics.Debug.WriteLine("Widget clicked");
     glwidget1.GrabFocus();
     glwidget1.HasFocus = true;
 }
Пример #29
0
 protected virtual void OnMouseUp(DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
 {
 }
Пример #30
0
        protected override void OnMouseUp(Gtk.DrawingArea canvas, Gtk.ButtonReleaseEventArgs args, Cairo.PointD point)
        {
            Document doc = PintaCore.Workspace.ActiveDocument;

            doc.ToolLayer.Hidden = true;

            if (surface_modified)
            {
                PintaCore.History.PushNewItem(new SimpleHistoryItem(Icon, Name, undo_surface, doc.CurrentUserLayerIndex));
            }
            else if (undo_surface != null)
            {
                (undo_surface as IDisposable).Dispose();
            }

            surface_modified = false;
            ImageSurface surf = doc.CurrentUserLayer.Surface;

            using (Context g = new Context(surf)) {
                g.AppendPath(doc.Selection.SelectionPath);
                g.FillRule = FillRule.EvenOdd;
                g.Clip();

                g.Antialias = UseAntialiasing ? Antialias.Subpixel : Antialias.None;

                g.SetDash(DashPatternBox.GenerateDashArray(dashPattern, BrushWidth), 0.0);

                if (path != null)
                {
                    g.AppendPath(path);
                    (path as IDisposable).Dispose();
                    path = null;
                }

                g.ClosePath();
                g.LineWidth = BrushWidth;
                g.FillRule  = FillRule.EvenOdd;

                if (FillShape && StrokeShape)
                {
                    g.SetSourceColor(fill_color);
                    g.FillPreserve();
                    g.SetSourceColor(outline_color);
                    g.Stroke();
                }
                else if (FillShape)
                {
                    g.SetSourceColor(outline_color);
                    g.FillPreserve();
                    g.SetSourceColor(outline_color);
                    g.Stroke();
                }
                else
                {
                    g.SetSourceColor(outline_color);
                    g.Stroke();
                }
            }

            doc.Workspace.Invalidate();
        }
Пример #31
0
        void HeaderButtonRelease(object ob, Gtk.ButtonReleaseEventArgs args)
        {
            //Console.WriteLine("HeaderButtonRelease");
            if (args.Event.Button == 1)
            {
                Frame.HidePlaceholder();

                if (header.Window != null)
                {
                    header.Window.Cursor = handCursor;
                }

                if (Frame.TargetContainer != null)
                {
                    //check if we are in notebook mode
//					if ((CurrentContainer != null) && (CurrentContainer.FrameNotebook.Visible == true))
//					{
//						//notebok mode
//						if ((frame.TargetContainer == CurrentContainer) && (frame.TargetAlign != ItemAlignment.Center))
//						{
//							//switch to paned mode
//							CurrentContainer.hideNotebook(frame.TargetAlign);
//						} else
//						{
//							CurrentContainer.removePage(this);
//						}
//
//
//
//					}  else
//					{
//						//panedbox mode
//
//						PanedBox.removeItem(this);
//
//
//					}

                    //check if we have to remove something
                    if ((CurrentContainer != null) && (Frame.TargetContainer != CurrentContainer))
                    {
                        if (CurrentContainer.FrameNotebook.Visible == true)
                        {
                            CurrentContainer.removePage(this);                                  //remove Page
                        }
                        else
                        {
                            PanedBox.removeItem(this);                             //remove Item
                        }
                    }

                    //Console.WriteLine("alg:" + frame.TargetAlign);
                    //add the new item
                    if (Frame.TargetContainer.FrameNotebook.Visible == true)
                    {
                        this.Reparent(null);
                        this.Parent = null;
                        //Console.WriteLine("add1 " + this.Name + " to "  + Frame.TargetContainer.Name);
                        frame.TargetContainer.addPage(this, Frame.TargetAlign);
                        this.Visible = true;
                    }
                    else
                    {
                        this.Reparent(null);
                        //Console.WriteLine("add2 " + this.Name + " to "  + Frame.TargetContainer.Name);
                        Frame.TargetContainer.addItem(this, Frame.TargetAlign);
                        this.Visible = true;
                    }
                }
            }
        }
Пример #32
0
 void HandleButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
 {
     ValueIndex = -1;
 }
Пример #33
0
        private void HandleButtonReleaseEvent(object sender, ButtonReleaseEventArgs args)
        {
            if (!this.CanApplyMarker()) return;

            if (args.Event.Button == LeftMouseButton && ((args.Event.State & ModifierType.Mod1Mask) == ModifierType.Mod1Mask))
            {
                var document = IdeApp.Workbench.ActiveDocument;
                var location = document.Editor.Caret.Location;

                int offset = document.Editor.LocationToOffset(location);
                int start = document.Editor.FindCurrentWordStart(offset);
                int end = document.Editor.FindCurrentWordEnd(offset);

                if (end - start <= 0) return;

                var element = this.GetCurrentElement(document, offset);

                if (element != null)
                {
                    NavigationTools.DropMarkerAtCaret();
                    this.RemoveMarker();
                    IdeApp.ProjectOperations.JumpToDeclaration(element, true);
                }
                else
                {
                    var variable = this.GetCurrentVariable(document, offset);
                    if (variable != null)
                    {
                        NavigationTools.DropMarkerAtCaret();
                        this.RemoveMarker();
                        IdeApp.ProjectOperations.JumpToDeclaration(variable);
                    }
                }
            }
        }
 void DrawButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
 {
     switch (args.Event.Button) {
         case 1:
         _button = (_button | MouseButton.Left) ^ MouseButton.Left;
         break;
         case 2:
         _button = (_button | MouseButton.Middle) ^ MouseButton.Middle;
         break;
         case 3:
         _button = (_button | MouseButton.Right) ^ MouseButton.Right;
         break;
         default:
         break;
     }
 }
Пример #35
0
 public void CustomImageView_Release(object o, ButtonReleaseEventArgs args)
 {
     this.IsShowCustomStyle = new bool?(false);
 }
Пример #36
0
	void ButtonReleaseEventHandler (object o, ButtonReleaseEventArgs a)
	{
		if (a.Event.Button == 1)
			is_dragging = false;

		old_selected = Selected;
	}
Пример #37
0
    protected void OnDaButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
    {
        if (args.Event.Button != 1)
        {
            return;
        }

        dragging         = false;
        GdkWindow.Cursor = new Gdk.Cursor(Gdk.CursorType.Arrow);
        mousePosition    = new Point((int)args.Event.X, (int)args.Event.Y);

        if (rOutColumnTop.Contains(mousePosition) && table.Player1.OutedPieces != 0)
        {
            table.MoveOutedPiece(table.Player1.MovesLeft[0]);
        }
        else if (rOutColumnBottom.Contains(mousePosition) && table.Player2.OutedPieces != 0)
        {
            table.MoveOutedPiece(table.Player2.MovesLeft[0]);
        }
        else
        {
            for (int i = 0; i < 24; i++)
            {
                if (rTable[i].Contains(mousePosition))
                {
                    Console.WriteLine(dragBeginCol + " " + i);
                    try
                    {
                        if (table.TableValues[dragBeginCol] > 0)
                        {
                            if (dragBeginCol == i)
                            {
                                table.MovePiece(dragBeginCol, table.Player1.MovesLeft[0]);
                            }
                            else
                            {
                                table.MovePiece(dragBeginCol, i - dragBeginCol);
                            }

                            Console.WriteLine(i - dragBeginCol);
                        }
                        else
                        {
                            if (dragBeginCol == i)
                            {
                                table.MovePiece(dragBeginCol, table.Player2.MovesLeft[0]);
                            }
                            else
                            {
                                table.MovePiece(dragBeginCol, dragBeginCol - i);
                            }

                            Console.WriteLine(dragBeginCol - i);
                        }
                    }
                    catch (PieceMoveException pme)
                    {
                        MessageBox.Show(pme.Message, "Invalid move", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
            }
        }

        DrawTable(da.GdkWindow);
    }
Пример #38
0
 private void base_ButtonReleaseEvent(object sender, Gtk.ButtonReleaseEventArgs args)
 {
     ResetDrag();
 }
Пример #39
0
 private void OnPlusMinusButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
 {
     if(click_id != 0) {
         GLib.Source.Remove(click_id);
         click_id = 0;
     }
 }
Пример #40
0
 // user clicked on the window
 void mouse_clicked(object o, ButtonReleaseEventArgs args)
 {
     Hide ();
 }
Пример #41
0
        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;
            }
        }
Пример #42
0
 public void DoMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, Cairo.PointD point)
 {
     if (MouseReleased != null)
         MouseReleased (point.X, point.Y, args.Event.State);
     OnMouseUp (canvas, args, point);
 }
Пример #43
0
 protected virtual void OnWidgetClick(object o, Gtk.ButtonReleaseEventArgs args)
 {
     Console.WriteLine("Widget clicked");
     glwidget1.GrabFocus();
     glwidget1.HasFocus = true;
 }
Пример #44
0
    private void on_treeview_load_button_release_event(object o, ButtonReleaseEventArgs args)
    {
        Gdk.EventButton e = args.Event;
        if (e.Button == 3) {
            Menu myMenu = new Menu ();
            Gtk.MenuItem myItem;

            myItem = new MenuItem (Catalog.GetString("Delete selected"));
            myItem.Activated += on_delete_selected_row_clicked;
            myMenu.Attach( myItem, 0, 1, 0, 1 );

            myMenu.Popup();
            myMenu.ShowAll();
        }
    }
Пример #45
0
 private void OnButtonUp(object sender, ButtonReleaseEventArgs e)
 {
     if (e.Event.Button == 3)
         Popup.Popup();
 }
		void OnButtonRelease (object obj, ButtonReleaseEventArgs args) {
			LeaveDragMode (args.Event.Time);
		}
Пример #47
0
 protected virtual void OnDrawingareaButtonReleaseEvent(object o, Gtk.ButtonReleaseEventArgs args)
 {
     drawingarea.QueueDraw();
     lastx = -1;
     lasty = -1;
 }
Пример #48
0
        private void HandleGradientButtonReleaseEvent(object o, ButtonReleaseEventArgs args)
        {
            button_down = false;

            if (skip_counter != 0)
                UpdateLevels ();
        }
Пример #49
0
 protected override void OnMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, PointD point)
 {
     base.OnMouseUp (canvas, args, point);
     active_brush.DoMouseUp ();
 }
Пример #50
0
 private void OnButtonReleaseEvent(object sender, ButtonReleaseEventArgs a)
 {
     if (a.Event.Button == 1) {
         button1Pressed = false;
     }
 }
Пример #51
0
 public void DoMouseUp(DrawingArea canvas, ButtonReleaseEventArgs args, Cairo.PointD point)
 {
     OnMouseUp (canvas, args, point);
 }
Пример #52
0
        // user right clicked on the video widget
        private void video_button_release(object o, ButtonReleaseEventArgs args)
        {
            if (args.Event.Button != 3)
                return;

            VideoContextMenu menu = new VideoContextMenu ();
            menu.ShowAll ();
            menu.Popup ();
        }
Пример #53
0
 void OnSizeButtonRelease(object ob, Gtk.ButtonReleaseEventArgs args)
 {
     resizing = false;
 }