pub struct DragDecl {
pub data: String,
pub label: String,
pub drop_types: String,
pub image: Option<ComponentId>,
}Expand description
O arrasto declarado de um controle (fica fora do ControlBase comum: quase nenhum tem).
Fields§
§data: StringO que vai num arrasto que começa nele, sem handler ("cliente:123": o tipo é o que vem
antes do primeiro :); vazio: o arrasto declarado não leva nada.
label: StringO texto que acompanha o mouse durante o arrasto; vazio: sem rótulo.
drop_types: StringOs tipos que este destino aceita, separados por ; ("cliente;produto"); vazio: quem
decide é o on_drag_over.
image: Option<ComponentId>O DragImage que acompanha o cursor no arrasto (a imagem e o tamanho).
Trait Implementations§
impl StructuralPartialEq for DragDecl
Auto Trait Implementations§
impl Forget for DragDecl
impl Freeze for DragDecl
impl Move for DragDecl
impl RefUnwindSafe for DragDecl
impl Send for DragDeclwhere
RawVecInner: Send,
impl Sync for DragDeclwhere
RawVecInner: Sync,
impl Unpin for DragDecl
impl UnsafeUnpin for DragDecl
impl UnwindSafe for DragDeclwhere
RawVecInner: UnwindSafe,
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