Skip to main content

PdfStyleFn

Type Alias PdfStyleFn 

Source
pub type PdfStyleFn = Rc<dyn Fn() -> PdfStyle>;
Expand description

Supplies the current PdfStyle at paint time. Because PdfView is a persistent entity (not rebuilt by its parent each frame), it reads its colors through this closure — returning fresh colors each call lets the viewer follow live theme changes (and differ per window) without the host pushing updates.

Aliased Type§

pub struct PdfStyleFn { /* private fields */ }