From 3885932416775a6740f015d3f1e5867ce48984bb Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Fri, 8 Sep 2023 21:07:18 +0100 Subject: [PATCH] add more cursor style --- src/style.rs | 2 ++ src/window_handle.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/style.rs b/src/style.rs index 431c97c5..b84eca6a 100644 --- a/src/style.rs +++ b/src/style.rs @@ -68,6 +68,8 @@ pub enum CursorStyle { NeResize, SwResize, SeResize, + NeswResize, + NwseResize, } #[derive(Debug, Clone, Copy)] diff --git a/src/window_handle.rs b/src/window_handle.rs index 34c6702b..a9af6b52 100644 --- a/src/window_handle.rs +++ b/src/window_handle.rs @@ -900,6 +900,8 @@ impl WindowHandle { Some(CursorStyle::SeResize) => CursorIcon::SeResize, Some(CursorStyle::SResize) => CursorIcon::SResize, Some(CursorStyle::NResize) => CursorIcon::NResize, + Some(CursorStyle::NeswResize) => CursorIcon::NeswResize, + Some(CursorStyle::NwseResize) => CursorIcon::NwseResize, None => CursorIcon::Default, }; if cursor != self.app_state.last_cursor {