Struct widgetry::table::Table [−][src]
pub struct Table<A, T, F> { id: String, data: Vec<T>, label_per_row: Box<dyn Fn(&T) -> String>, columns: Vec<Column<A, T>>, filter: Filter<A, T, F>, sort_by: String, descending: bool, skip: usize, }
Fields
id: String
data: Vec<T>
label_per_row: Box<dyn Fn(&T) -> String>
columns: Vec<Column<A, T>>
filter: Filter<A, T, F>
sort_by: String
descending: bool
skip: usize
Implementations
impl<A, T, F> Table<A, T, F>
[src]
impl<A, T, F> Table<A, T, F>
[src]pub fn new(
id: impl Into<String>,
data: Vec<T>,
label_per_row: Box<dyn Fn(&T) -> String>,
default_sort_by: &str,
filter: Filter<A, T, F>
) -> Table<A, T, F>
[src]
id: impl Into<String>,
data: Vec<T>,
label_per_row: Box<dyn Fn(&T) -> String>,
default_sort_by: &str,
filter: Filter<A, T, F>
) -> Table<A, T, F>
pub fn column(
&mut self,
name: &str,
render: Box<dyn Fn(&EventCtx<'_>, &A, &T) -> GeomBatch>,
col: Col<T>
)
[src]
&mut self,
name: &str,
render: Box<dyn Fn(&EventCtx<'_>, &A, &T) -> GeomBatch>,
col: Col<T>
)
pub fn replace_render(&self, ctx: &mut EventCtx<'_>, app: &A, panel: &mut Panel)
[src]
pub fn render(&self, ctx: &mut EventCtx<'_>, app: &A) -> Widget
[src]
pub fn clicked(&mut self, action: &str) -> bool
[src]
pub fn panel_changed(&mut self, panel: &Panel)
[src]
impl<A, T: 'static, F> Table<A, T, F>
[src]
impl<A, T: 'static, F> Table<A, T, F>
[src]Auto Trait Implementations
impl<A, T, F> !RefUnwindSafe for Table<A, T, F>
impl<A, T, F> !Send for Table<A, T, F>
impl<A, T, F> !Sync for Table<A, T, F>
impl<A, T, F> Unpin for Table<A, T, F> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,