Ejemplo n.º 1
0
        public void Reposition(DockToolbar bar, int xcursor, int ycursor, int difx, int dify)
        {
            if (!bar.CanDockTo(this))
            {
                return;
            }

            bar.Orientation = orientation;

            int x, y;

            WindowToPanel(xcursor + difx, ycursor + dify, bar.Allocation.Width, bar.Allocation.Height, out x, out y);
            WindowToPanel(xcursor, ycursor, 0, 0, out xcursor, out ycursor);

            RepositionInternal(bar, x, y, xcursor, ycursor);
        }
Ejemplo n.º 2
0
        public void Reposition(DockToolbar bar, int xcursor, int ycursor, int difx, int dify)
        {
            if (!bar.CanDockTo (this))
                return;

            bar.Orientation = orientation;

            int x, y;
            WindowToPanel (xcursor + difx, ycursor + dify, bar.Allocation.Width, bar.Allocation.Height, out x, out y);
            WindowToPanel (xcursor, ycursor, 0, 0, out xcursor, out ycursor);

            RepositionInternal (bar, x, y, xcursor, ycursor);
        }