pub struct TableColumn<T: 'static> { /* private fields */ }Expand description
Implementations§
Source§impl<T: 'static> TableColumn<T>
impl<T: 'static> TableColumn<T>
Sourcepub fn new<V: View>(
title: impl IntoValue<String>,
render: impl Fn(T) -> V + 'static,
) -> TableColumn<T>
pub fn new<V: View>( title: impl IntoValue<String>, render: impl Fn(T) -> V + 'static, ) -> TableColumn<T>
title can be a message (t!), which follows the language.
Sourcepub fn width(self, width: impl Into<Length>) -> TableColumn<T>
pub fn width(self, width: impl Into<Length>) -> TableColumn<T>
How wide it starts; the user can resize it, as the platform lets them. Without, it’s as wide as the platform makes a column.
Sourcepub fn expand(self) -> TableColumn<T>
pub fn expand(self) -> TableColumn<T>
Takes the room the table has past its columns’ widths, shared with the other columns that do: a file’s name, say.
Sourcepub fn fills_row(self) -> TableColumn<T>
pub fn fills_row(self) -> TableColumn<T>
Its cells fill their row: as wide as the column and as high as the row, without the space the platform puts around a cell’s content, for drawings that join from row to row (a commit graph). The row is as high as the platform makes it, which is the platform’s own row height on some (GTK’s, WinUI’s are higher than AppKit’s), so draw to the cell’s size rather than a fixed one.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TableColumn<T>
impl<T> !Send for TableColumn<T>
impl<T> !Sync for TableColumn<T>
impl<T> !UnwindSafe for TableColumn<T>
impl<T> Forget for TableColumn<T>
impl<T> Freeze for TableColumn<T>
impl<T> Move for TableColumn<T>
impl<T> Unpin for TableColumn<T>
impl<T> UnsafeUnpin for TableColumn<T>
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