pub struct DragVisual {
pub image: Image,
pub size: SizeF,
pub hotspot: PointF,
pub opacity: f32,
}Expand description
O que acompanha o cursor num arrasto: uma imagem (a miniatura de um vídeo, o ícone de um
arquivo), do tamanho pedido, meio transparente, presa ao cursor pelo ponto hotspot. No
Windows ela vai numa janela própria e segue o mouse por cima de tudo, fora da janela
também; nos outros sistemas, o form a pinta junto do mouse.
Fields§
§image: Image§size: SizeFTamanho na tela, em pontos.
hotspot: PointFO ponto da imagem (em pontos, a partir do canto) que fica no cursor.
opacity: f320..1.
Implementations§
Trait Implementations§
Source§impl Clone for DragVisual
impl Clone for DragVisual
Source§impl Debug for DragVisual
impl Debug for DragVisual
Source§impl PartialEq for DragVisual
impl PartialEq for DragVisual
impl StructuralPartialEq for DragVisual
Auto Trait Implementations§
impl Forget for DragVisual
impl Freeze for DragVisual
impl Move for DragVisual
impl RefUnwindSafe for DragVisual
impl Send for DragVisual
impl Sync for DragVisual
impl Unpin for DragVisual
impl UnsafeUnpin for DragVisual
impl UnwindSafe for DragVisual
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