Ejemplo n.º 1
0
        internal override void ScrollWindow(IntPtr handle, Rectangle area, int XAmount, int YAmount, bool with_children)
        {
            X11Hwnd hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle);

            if (hwnd != null)
            {
                hwnd.ScrollWindow(area, XAmount, YAmount, with_children);
            }
        }
Ejemplo n.º 2
0
        internal override void ScrollWindow(IntPtr handle, int XAmount, int YAmount, bool with_children)
        {
            X11Hwnd hwnd = (X11Hwnd)Hwnd.GetObjectFromWindow(handle);

            if (hwnd != null)
            {
                Rectangle rect;

                rect   = hwnd.ClientRect;
                rect.X = 0;
                rect.Y = 0;
                hwnd.ScrollWindow(rect, XAmount, YAmount, with_children);
            }
        }