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

Method hover

src/modifiers.rs:73–78  ·  view source on GitHub ↗

Calls a function in response to a mouse hovering.

(
        self,
        f: F,
    )

Source from the content-addressed store, hash-verified

71
72 /// Calls a function in response to a mouse hovering.
73 fn hover<A: 'static, F: Fn(&mut Context, bool) -> A + Clone + 'static>(
74 self,
75 f: F,
76 ) -> Hover<Self, HoverFunc<F>> {
77 Hover::new(self, HoverFunc { f })
78 }
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>(

Callers 3

buttonFunction · 0.80
button_viewMethod · 0.80
showMethod · 0.80

Implementers 1

modifiers.rssrc/modifiers.rs

Calls

no outgoing calls

Tested by

no test coverage detected