MCPcopy Create free account
hub / github.com/Kethku/Pando / DrawContext

Class DrawContext

aspen/src/context_stack/draw_context.rs:22–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22pub struct DrawContext<'a> {
23 context: AttachedContext<'a>,
24 mouse_region_manager: &'a mut MouseRegionManager,
25 mouse_region_count: usize,
26 child_lookup: &'a HashMap<Token, HashSet<Token>>,
27 // Lookup table for all element's transforms and sizes in element transform coordinates
28 regions: &'a HashMap<Token, (Affine, Size)>,
29 stroke_style: Stroke,
30 stroke_brush: Brush,
31 fill_brush: Brush,
32 // Transform for this element computed during layout
33 element_transform: Affine,
34 // Transform list local to this element. Used to enable layer local transforms.
35 local_transform_stack: Vec<Affine>,
36 // Currently active clipping paths in window space
37 clip_stack: Vec<BezPath>,
38 scene: &'a mut Scene,
39}
40
41impl<'a> Deref for DrawContext<'a> {
42 type Target = AttachedContext<'a>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…