NetSurf
Functions
frames.h File Reference

Frame and frameset creation and manipulation (interface). More...

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

Go to the source code of this file.

Functions

nserror browser_window_create_iframes (struct browser_window *bw)
 Create and open iframes for a browser window. More...
 
void browser_window_recalculate_iframes (struct browser_window *bw)
 Recalculate iframe positions following a resize. More...
 
nserror browser_window_invalidate_iframe (struct browser_window *bw)
 Invalidate an iframe causing a redraw. More...
 
nserror browser_window_destroy_iframes (struct browser_window *bw)
 Destroy iframes opened in browser_window_create_iframes() More...
 
nserror browser_window_create_frameset (struct browser_window *bw)
 Create and open a frameset for a browser window. More...
 
void browser_window_recalculate_frameset (struct browser_window *bw)
 Recalculate frameset positions following a resize. More...
 
bool browser_window_frame_resize_start (struct browser_window *bw, browser_mouse_state mouse, int x, int y, browser_pointer_shape *pointer)
 
void browser_window_resize_frame (struct browser_window *bw, int x, int y)
 Resize a browser window that is a frame. More...
 
void browser_window_scroll_callback (void *client_data, struct scrollbar_msg_data *scrollbar_data)
 Callback for (i)frame scrollbars. More...
 
void browser_window_handle_scrollbars (struct browser_window *bw)
 Create, remove, and update browser window scrollbars. More...
 

Detailed Description

Frame and frameset creation and manipulation (interface).

Definition in file frames.h.

Function Documentation

◆ browser_window_create_frameset()

nserror browser_window_create_frameset ( struct browser_window bw)

Create and open a frameset for a browser window.

Parameters
[in,out]bwThe browser window to create the frameset for
Returns
NSERROR_OK or error code on faliure

Definition at line 693 of file frames.c.

References browser_window_create_frameset_internal(), content_get_type(), CONTENT_HTML, browser_window::current_content, html_get_frameset(), and NSERROR_OK.

Referenced by browser_window_content_ready().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_create_iframes()

nserror browser_window_create_iframes ( struct browser_window bw)

Create and open iframes for a browser window.

Parameters
bwThe browser window to create iframes for.
Returns
NSERROR_OK or error code on faliure.

Definition at line 192 of file frames.c.

References content_html_iframe::border, browser_window::border, content_html_iframe::border_colour, browser_window::border_colour, content_html_iframe::box, browser_window::box, box_bounds(), browser_window_initialise_common(), browser_window_navigate(), browser_window_recalculate_iframes(), browser_window_set_dimensions(), browser_window_set_position(), browser_window::browser_window_type, browser_window_update_extent(), BW_CREATE_NONE, BW_NAVIGATE_UNVERIFIABLE, content_get_type(), CONTENT_HTML, browser_window::current_content, hlcache_handle_get_url(), html_get_iframe(), box::iframe, browser_window::iframe_count, browser_window::iframes, content_html_iframe::margin_height, browser_window::margin_height, content_html_iframe::margin_width, browser_window::margin_width, content_html_iframe::name, browser_window::name, content_html_iframe::next, browser_window::no_resize, NSERROR_NOMEM, NSERROR_OK, browser_window::parent, browser_window::scale, content_html_iframe::scrolling, browser_window::scrolling, content_html_iframe::url, browser_window::window, rect::x0, rect::x1, rect::y0, and rect::y1.

Referenced by browser_window_content_ready().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_destroy_iframes()

nserror browser_window_destroy_iframes ( struct browser_window bw)

Destroy iframes opened in browser_window_create_iframes()

Parameters
bwThe browser window to destroy iframes for.
Returns
NSERROR_OK

Definition at line 307 of file frames.c.

References browser_window::box, browser_window_destroy_internal(), browser_window::bw, box::iframe, browser_window::iframe_count, browser_window::iframes, and NSERROR_OK.

Referenced by browser_window__handle_ssl_query_response(), browser_window__handle_userpass_response(), browser_window_destroy_internal(), and browser_window_navigate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_frame_resize_start()

bool browser_window_frame_resize_start ( struct browser_window bw,
browser_mouse_state  mouse,
int  x,
int  y,
browser_pointer_shape pointer 
)

Definition at line 1039 of file frames.c.

References browser_window_get_position(), browser_window_get_root(), browser_window_resize_frames(), browser_window::bw, root, browser_window::x, and browser_window::y.

Referenced by default_mouse_action().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_handle_scrollbars()

void browser_window_handle_scrollbars ( struct browser_window bw)

Create, remove, and update browser window scrollbars.

Parameters
bwThe browser window

Definition at line 99 of file frames.c.

References browser_window_scroll_callback(), BW_SCROLLING_AUTO, BW_SCROLLING_YES, content_get_height(), content_get_width(), browser_window::current_content, browser_window::height, NSERROR_OK, browser_window::scroll_x, browser_window::scroll_y, scrollbar_create(), scrollbar_destroy(), scrollbar_make_pair(), scrollbar_set_extents(), SCROLLBAR_WIDTH, browser_window::scrolling, browser_window::width, and browser_window::window.

Referenced by browser_window_content_done(), browser_window_recalculate_frameset_internal(), browser_window_recalculate_iframes(), and browser_window_update_extent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_invalidate_iframe()

nserror browser_window_invalidate_iframe ( struct browser_window bw)

Invalidate an iframe causing a redraw.

Parameters
bwThe browser window to invalidate

Definition at line 185 of file frames.c.

References browser_window::box, browser_window::current_content, html_redraw_a_box(), NSERROR_OK, and browser_window::parent.

Referenced by browser_window_update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_recalculate_frameset()

void browser_window_recalculate_frameset ( struct browser_window bw)

Recalculate frameset positions following a resize.

Parameters
bwThe browser window to reposition framesets for

Definition at line 718 of file frames.c.

References browser_window_recalculate_frameset_internal(), content_get_type(), CONTENT_HTML, browser_window::current_content, and html_get_frameset().

Referenced by browser_window_callback(), and browser_window_set_scale().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_recalculate_iframes()

void browser_window_recalculate_iframes ( struct browser_window bw)

Recalculate iframe positions following a resize.

Parameters
bwThe browser window to reposition iframes for

Definition at line 291 of file frames.c.

References browser_window_handle_scrollbars(), browser_window::bw, browser_window::iframe_count, browser_window::iframes, and browser_window::window.

Referenced by browser_window_callback(), and browser_window_create_iframes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_resize_frame()

void browser_window_resize_frame ( struct browser_window bw,
int  x,
int  y 
)

Resize a browser window that is a frame.

Parameters
bwThe browser window to resize
xThe new width to set.
yThe new height to set.

Definition at line 740 of file frames.c.

References browser_window_recalculate_frameset_internal(), browser_window_resolve_frame_dimension(), browser_window::bw, browser_window::drag, browser_window::parent, parent, browser_window::resize_down, browser_window::resize_left, browser_window::resize_right, browser_window::resize_up, browser_window::x, and browser_window::y.

Referenced by browser_window_mouse_track_internal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ browser_window_scroll_callback()

void browser_window_scroll_callback ( void *  client_data,
struct scrollbar_msg_data scrollbar_data 
)