Struct unsegen::widget::builtin::table::Column [−][src]
pub struct Column<T: TableRow + ?Sized> { pub access: for<'a> fn(_: &'a T) -> Box<dyn Widget + 'a>, pub behavior: fn(_: &mut T, _: Input, _: &mut T::BehaviorContext) -> Option<Input>, }
Expand description
A single column in a Table
.
This does not store any data, but rather how to access a cell in a single column of a table and how it reacts to input.
In a sense this is only necessary because we do not have variadic generics.
Fields
access: for<'a> fn(_: &'a T) -> Box<dyn Widget + 'a>
Immutable widget access.
behavior: fn(_: &mut T, _: Input, _: &mut T::BehaviorContext) -> Option<Input>
Input processing