[][src]Struct azul_widgets::table_view::TableViewState

pub struct TableViewState {
    pub work_sheet: BTreeMap<usize, BTreeMap<usize, String>>,
    pub column_width: f32,
    pub row_height: f32,
    pub selected_cell: Option<(usize, usize)>,
}

Fields

work_sheet: BTreeMap<usize, BTreeMap<usize, String>>column_width: f32row_height: f32selected_cell: Option<(usize, usize)>

Implementations

impl TableViewState[src]

pub fn render(&self, rows: Range<usize>, columns: Range<usize>) -> Dom[src]

Renders a cutout of the table from, horizontally from (col_start..col_end) and vertically from (row_start..row_end)

pub fn set_cell<I: Into<String>>(&mut self, x: usize, y: usize, value: I)[src]

Trait Implementations

impl Clone for TableViewState[src]

impl Debug for TableViewState[src]

impl Default for TableViewState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.