NetSurf
|
Helpers to simplify core use of corewindow. More...
#include "utils/errors.h"
#include "netsurf/browser.h"
#include "netsurf/core_window.h"
#include "netsurf/types.h"
#include "css/utils.h"
#include "desktop/cw_helper.h"
#include "desktop/gui_internal.h"
Go to the source code of this file.
Functions | |
nserror | cw_helper_scroll_visible (struct core_window *cw_h, const struct rect *r) |
Scroll a core window to make the given rectangle visible. More... | |
Helpers to simplify core use of corewindow.
Definition in file cw_helper.c.
Scroll a core window to make the given rectangle visible.
[in] | cw_t | The core window callback table to use. |
[in] | cw_h | The core window's handle. |
[in] | r | The rectangle to make visisble by scrolling. |
Definition at line 35 of file cw_helper.c.
References netsurf_table::corewindow, core_window_table::get_dimensions, core_window_table::get_scroll, guit, height, NSERROR_OK, core_window_table::set_scroll, width, rect::x0, rect::x1, rect::y0, and rect::y1.
Referenced by local_history_scroll_to_cursor(), treeview__cw_scroll_to_node(), and treeview__cw_scroll_top().