NetSurf
Functions
cw_helper.h File Reference

Helpers to simplify core use of corewindow. More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Helpers to simplify core use of corewindow.

Definition in file cw_helper.h.

Function Documentation

◆ cw_helper_scroll_visible()

nserror cw_helper_scroll_visible ( struct core_window *  cw_h,
const struct rect r 
)

Scroll a core window to make the given rectangle visible.

Parameters
[in]cw_tThe core window callback table to use.
[in]cw_hThe core window's handle.
[in]rThe rectangle to make visisble by scrolling.
Returns
NSERROR_OK on success or appropriate error code

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().

Here is the caller graph for this function: