(
context: AttachedContext<'a>,
redraw_requested: &'a mut bool,
regions: &'a HashMap<Token, (Affine, Size)>,
)
| 38 | |
| 39 | impl<'a> EventContext<'a> { |
| 40 | pub fn new( |
| 41 | context: AttachedContext<'a>, |
| 42 | redraw_requested: &'a mut bool, |
| 43 | regions: &'a HashMap<Token, (Affine, Size)>, |
| 44 | ) -> EventContext<'a> { |
| 45 | EventContext { |
| 46 | context, |
| 47 | redraw_requested, |
| 48 | regions, |
| 49 | delta_correction: None, |
| 50 | transform: Affine::IDENTITY, |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | pub fn request_redraw(&mut self) { |
| 55 | *self.redraw_requested = true; |
nothing calls this directly
no outgoing calls
no test coverage detected