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

Method new

aspen/src/context_stack/event_context.rs:40–52  ·  view source on GitHub ↗
(
        context: AttachedContext<'a>,
        redraw_requested: &'a mut bool,
        regions: &'a HashMap<Token, (Affine, Size)>,
    )

Source from the content-addressed store, hash-verified

38
39impl<'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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected