36 struct core_window *cw_h,
Interface to core window handling.
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.
Helpers to simplify core use of corewindow.
nserror
Enumeration of error codes.
static struct core_window_callback_table cw_t
Declare Core Window Callbacks:
Callbacks to achieve various core window functionality.
nserror(* get_scroll)(const struct core_window *cw, int *x, int *y)
Get the current scroll offsets.
nserror(* get_window_dimensions)(const struct core_window *cw, int *width, int *height)
Get window viewport dimensions.
nserror(* set_scroll)(struct core_window *cw, int x, int y)
Scroll the window to given scroll offsets.