NetSurf
Data Fields
nscss_len_ctx Struct Reference

Length conversion context data. More...

#include <utils.h>

Data Fields

int vw
 Viewport width in px. More...
 
int vh
 Viewport height in px. More...
 
const css_computed_style * root_style
 Computed style for the document root element. More...
 

Detailed Description

Length conversion context data.

Definition at line 35 of file utils.h.

Field Documentation

◆ root_style

const css_computed_style* nscss_len_ctx::root_style

Computed style for the document root element.

May be NULL if unit is not rem, or rlh.

Definition at line 50 of file utils.h.

Referenced by css_utils__fudge_viewport_units(), html_reformat(), and nscss_len2px().

◆ vh

int nscss_len_ctx::vh

Viewport height in px.

Only used if unit is vh, vw, vi, vb, vmin, or vmax.

Definition at line 45 of file utils.h.

Referenced by css_utils__fudge_viewport_units(), html_reformat(), nscss_len2pt(), and nscss_len2px().

◆ vw

int nscss_len_ctx::vw

Viewport width in px.

Only used if unit is vh, vw, vi, vb, vmin, or vmax.

Definition at line 40 of file utils.h.

Referenced by css_utils__fudge_viewport_units(), html_reformat(), nscss_len2pt(), nscss_len2px(), and print_make_settings().


The documentation for this struct was generated from the following file: