MCPcopy Create free account
hub / github.com/audulus/rui / hover_p

Method hover_p

src/modifiers.rs:81–86  ·  view source on GitHub ↗

Calls a function in response to a mouse hovering. Version which passes the position

(
        self,
        f: F,
    )

Source from the content-addressed store, hash-verified

79
80 /// Calls a function in response to a mouse hovering. Version which passes the position
81 fn hover_p<A: 'static, F: Fn(&mut Context, LocalPoint) -> A + Clone + 'static>(
82 self,
83 f: F,
84 ) -> Hover<Self, HoverFuncP<F>> {
85 Hover::new(self, HoverFuncP { f })
86 }
87
88 /// Add an environment value.
89 fn env<E: Clone + 'static>(self, value: E) -> SetenvView<Self, E> {

Callers 1

showMethod · 0.80

Implementers 1

modifiers.rssrc/modifiers.rs

Calls

no outgoing calls

Tested by

no test coverage detected