Struct DragRunProps
pub struct DragRunProps {
pub name: Option<String>,
pub axis: Option<RunAxis>,
pub distribute: Option<Distribute>,
pub align: Option<Align>,
pub items: DragItems,
pub trailing: Vec<Box<dyn Widget>>,
pub drop: Event,
}Expand description
A run of items — a dock’s icons, a toolbar’s tiles, a row of cards — reordered by dragging
one. Each item is one ui.DragItem.
Fields§
§name: Option<String>What the run is, for assistive technology.
axis: Option<RunAxis>Whether the items lead to trailing (the default) or run top to bottom.
distribute: Option<Distribute>Where the run’s packed items sit along it: its leading edge (the default), its centre, its trailing edge, or spread between its ends. A run whose items fall in groups packs each group at its own edge; this places a run of one group, such as a dock.
align: Option<Align>Where the items pack across the run: centred (the default).
items: DragItemsThe items, in order.
trailing: Vec<Box<dyn Widget>>What stands beside the items at the run’s trailing end and is never moved: a taskbar’s time and device status.
drop: EventAn item was let go in a new place: carries the resource it stands for and its place
among the run’s other items, from 0 — what items.move(item, to: at) takes.
Trait Implementations§
§impl Component for DragRunProps
impl Component for DragRunProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<DragRunProps, Error>
fn from_source(source: &mut dyn Source) -> Result<DragRunProps, Error>
source gives. Read more§impl Default for DragRunProps
impl Default for DragRunProps
§fn default() -> DragRunProps
fn default() -> DragRunProps
Auto Trait Implementations§
impl Freeze for DragRunProps
impl !RefUnwindSafe for DragRunProps
impl !Send for DragRunProps
impl !Sync for DragRunProps
impl Unpin for DragRunProps
impl UnsafeUnpin for DragRunProps
impl !UnwindSafe for DragRunProps
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§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>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§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.§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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