ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_css_style_t Struct Reference

A declared or computed style: a presence mask plus property values. More...

#include <reflow_css.h>

Data Fields

uint8_t set
 ra8_css_set_t bitmask: which properties are present.
uint8_t style
 reflow_font_style_t bit VALUES (bold/italic/ul).
uint8_t align
 reflow_align_t (valid iff set & align).
uint8_t font_unit
 ra8_css_font_unit_t (valid iff set & fontsize).
uint32_t color
 0xRRGGBB text colour (valid iff set & color).
uint16_t font_val
 font-size number: px or % (valid iff set & fontsize).
uint8_t display
 1 = display:none (valid iff set & display).
uint8_t pad
 Padding.
uint16_t family_off
 font-family name slice offset (valid iff set&family).
uint16_t family_len
 font-family name slice length (0 = none).

Detailed Description

A declared or computed style: a presence mask plus property values.

style holds the bold / italic / underline VALUES as reflow_font_style_t bits (a set bit = "on"); align holds an reflow_align_t. A field is only meaningful when its ra8_css_set_t bit is present in set.

Definition at line 122 of file reflow_css.h.

Field Documentation

◆ align

uint8_t ra8_css_style_t::align

reflow_align_t (valid iff set & align).

Definition at line 125 of file reflow_css.h.

Referenced by internal_apply_align(), internal_cascade_scalars(), and internal_open_attrs().

◆ color

uint32_t ra8_css_style_t::color

0xRRGGBB text colour (valid iff set & color).

Definition at line 127 of file reflow_css.h.

Referenced by internal_apply_decl(), internal_cascade_scalars(), and internal_open_styled().

◆ display

uint8_t ra8_css_style_t::display

1 = display:none (valid iff set & display).

Definition at line 129 of file reflow_css.h.

Referenced by internal_apply_decl(), internal_cascade_scalars(), and internal_open_styled().

◆ family_len

uint16_t ra8_css_style_t::family_len

font-family name slice length (0 = none).

Definition at line 132 of file reflow_css.h.

Referenced by internal_cascade_family(), internal_family_cb(), internal_open_styled(), and priv_reflow_tok_resolve_face_slot().

◆ family_off

uint16_t ra8_css_style_t::family_off

font-family name slice offset (valid iff set&family).

Definition at line 131 of file reflow_css.h.

Referenced by internal_cascade_family(), internal_family_cb(), internal_open_styled(), and priv_reflow_tok_resolve_face_slot().

◆ font_unit

uint8_t ra8_css_style_t::font_unit

ra8_css_font_unit_t (valid iff set & fontsize).

Definition at line 126 of file reflow_css.h.

Referenced by internal_apply_decl(), internal_cascade_scalars(), and internal_css_font_px().

◆ font_val

uint16_t ra8_css_style_t::font_val

font-size number: px or % (valid iff set & fontsize).

Definition at line 128 of file reflow_css.h.

Referenced by internal_apply_decl(), internal_cascade_scalars(), and internal_css_font_px().

◆ pad

uint8_t ra8_css_style_t::pad

Padding.

Definition at line 130 of file reflow_css.h.

◆ set

◆ style

uint8_t ra8_css_style_t::style

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