NetSurf
Functions
textselection.h File Reference

HTML text selection handling. More...

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

Go to the source code of this file.

Functions

nserror html_textselection_redraw (struct content *c, unsigned start_idx, unsigned end_idx)
 
nserror html_textselection_copy (struct content *c, unsigned start_idx, unsigned end_idx, struct selection_string *selstr)
 
nserror html_textselection_get_end (struct content *c, unsigned *end_idx)
 get maximum index of text section. More...
 

Detailed Description

HTML text selection handling.

Definition in file textselection.h.

Function Documentation

◆ html_textselection_copy()

nserror html_textselection_copy ( struct content c,
unsigned  start_idx,
unsigned  end_idx,
struct selection_string selstr 
)

Definition at line 507 of file textselection.c.

References html_content::layout, NSERROR_INVALID, selection_copy(), html_content::unit_len_ctx, and WHITESPACE_NONE.

Here is the call graph for this function:

◆ html_textselection_get_end()

nserror html_textselection_get_end ( struct content c,
unsigned *  end_idx 
)

get maximum index of text section.

Parameters
[in]cThe content to measure
[out]end_idxpointer to value to recive result
Returns
NSERROR_OK and end_idx updated else error code

Definition at line 533 of file textselection.c.

References html_content::layout, NSERROR_INVALID, NSERROR_OK, and selection_label_subtree().

Here is the call graph for this function:

◆ html_textselection_redraw()

nserror html_textselection_redraw ( struct content c,
unsigned  start_idx,
unsigned  end_idx 
)

Definition at line 474 of file textselection.c.

References content__request_redraw(), coords_from_range(), rdw_info::inited, html_content::layout, NSERROR_INVALID, NSERROR_OK, rdw_info::r, rect::x0, rect::x1, rect::y0, and rect::y1.

Here is the call graph for this function: