HeapScroller.OnMotionNotifyEvent C# (CSharp) Méthode

OnMotionNotifyEvent() protected méthode

protected OnMotionNotifyEvent ( Gdk args ) : bool
args Gdk
Résultat bool
    protected override bool OnMotionNotifyEvent(Gdk.EventMotion args)
    {
        double x = args.X + Allocation.X;
                double y = args.Y + Allocation.Y;

        GRect box = glass.Bounds ();

        if (glass.Dragging) {
            glass.UpdateDrag (x, y);

        } else {
            if (glass.IsInside (x, y))
                glass.State = StateType.Prelight;
            else
                glass.State = StateType.Normal;
        }

        return base.OnMotionNotifyEvent (args);
    }