mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-31 19:05:00 +07:00
This will allow us to compile debug builds of the remote-server for a different architecture than the one we are developing on. This also adds a CI step for building our remote server with minimal dependencies. Release Notes: - N/A
40 lines
1.5 KiB
Rust
40 lines
1.5 KiB
Rust
mod client;
|
|
mod clipboard;
|
|
mod cursor;
|
|
mod display;
|
|
mod serial;
|
|
mod window;
|
|
|
|
pub(crate) use client::*;
|
|
|
|
use wayland_protocols::wp::cursor_shape::v1::client::wp_cursor_shape_device_v1::Shape;
|
|
|
|
use crate::CursorStyle;
|
|
|
|
impl CursorStyle {
|
|
pub(super) fn to_shape(&self) -> Shape {
|
|
match self {
|
|
CursorStyle::Arrow => Shape::Default,
|
|
CursorStyle::IBeam => Shape::Text,
|
|
CursorStyle::Crosshair => Shape::Crosshair,
|
|
CursorStyle::ClosedHand => Shape::Grabbing,
|
|
CursorStyle::OpenHand => Shape::Grab,
|
|
CursorStyle::PointingHand => Shape::Pointer,
|
|
CursorStyle::ResizeLeft => Shape::WResize,
|
|
CursorStyle::ResizeRight => Shape::EResize,
|
|
CursorStyle::ResizeLeftRight => Shape::EwResize,
|
|
CursorStyle::ResizeUp => Shape::NResize,
|
|
CursorStyle::ResizeDown => Shape::SResize,
|
|
CursorStyle::ResizeUpDown => Shape::NsResize,
|
|
CursorStyle::ResizeUpLeftDownRight => Shape::NwseResize,
|
|
CursorStyle::ResizeUpRightDownLeft => Shape::NeswResize,
|
|
CursorStyle::ResizeColumn => Shape::ColResize,
|
|
CursorStyle::ResizeRow => Shape::RowResize,
|
|
CursorStyle::IBeamCursorForVerticalLayout => Shape::VerticalText,
|
|
CursorStyle::OperationNotAllowed => Shape::NotAllowed,
|
|
CursorStyle::DragLink => Shape::Alias,
|
|
CursorStyle::DragCopy => Shape::Copy,
|
|
CursorStyle::ContextualMenu => Shape::ContextMenu,
|
|
}
|
|
}
|
|
}
|