示例#1
0
文件: gui.c 项目: mmuman/NetSurf
static void gui_window_set_scroll(struct gui_window *w, int sx, int sy)
{
    if (   (w == NULL)
	   || (w->browser->bw == NULL)
	   || (!browser_window_has_content(w->browser->bw)))
	return;

    LOG("scroll (gui_window: %p) %d, %d\n", w, sx, sy);
    window_scroll_by(w->root, sx, sy);
    return;

}
示例#2
0
void gui_window_set_scroll(struct gui_window *w, int sx, int sy)
{
    int units = 0;
    if ((w == NULL)
            || (w->browser->bw == NULL)
            || (w->browser->bw->current_content == NULL))
        return;

    LOG(("scroll (gui_window: %p) %d, %d\n", w, sx, sy));
    window_scroll_by(w->root, sx, sy);
    return;

}