NetSurf
Functions | Variables
utils.h File Reference
#include <libcss/libcss.h>
#include "netsurf/css.h"
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint8_t ns_computed_display (const css_computed_style *style, bool root)
 Temporary helper wrappers for for libcss computed style getter, while we don't support all values of display. More...
 
static uint8_t ns_computed_display_static (const css_computed_style *style)
 Temporary helper wrappers for for libcss computed style getter, while we don't support all values of display. More...
 
static uint8_t ns_computed_min_height (const css_computed_style *style, css_fixed *length, css_unit *unit)
 
static uint8_t ns_computed_min_width (const css_computed_style *style, css_fixed *length, css_unit *unit)
 

Variables

css_fixed nscss_screen_dpi
 DPI of the screen, in fixed point units. More...
 

Function Documentation

◆ ns_computed_display()

static uint8_t ns_computed_display ( const css_computed_style *  style,
bool  root 
)
inlinestatic

Temporary helper wrappers for for libcss computed style getter, while we don't support all values of display.

Definition at line 33 of file utils.h.

References root.

Referenced by box_canvas(), box_construct_element(), box_construct_generate(), box_embed(), box_iframe(), box_image(), box_input(), and box_object().

Here is the caller graph for this function:

◆ ns_computed_display_static()

static uint8_t ns_computed_display_static ( const css_computed_style *  style)
inlinestatic

Temporary helper wrappers for for libcss computed style getter, while we don't support all values of display.

Definition at line 56 of file utils.h.

Referenced by box_construct_element(), and nscss_dump_computed_style().

Here is the caller graph for this function:

◆ ns_computed_min_height()

static uint8_t ns_computed_min_height ( const css_computed_style *  style,
css_fixed *  length,
css_unit *  unit 
)
inlinestatic

Definition at line 75 of file utils.h.

Referenced by layout_apply_minmax_height(), layout_find_dimensions(), and nscss_dump_computed_style().

Here is the caller graph for this function:

◆ ns_computed_min_width()

static uint8_t ns_computed_min_width ( const css_computed_style *  style,
css_fixed *  length,
css_unit *  unit 
)
inlinestatic

Definition at line 91 of file utils.h.

Referenced by layout_find_dimensions(), and nscss_dump_computed_style().

Here is the caller graph for this function:

Variable Documentation

◆ nscss_screen_dpi

css_fixed nscss_screen_dpi
extern

DPI of the screen, in fixed point units.

DPI of the screen, in fixed point units.

Definition at line 44 of file css.c.

Referenced by browser_get_dpi(), browser_set_dpi(), html_get_dimensions(), page_info__measure_text_entry(), textarea_create(), textarea_setup_text_offsets(), textplain_line_height(), and treeview_init().