pub struct TableRow<'a, 'b> { /* private fields */ }
Expand description
The row of a table.
Is created by TableRow
for each created TableBody::row
or each visible row in rows created by calling TableBody::rows
.
Implementations§
Source§impl<'a, 'b> TableRow<'a, 'b>
impl<'a, 'b> TableRow<'a, 'b>
Sourcepub fn col(
&mut self,
add_cell_contents: impl FnOnce(&mut Ui),
) -> (Rect, Response)
pub fn col( &mut self, add_cell_contents: impl FnOnce(&mut Ui), ) -> (Rect, Response)
Add the contents of a column on this row (i.e. a cell).
Returns the used space (min_rect
) plus the Response
of the whole cell.
Sourcepub fn set_selected(&mut self, selected: bool)
pub fn set_selected(&mut self, selected: bool)
Set the selection highlight state for cells added after a call to this function.
Sourcepub fn set_hovered(&mut self, hovered: bool)
pub fn set_hovered(&mut self, hovered: bool)
Set the hovered highlight state for cells added after a call to this function.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for TableRow<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for TableRow<'a, 'b>
impl<'a, 'b> Send for TableRow<'a, 'b>
impl<'a, 'b> Sync for TableRow<'a, 'b>
impl<'a, 'b> Unpin for TableRow<'a, 'b>
impl<'a, 'b> !UnwindSafe for TableRow<'a, 'b>
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