NetSurf
|
Helpers to simplify core use of corewindow. More...
Go to the source code of this file.
Functions | |
nserror | cw_helper_scroll_visible (const struct core_window_callback_table *cw_t, 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.h.
nserror cw_helper_scroll_visible | ( | const struct core_window_callback_table * | cw_t, |
struct core_window * | cw_h, | ||
const struct rect * | r | ||
) |
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 34 of file cw_helper.c.
References cw_t, core_window_callback_table::get_scroll, core_window_callback_table::get_window_dimensions, height, NSERROR_OK, core_window_callback_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().