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

Mutable tokenizer state threaded through the scan helpers. More...

Collaboration diagram for tok_ctx_t:

Data Fields

reflow_tengine
 Target engine pools.
uint8_t style
 Current inline-style bits.
uint8_t active_link
 1-based link id (0 = none).
uint32_t color
 Current CSS colour / inherit.
uint16_t css_font_px
 Inherited CSS font px (0=none).
uint16_t family_off
 Inherited font-family slice off.
uint16_t family_len
 Inherited font-family len (0=none).
uint8_t face_slot
 Resolved embedded face (0=default).
ra8_css_element_t stack_el [k_priv_max_depth]
 Open-element identities (tag+id+class) for the cascade + descendant match.
uint8_t stack_style [k_priv_max_depth]
 Style to restore on pop.
uint8_t stack_link [k_priv_max_depth]
 Link id to restore on pop.
uint32_t stack_color [k_priv_max_depth]
 Colour to restore on pop.
uint16_t stack_font [k_priv_max_depth]
 CSS font px to restore on pop.
uint16_t stack_fam_off [k_priv_max_depth]
 font-family off to restore.
uint16_t stack_fam_len [k_priv_max_depth]
 font-family len to restore.
uint8_t stack_face [k_priv_max_depth]
 Face slot to restore on pop.
uint32_t sp
 Stack depth.
uint32_t suppress_sp
 display:none subtree depth (0=off).
bool saw_element
 At least one element seen.

Detailed Description

Mutable tokenizer state threaded through the scan helpers.

Definition at line 52 of file reflow_tokenize.c.

Field Documentation

◆ active_link

uint8_t tok_ctx_t::active_link

1-based link id (0 = none).

Definition at line 55 of file reflow_tokenize.c.

Referenced by internal_emit_text_run(), internal_handle_end(), internal_handle_start(), and internal_open_attrs().

◆ color

uint32_t tok_ctx_t::color

Current CSS colour / inherit.

Definition at line 56 of file reflow_tokenize.c.

Referenced by internal_emit_text_run(), internal_handle_end(), internal_handle_start(), internal_open_styled(), and priv_reflow_xml_walk().

◆ css_font_px

uint16_t tok_ctx_t::css_font_px

Inherited CSS font px (0=none).

Definition at line 57 of file reflow_tokenize.c.

Referenced by internal_css_font_px(), internal_handle_end(), internal_handle_start(), and internal_open_styled().

◆ engine

◆ face_slot

uint8_t tok_ctx_t::face_slot

Resolved embedded face (0=default).

Definition at line 60 of file reflow_tokenize.c.

Referenced by internal_emit_text_run(), internal_handle_cdata(), internal_handle_end(), internal_handle_start(), and internal_open_styled().

◆ family_len

uint16_t tok_ctx_t::family_len

Inherited font-family len (0=none).

Definition at line 59 of file reflow_tokenize.c.

Referenced by internal_handle_end(), internal_handle_start(), and internal_open_styled().

◆ family_off

uint16_t tok_ctx_t::family_off

Inherited font-family slice off.

Definition at line 58 of file reflow_tokenize.c.

Referenced by internal_handle_end(), internal_handle_start(), and internal_open_styled().

◆ saw_element

bool tok_ctx_t::saw_element

At least one element seen.

Definition at line 72 of file reflow_tokenize.c.

Referenced by internal_handle_raw_text(), internal_handle_start(), and priv_reflow_xml_walk().

◆ sp

◆ stack_color

uint32_t tok_ctx_t::stack_color[k_priv_max_depth]

Colour to restore on pop.

Definition at line 65 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ stack_el

ra8_css_element_t tok_ctx_t::stack_el[k_priv_max_depth]

Open-element identities (tag+id+class) for the cascade + descendant match.

Definition at line 62 of file reflow_tokenize.c.

Referenced by internal_handle_end(), internal_handle_start(), and internal_open_styled().

◆ stack_face

uint8_t tok_ctx_t::stack_face[k_priv_max_depth]

Face slot to restore on pop.

Definition at line 69 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ stack_fam_len

uint16_t tok_ctx_t::stack_fam_len[k_priv_max_depth]

font-family len to restore.

Definition at line 68 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ stack_fam_off

uint16_t tok_ctx_t::stack_fam_off[k_priv_max_depth]

font-family off to restore.

Definition at line 67 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ stack_font

uint16_t tok_ctx_t::stack_font[k_priv_max_depth]

CSS font px to restore on pop.

Definition at line 66 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ stack_link

uint8_t tok_ctx_t::stack_link[k_priv_max_depth]

Link id to restore on pop.

Definition at line 64 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ stack_style

uint8_t tok_ctx_t::stack_style[k_priv_max_depth]

Style to restore on pop.

Definition at line 63 of file reflow_tokenize.c.

Referenced by internal_handle_end(), and internal_handle_start().

◆ style

◆ suppress_sp

uint32_t tok_ctx_t::suppress_sp

display:none subtree depth (0=off).

Definition at line 71 of file reflow_tokenize.c.

Referenced by internal_handle_end(), internal_open_styled(), and internal_suppressed().


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