NetSurf
|
Core user interface window function table. More...
#include <core_window.h>
Data Fields | |
nserror(* | invalidate )(struct core_window *cw, const struct rect *rect) |
Invalidate an area of a window. More... | |
nserror(* | set_extent )(struct core_window *cw, int width, int height) |
Update the logical extent of the window. More... | |
nserror(* | set_scroll )(struct core_window *cw, int x, int y) |
Scroll the window to given scroll offsets. More... | |
nserror(* | get_scroll )(const struct core_window *cw, int *x, int *y) |
Get the current scroll offsets. More... | |
nserror(* | get_dimensions )(const struct core_window *cw, int *width, int *height) |
Get window viewport dimensions. More... | |
nserror(* | drag_status )(struct core_window *cw, core_window_drag_status ds) |
Inform corewindow owner of drag status. More... | |
Core user interface window function table.
function table implementing core window operations
Definition at line 53 of file core_window.h.
nserror(* core_window_table::drag_status) (struct core_window *cw, core_window_drag_status ds) |
Inform corewindow owner of drag status.
[in] | cw | the core window object |
[in] | ds | the current drag status |
Definition at line 125 of file core_window.h.
Referenced by treeview__cw_drag_status(), and verify_corewindow_register().
nserror(* core_window_table::get_dimensions) (const struct core_window *cw, int *width, int *height) |
Get window viewport dimensions.
[in] | cw | the core window object |
[out] | width | to be set to viewport width in px |
[out] | height | to be set to viewport height in px |
Definition at line 115 of file core_window.h.
Referenced by cw_helper_scroll_visible(), page_info_mouse_action(), treeview__cw_get_window_dimensions(), and verify_corewindow_register().
nserror(* core_window_table::get_scroll) (const struct core_window *cw, int *x, int *y) |
Get the current scroll offsets.
[in] | cw | the core window object |
[out] | returns | horizontal scroll in px |
[out] | returns | vertical scroll in px |
Definition at line 105 of file core_window.h.
Referenced by cw_helper_scroll_visible(), and verify_corewindow_register().
Invalidate an area of a window.
The specified area of the window should now be considered out of date. If the area is NULL the entire window must be invalidated. It is expected that the windowing system will then subsequently cause redraw/expose operations as necessary.
[in] | cw | The core window to invalidate. |
[in] | rect | area to redraw or NULL for the entire window area |
Definition at line 71 of file core_window.h.
Referenced by local_history_keypress(), page_info_mouse_action(), treeview__cw_full_redraw(), treeview__cw_invalidate_area(), and verify_corewindow_register().
Update the logical extent of the window.
[in] | cw | the core window object |
[in] | width | the width in px, or negative if don't care |
[in] | height | the height in px, or negative if don't care |
Definition at line 81 of file core_window.h.
Referenced by local_history_set(), page_info__layout(), treeview__cw_update_size(), and verify_corewindow_register().
nserror(* core_window_table::set_scroll) (struct core_window *cw, int x, int y) |
Scroll the window to given scroll offsets.
Note: Core callers of this may want to look at calling the cw_helper_scroll_visible()
, rather than calling this directly.
[in] | cw | the core window object |
[in] | x | x-scroll value to set |
[in] | y | y-scroll value to set |
Definition at line 95 of file core_window.h.
Referenced by cw_helper_scroll_visible(), and verify_corewindow_register().