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

Mutable state carried through the layout loop. More...

#include <reflow_layout_internal.h>

Data Fields

int32_t x
 Pixel column for next glyph.
int32_t y
 Pixel row baseline for next glyph.
int32_t line_top
 Pixel row of the current line's top.
uint16_t line_height_px
 Active line height in pixels.
uint16_t active_font_px
 Active font size (body or heading).
uint8_t active_style
 Active inline-style stamp.
uint16_t indent_px
 Active left indent (li, blockquote).
uint32_t page_first_glyph
 First glyph index of the active page.
uint32_t page_first_image
 First image-box index of the active page.
uint32_t line_first_glyph
 First glyph index of the active line.
uint8_t line_has_content
 1 once any glyph landed on this line.
uint8_t align
 Active block alignment (reflow_align_t).
uint8_t reserved8 [2]
 Padding.

Detailed Description

Mutable state carried through the layout loop.

Definition at line 65 of file reflow_layout_internal.h.

Field Documentation

◆ active_font_px

uint16_t priv_cursor_t::active_font_px

Active font size (body or heading).

Definition at line 70 of file reflow_layout_internal.h.

Referenced by internal_close_block(), internal_emit_char(), internal_layout_text(), and internal_open_block().

◆ active_style

uint8_t priv_cursor_t::active_style

Active inline-style stamp.

Definition at line 71 of file reflow_layout_internal.h.

Referenced by internal_emit_char(), and priv_reflow_layout_apply_token().

◆ align

uint8_t priv_cursor_t::align

Active block alignment (reflow_align_t).

Definition at line 77 of file reflow_layout_internal.h.

Referenced by internal_finish_line(), internal_open_block(), and priv_reflow_layout_table().

◆ indent_px

uint16_t priv_cursor_t::indent_px

◆ line_first_glyph

uint32_t priv_cursor_t::line_first_glyph

First glyph index of the active line.

Definition at line 75 of file reflow_layout_internal.h.

Referenced by internal_finish_line(), priv_reflow_layout_finish_page(), priv_reflow_layout_newline(), and priv_reflow_layout_table().

◆ line_has_content

◆ line_height_px

uint16_t priv_cursor_t::line_height_px

Active line height in pixels.

Definition at line 69 of file reflow_layout_internal.h.

Referenced by internal_close_block(), internal_open_block(), internal_place_image(), and priv_reflow_layout_newline().

◆ line_top

int32_t priv_cursor_t::line_top

◆ page_first_glyph

uint32_t priv_cursor_t::page_first_glyph

First glyph index of the active page.

Definition at line 73 of file reflow_layout_internal.h.

Referenced by internal_layout_tokens(), internal_page_has_content(), and priv_reflow_layout_finish_page().

◆ page_first_image

uint32_t priv_cursor_t::page_first_image

First image-box index of the active page.

Definition at line 74 of file reflow_layout_internal.h.

Referenced by internal_layout_tokens(), internal_page_has_content(), and priv_reflow_layout_finish_page().

◆ reserved8

uint8_t priv_cursor_t::reserved8[2]

Padding.

Definition at line 78 of file reflow_layout_internal.h.

◆ x

◆ y


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