MCPcopy Create free account
hub / github.com/angular-rust/ux-components / mark_control

Method mark_control

src/services/focus.rs:274–285  ·  view source on GitHub ↗
(&self, control: &dyn Element, e: &mut MouseEvent)

Source from the content-addressed store, hash-verified

272 }
273
274 fn mark_control(&self, control: &dyn Element, e: &mut MouseEvent) {
275 if !control.is_marked() {
276 if let Some(marked) = self.canvas.marked() {
277 self.reset_marked(marked.as_ref(), e);
278 }
279 control.mark();
280
281 if control.mouse_input() {
282 control.mouseenter(e);
283 }
284 }
285 }
286}

Callers 2

mousemoveMethod · 0.80
find_markedMethod · 0.80

Calls 7

is_markedMethod · 0.80
reset_markedMethod · 0.80
markMethod · 0.80
mouseenterMethod · 0.80
markedMethod · 0.45
as_refMethod · 0.45
mouse_inputMethod · 0.45

Tested by

no test coverage detected