pub enum Cursor {
Show 19 variants
Default,
Pointer,
Text,
Crosshair,
Move,
Grab,
Grabbing,
NotAllowed,
Wait,
Progress,
Help,
ColResize,
RowResize,
EwResize,
NsResize,
NeswResize,
NwseResize,
ZoomIn,
ZoomOut,
}Expand description
Forma del puntero del mouse. Subconjunto práctico, llimphi-native (el
compositor no depende de winit). El runtime (llimphi-ui) mapea 1:1 a
winit::window::CursorIcon. Nombres alineados con CSS/winit.
Variants§
Default
Flecha por defecto.
Pointer
Manito — sobre algo clickeable (links, botones).
Text
I-beam — sobre texto editable/seleccionable.
Crosshair
Cruz — selección precisa (canvas, picker de color).
Move
Cuatro flechas — mover un objeto.
Grab
Mano abierta — agarrable (antes de arrastrar).
Grabbing
Mano cerrada — arrastrando.
NotAllowed
Prohibido — drop no permitido / acción inválida.
Wait
Reloj/espera — operación bloqueante.
Progress
Progreso — ocupado pero la UI responde.
Help
Interrogación — ayuda contextual.
ColResize
Resize horizontal (columna / divisor vertical).
RowResize
Resize vertical (fila / divisor horizontal).
EwResize
Resize este-oeste.
NsResize
Resize norte-sur.
NeswResize
Resize diagonal ↗↙.
NwseResize
Resize diagonal ↖↘.
ZoomIn
Lupa + (zoom in).
ZoomOut
Lupa − (zoom out).
Trait Implementations§
impl Copy for Cursor
impl Eq for Cursor
impl StructuralPartialEq for Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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
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§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.