pub struct Grid { /* private fields */ }Implementations§
Source§impl Grid
impl Grid
pub fn new(source: impl Hash) -> Self
pub fn column(self, column: Column) -> Self
pub fn columns(self, columns: impl IntoIterator<Item = Column>) -> Self
pub fn style(self, style: GridStyle) -> Self
pub fn width(self, width: f32) -> Self
pub fn spacing(self, spacing: Vec2) -> Self
pub fn padding(self, padding: Padding) -> Self
pub fn cell_padding(self, padding: Padding) -> Self
pub fn fill(self, fill: Color) -> Self
Sourcepub fn drag_rows(self, drag: bool) -> Self
pub fn drag_rows(self, drag: bool) -> Self
Let rows be dragged to reorder: rows are sources with RowDrag payloads
and before/after targets, reported as GridOutput::row_moved. Row ids are
Id::new(source) of the row call. The model is yours to change.
pub fn show<R>( self, ui: &mut Ui<'_>, build: impl FnOnce(&mut GridUi<'_, '_>) -> R, ) -> GridOutput<R>
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.