Skip to content

Commit

Permalink
add more cursor style
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Sep 8, 2023
1 parent 4a490fc commit 3885932
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ pub enum CursorStyle {
NeResize,
SwResize,
SeResize,
NeswResize,
NwseResize,
}

#[derive(Debug, Clone, Copy)]
Expand Down
2 changes: 2 additions & 0 deletions src/window_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3885932

Please sign in to comment.