Method
mouse_interaction
(
&self,
tree: &Tree,
layout: Layout<'_>,
cursor: mouse::Cursor,
viewport: &Rectangle,
renderer: &iced::Renderer,
)
Source from the content-addressed store, hash-verified
| 236 | } |
| 237 | |
| 238 | fn mouse_interaction( |
| 239 | &self, |
| 240 | tree: &Tree, |
| 241 | layout: Layout<'_>, |
| 242 | cursor: mouse::Cursor, |
| 243 | viewport: &Rectangle, |
| 244 | renderer: &iced::Renderer, |
| 245 | ) -> mouse::Interaction { |
| 246 | if !cursor.is_over(layout.bounds()) { |
| 247 | return mouse::Interaction::None; |
| 248 | } |
| 249 | |
| 250 | layout |
| 251 | .children() |
| 252 | .next() |
| 253 | .map(|layout| { |
| 254 | self.content |
| 255 | .as_widget() |
| 256 | .mouse_interaction(tree, layout, cursor, viewport, renderer) |
| 257 | }) |
| 258 | .unwrap_or_default() |
| 259 | } |
| 260 | |
| 261 | fn draw( |
| 262 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected