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

A parsed linear/radial gradient in objectBoundingBox units. More...

#include <reflow_svg_internal.h>

Collaboration diagram for svg_grad_t:

Data Fields

uint8_t kind
 k_svg_grad_linear / k_svg_grad_radial.
uint8_t nstops
 Number of valid stops.
char id [k_svg_grad_id]
 NUL-terminated gradient id (for url()).
float x1
 Linear start x / radial centre x.
float y1
 Linear start y / radial centre y.
float x2
 Linear end x / radial radius.
float y2
 Linear end y (unused for radial).
svg_stop_t stops [k_svg_grad_stops]
 Colour stops, in document order.

Detailed Description

A parsed linear/radial gradient in objectBoundingBox units.

Coordinates are bbox-relative ([0,1]). Linear uses the vector (x1,y1)->(x2,y2); radial uses centre (x1,y1) and radius x2. Only gradientUnits="objectBoundingBox" (the default) is modelled; other units are treated as objectBoundingBox (a documented limitation).

Definition at line 161 of file reflow_svg_internal.h.

Field Documentation

◆ id

char svg_grad_t::id[k_svg_grad_id]

NUL-terminated gradient id (for url()).

Definition at line 164 of file reflow_svg_internal.h.

Referenced by internal_scan_grads(), and priv_match_grad().

◆ kind

uint8_t svg_grad_t::kind

k_svg_grad_linear / k_svg_grad_radial.

Definition at line 162 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), and internal_scan_grads().

◆ nstops

uint8_t svg_grad_t::nstops

Number of valid stops.

Definition at line 163 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), internal_parse_stops(), and internal_scan_grads().

◆ stops

svg_stop_t svg_grad_t::stops[k_svg_grad_stops]

Colour stops, in document order.

Definition at line 169 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), and internal_parse_stops().

◆ x1

float svg_grad_t::x1

Linear start x / radial centre x.

Definition at line 165 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), and internal_scan_grads().

◆ x2

float svg_grad_t::x2

Linear end x / radial radius.

Definition at line 167 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), and internal_scan_grads().

◆ y1

float svg_grad_t::y1

Linear start y / radial centre y.

Definition at line 166 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), and internal_scan_grads().

◆ y2

float svg_grad_t::y2

Linear end y (unused for radial).

Definition at line 168 of file reflow_svg_internal.h.

Referenced by internal_grad_eval(), and internal_scan_grads().


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