Add hover styling support

This commit is contained in:
Nathan Sobo 2023-08-23 09:08:05 -06:00
parent 1bc4f22373
commit 569d99a5a1
8 changed files with 53 additions and 22 deletions

View file

@ -70,6 +70,7 @@ impl Window {
pub fn new<V, F>(
handle: AnyWindowHandle,
platform_window: Box<dyn platform::Window>,
mouse_position: Vector2F,
cx: &mut AppContext,
build_view: F,
) -> Self
@ -97,7 +98,7 @@ impl Window {
hovered_region_ids: Default::default(),
clicked_region_ids: Default::default(),
clicked_region: None,
mouse_position: vec2f(0., 0.),
mouse_position,
titlebar_height,
appearance,
};