NetSurf
|
#include <stdint.h>
#include <libcss/libcss.h>
Go to the source code of this file.
Functions | |
nserror | css_hint_init (void) |
void | css_hint_fini (void) |
css_error | node_presentational_hint (void *pw, void *node, uint32_t *nhints, css_hint **hints) |
Callback to retrieve presentational hints for a node. More... | |
bool | nscss_parse_colour (const char *data, css_color *result) |
Parser for colours specified in attribute values. More... | |
void css_hint_fini | ( | void | ) |
Definition at line 599 of file hints.c.
References hint_ctx, css_hint_ctx::hints, and css_hint_ctx::len.
Referenced by nscss_fini().
nserror css_hint_init | ( | void | ) |
Definition at line 588 of file hints.c.
References hint_ctx, css_hint_ctx::hints, MAX_HINTS_PER_ELEMENT, NSERROR_NOMEM, and NSERROR_OK.
Referenced by nscss_init().
css_error node_presentational_hint | ( | void * | pw, |
void * | node, | ||
uint32_t * | nhints, | ||
css_hint ** | hints | ||
) |
Callback to retrieve presentational hints for a node.
[in] | pw | HTML document |
[in] | node | DOM node |
[out] | nhints | number of hints retrieved |
[out] | hints | retrieved hints |
Definition at line 1628 of file hints.c.
References css_hint_anchor_color(), css_hint_bg_color(), css_hint_bg_image(), css_hint_body_color(), css_hint_caption_side(), css_hint_clean(), css_hint_color(), css_hint_float(), css_hint_font_size(), css_hint_get_hints(), css_hint_height(), css_hint_height_width_canvas(), css_hint_height_width_textarea(), css_hint_list(), css_hint_margin_hspace_vspace(), css_hint_margin_left_right_align_center(), css_hint_margin_left_right_hr(), css_hint_table_cell_border_padding(), css_hint_table_spacing_border(), css_hint_text_align_center(), css_hint_text_align_normal(), css_hint_text_align_special(), css_hint_text_align_table_special(), css_hint_vertical_align_replaced(), css_hint_vertical_align_table_cells(), css_hint_white_space_nowrap(), css_hint_width(), css_hint_width_input(), fallthrough, hint_ctx, css_hint_ctx::len, NSLOG, and nsoption_bool.
bool nscss_parse_colour | ( | const char * | data, |
css_color * | result | ||
) |
Parser for colours specified in attribute values.
data | Data to parse (NUL-terminated) |
result | Pointer to location to receive resulting css_color |
Definition at line 449 of file hints.c.
References charToHex(), isHex(), parse_named_colour(), result, and SLEN.
Referenced by box_create_frameset(), box_iframe(), css_hint_anchor_color(), css_hint_bg_color(), css_hint_body_color(), css_hint_color(), css_hint_table_cell_border_padding(), and css_hint_table_spacing_border().