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

One laid-out <img> rectangle (decoded + blitted at render time). More...

#include <reflow_types.h>

Data Fields

int32_t x
 Page-local left edge, pixels.
int32_t y
 Page-local top edge, pixels.
int32_t w
 Scaled box width, pixels.
int32_t h
 Scaled box height, pixels.
uint32_t src_off
 Href slice offset into text pool.
uint32_t src_len
 Href slice length, bytes.
uint32_t page_index
 Page this image belongs to.
uint32_t reserved
 Padding to 32-byte stride.

Detailed Description

One laid-out <img> rectangle (decoded + blitted at render time).

Produced by the layout pass when an image loader + decode arena are bound (see reflow_set_image_loader()). Coordinates are page-local – the same space as reflow_glyph_t – so render offsets them by the page origin. The src_off / src_len slice indexes the engine text pool and is handed back to the loader at render time to re-fetch the encoded bytes (the decoded pixels are never stored – decode is on-demand per page flip).

Definition at line 272 of file reflow_types.h.

Field Documentation

◆ h

int32_t reflow_image_box_t::h

Scaled box height, pixels.

Definition at line 276 of file reflow_types.h.

Referenced by internal_image_record(), internal_render_one_image(), and reflow_hit_test_image().

◆ page_index

uint32_t reflow_image_box_t::page_index

Page this image belongs to.

Definition at line 279 of file reflow_types.h.

Referenced by internal_image_record(), internal_render_images(), and reflow_hit_test_image().

◆ reserved

uint32_t reflow_image_box_t::reserved

Padding to 32-byte stride.

Definition at line 280 of file reflow_types.h.

Referenced by internal_image_record().

◆ src_len

uint32_t reflow_image_box_t::src_len

Href slice length, bytes.

Definition at line 278 of file reflow_types.h.

Referenced by internal_image_record(), and internal_render_one_image().

◆ src_off

uint32_t reflow_image_box_t::src_off

Href slice offset into text pool.

Definition at line 277 of file reflow_types.h.

Referenced by internal_image_record(), and internal_render_one_image().

◆ w

int32_t reflow_image_box_t::w

Scaled box width, pixels.

Definition at line 275 of file reflow_types.h.

Referenced by internal_image_record(), internal_render_one_image(), and reflow_hit_test_image().

◆ x

int32_t reflow_image_box_t::x

Page-local left edge, pixels.

Definition at line 273 of file reflow_types.h.

Referenced by internal_image_record(), internal_render_one_image(), and reflow_hit_test_image().

◆ y

int32_t reflow_image_box_t::y

Page-local top edge, pixels.

Definition at line 274 of file reflow_types.h.

Referenced by internal_image_record(), internal_render_one_image(), and reflow_hit_test_image().


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