| 20 | }; |
| 21 | |
| 22 | pub 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 | |
| 41 | impl<'a> Deref for DrawContext<'a> { |
| 42 | type Target = AttachedContext<'a>; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…