pub struct Row(/* private fields */);Expand description
One line of cells, one per track, shown by UiPop::row. Cells are
Space::Inline apart and on one baseline unless told otherwise.
Implementations§
Source§impl Row
impl Row
Sourcepub fn new(tracks: impl IntoIterator<Item = Track>) -> Self
pub fn new(tracks: impl IntoIterator<Item = Track>) -> Self
A row of tracks, one cell each.
Sourcepub fn id_salt(self, salt: impl AsIdSalt) -> Self
pub fn id_salt(self, salt: impl AsIdSalt) -> Self
Its id, for the sizes it keeps between passes; by default the
Ui’s next automatic id.
Sourcepub fn align(self, align: Align) -> Self
pub fn align(self, align: Align) -> Self
How cells sit vertically (Align::Baseline by default).
Sourcepub fn justify(self, justify: Align) -> Self
pub fn justify(self, justify: Align) -> Self
Where the cells go when they leave room (no Track::fr):
Align::End for a button bar.
Sourcepub fn equal_widths(self) -> Self
pub fn equal_widths(self) -> Self
Every content-sized cell as wide as the widest, its content stretched across it (buttons of a bar).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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