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

One parsed token in the engine's token stream. More...

#include <reflow_types.h>

Data Fields

uint8_t kind
 reflow_token_kind_t.
uint8_t tag
 reflow_html_tag_t (0 if N/A).
uint8_t style
 Font-style bitmask.
uint8_t reserved
 Block align / <a> link id.
uint32_t text_off
 Byte offset into the text pool.
uint32_t text_len
 Byte length within the text pool.
uint32_t color
 0xRRGGBB CSS colour, or k_reflow_color_inherit.
uint16_t css_font_px
 Block-start CSS font px (0 = none -> UA default).
uint16_t reserved16
 Padding to 4-byte stride.

Detailed Description

One parsed token in the engine's token stream.

Internal-but-exposed so the engine handle can statically allocate an array of these. Treat fields as read-only outside of reflow_*.

Definition at line 220 of file reflow_types.h.

Field Documentation

◆ color

uint32_t reflow_token_t::color

0xRRGGBB CSS colour, or k_reflow_color_inherit.

Definition at line 227 of file reflow_types.h.

Referenced by internal_emit_text_run(), internal_layout_text(), and priv_reflow_tok_emit().

◆ css_font_px

uint16_t reflow_token_t::css_font_px

Block-start CSS font px (0 = none -> UA default).

Definition at line 228 of file reflow_types.h.

Referenced by internal_open_attrs(), internal_open_block(), and priv_reflow_tok_emit().

◆ kind

◆ reserved

uint8_t reflow_token_t::reserved

Block align / <a> link id.

Definition at line 224 of file reflow_types.h.

Referenced by internal_emit_text_run(), internal_layout_text(), internal_open_attrs(), internal_open_block(), and priv_reflow_tok_emit().

◆ reserved16

uint16_t reflow_token_t::reserved16

Padding to 4-byte stride.

Definition at line 229 of file reflow_types.h.

Referenced by internal_emit_text_run(), internal_handle_cdata(), priv_reflow_layout_apply_token(), and priv_reflow_tok_emit().

◆ style

uint8_t reflow_token_t::style

Font-style bitmask.

Definition at line 223 of file reflow_types.h.

Referenced by priv_reflow_layout_apply_token(), and priv_reflow_tok_emit().

◆ tag

◆ text_len

uint32_t reflow_token_t::text_len

◆ text_off

uint32_t reflow_token_t::text_off

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