Introduce opaque widget helper
This commit is contained in:
parent
9492da11d9
commit
4cd45643d7
13 changed files with 182 additions and 12 deletions
|
|
@ -396,7 +396,9 @@ pub fn mouse_interaction(
|
|||
use mouse::Interaction;
|
||||
|
||||
match interaction {
|
||||
Interaction::Idle => winit::window::CursorIcon::Default,
|
||||
Interaction::None | Interaction::Idle => {
|
||||
winit::window::CursorIcon::Default
|
||||
}
|
||||
Interaction::Pointer => winit::window::CursorIcon::Pointer,
|
||||
Interaction::Working => winit::window::CursorIcon::Progress,
|
||||
Interaction::Grab => winit::window::CursorIcon::Grab,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ where
|
|||
exit_on_close_request,
|
||||
surface,
|
||||
renderer,
|
||||
mouse_interaction: mouse::Interaction::Idle,
|
||||
mouse_interaction: mouse::Interaction::None,
|
||||
},
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue