60 struct rect *crp = NULL;
66 x = x * bw->
scale + pos_x;
67 y = y * bw->
scale + pos_y;
93 assert(root_bw != NULL);
Browser window private structure.
struct browser_window * browser_window_get_root(struct browser_window *bw)
Get the root level browser window.
Browser window creation and manipulation interface.
void browser_window_get_position(struct browser_window *bw, bool root, int *pos_x, int *pos_y)
Get the position of the current browser window with respect to the root or parent browser window.
Content handling interface.
bool content_keypress(struct hlcache_handle *h, uint32_t key)
Handle keypresses.
struct netsurf_table * guit
The global interface table.
Interface to core interface table.
Core mouse and pointer states.
Interface to platform-specific graphical user interface window operations.
@ GW_EVENT_REMOVE_CARET
Remove the caret, if present.
Interface to key press operations.
Interface to utility string handling.
struct browser_window * bw
float scale
scale of window contents
struct gui_window * window
Platform specific window data only valid at top level.
struct hlcache_handle * current_content
Content handle of page currently displayed which must have READY or DONE status or NULL for no conten...
struct browser_window * focus
browser window child of root browser window which has input focus
nserror(* event)(struct gui_window *gw, enum gui_window_event event)
Miscellaneous event occurred for a window.
void(* place_caret)(struct gui_window *g, int x, int y, int height, const struct rect *clip)
Place the caret in a browser window.
struct gui_window_table * window
Window table.
void browser_window_remove_caret(struct browser_window *bw, bool only_hide)
Removes the caret and callback for key process.
void browser_window_place_caret(struct browser_window *bw, int x, int y, int height, const struct rect *clip)
Position the caret and assign a callback for key presses.
bool browser_window_key_press(struct browser_window *bw, uint32_t key)
Handle key presses in a browser window.
Textual input handling interface.
UTF-8 manipulation functions (interface).
Interface to a number of general purpose functionality.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.