pub enum PointerShape {
Default,
EwResize,
NsResize,
NwseResize,
NeswResize,
}Expand description
The shape the terminal gives the mouse pointer, asked for while painting with
PaintCx::pointer_shape.
The runtime tells the terminal with OSC 22 (ESC ] 22 ; <name> ESC \), which foot, kitty and
WezTerm understand, and only when the shape under the pointer changed. Other terminals are not
sent anything and keep their own pointer. The names are the CSS cursor names those terminals
use.
Variants§
Default
The terminal’s usual pointer.
EwResize
A horizontal double arrow, for a side that moves left and right (ew-resize).
NsResize
A vertical double arrow, for a side that moves up and down (ns-resize).
NwseResize
A diagonal double arrow from the top left to the bottom right corner (nwse-resize).
NeswResize
A diagonal double arrow from the top right to the bottom left corner (nesw-resize).
Implementations§
Trait Implementations§
Source§impl Clone for PointerShape
impl Clone for PointerShape
impl Copy for PointerShape
Source§impl Debug for PointerShape
impl Debug for PointerShape
Source§impl Default for PointerShape
impl Default for PointerShape
impl Eq for PointerShape
Source§impl PartialEq for PointerShape
impl PartialEq for PointerShape
impl StructuralPartialEq for PointerShape
Auto Trait Implementations§
impl Freeze for PointerShape
impl RefUnwindSafe for PointerShape
impl Send for PointerShape
impl Sync for PointerShape
impl Unpin for PointerShape
impl UnsafeUnpin for PointerShape
impl UnwindSafe for PointerShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more