pub enum CursorShape {
Default,
Text,
Pointer,
Grab,
Grabbing,
NotAllowed,
EwResize,
NsResize,
NwseResize,
NeswResize,
}Expand description
The shape the pointer takes. Spelled the way CSS and the platform
toolkits do, so a driver maps it one-to-one (winit’s CursorIcon, the
Web’s cursor, GTK’s names) instead of interpreting it.
Variants§
Default
The plain arrow: plain boxes, window chrome, anything unclaimed.
Text
I-beam: text that can be selected or edited.
Pointer
The pointing hand: something that acts when clicked.
Grab
Open hand: something that can be dragged, but is not being dragged.
Grabbing
Closed hand: a drag is in flight (the pointer is captured).
NotAllowed
Refused: an inert control that wants to say why the click did nothing.
EwResize
Horizontal resize (a vertical splitter, the left/right window edge).
NsResize
Vertical resize (a horizontal splitter, the top/bottom window edge).
NwseResize
Diagonal resize, top-left/bottom-right.
NeswResize
Diagonal resize, top-right/bottom-left.
Implementations§
Source§impl CursorShape
impl CursorShape
Trait Implementations§
Source§impl Clone for CursorShape
impl Clone for CursorShape
Source§fn clone(&self) -> CursorShape
fn clone(&self) -> CursorShape
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CursorShape
Source§impl Debug for CursorShape
impl Debug for CursorShape
Source§impl Default for CursorShape
impl Default for CursorShape
Source§fn default() -> CursorShape
fn default() -> CursorShape
impl Eq for CursorShape
Source§impl Hash for CursorShape
impl Hash for CursorShape
Source§impl PartialEq for CursorShape
impl PartialEq for CursorShape
impl StructuralPartialEq for CursorShape
Auto Trait Implementations§
impl Freeze for CursorShape
impl RefUnwindSafe for CursorShape
impl Send for CursorShape
impl Sync for CursorShape
impl Unpin for CursorShape
impl UnsafeUnpin for CursorShape
impl UnwindSafe for CursorShape
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.