Stetic.SelectionHandlePart.OnMotionNotifyEvent C# (CSharp) Method

OnMotionNotifyEvent() protected method

protected OnMotionNotifyEvent ( Gdk evm ) : bool
evm Gdk
return bool
        protected override bool OnMotionNotifyEvent(Gdk.EventMotion evm)
        {
            if ((evm.State & Gdk.ModifierType.Button1Mask) == 0)
                return false;

            if (!Gtk.Drag.CheckThreshold (this, clickX, clickY, (int)evm.XRoot, (int)evm.YRoot))
                return false;

            if (ParentBox.ObjectSelection != null && ParentBox.ObjectSelection.AllowDrag) {
                int dx = Allocation.X - ox + localClickX;
                int dy = Allocation.Y - oy + localClickY;
                ParentBox.ObjectSelection.FireDrag (evm, dx, dy);
            }

            return true;
        }