Calls a function in response to a mouse hovering.
(
self,
f: F,
)
| 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>( |
no outgoing calls
no test coverage detected