Struct unsegen::widget::builtin::table::TableWidget [−][src]
pub struct TableWidget<'a, R: TableRow + 'static> { /* fields omitted */ }
Expand description
A Widget
representing a LineEdit
It allows for customization of vertical/horizontal separation styles and style for the focused cell.
Implementations
impl<'a, R: TableRow + 'static> TableWidget<'a, R>
[src]
impl<'a, R: TableRow + 'static> TableWidget<'a, R>
[src]pub fn row_separation(self, style: SeparatingStyle) -> Self
[src]
pub fn row_separation(self, style: SeparatingStyle) -> Self
[src]Specify the style for visual vertical separation (default: None)
pub fn col_separation(self, style: SeparatingStyle) -> Self
[src]
pub fn col_separation(self, style: SeparatingStyle) -> Self
[src]Specify the style for visual horizontal separation (default: None)
pub fn focused(self, style: StyleModifier) -> Self
[src]
pub fn focused(self, style: StyleModifier) -> Self
[src]Specify the style override for the active cell (default: None)
pub fn min_context(self, rows: u32) -> Self
[src]
pub fn min_context(self, rows: u32) -> Self
[src]Specify the minimum number of rows shown below/above the active row (if possible). Default: 1
Trait Implementations
impl<'a, R: TableRow + 'static> Widget for TableWidget<'a, R>
[src]
impl<'a, R: TableRow + 'static> Widget for TableWidget<'a, R>
[src]fn space_demand(&self) -> Demand2D
[src]
fn space_demand(&self) -> Demand2D
[src]Return the current demand for (rectangular) screen estate. Read more
fn draw(&self, window: Window<'_>, hints: RenderingHints)
[src]
fn draw(&self, window: Window<'_>, hints: RenderingHints)
[src]Draw the widget to the given window. Read more
Auto Trait Implementations
impl<'a, R> !RefUnwindSafe for TableWidget<'a, R>
impl<'a, R> !Send for TableWidget<'a, R>
impl<'a, R> !Sync for TableWidget<'a, R>
impl<'a, R> Unpin for TableWidget<'a, R>
impl<'a, R> !UnwindSafe for TableWidget<'a, R>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<W> WidgetExt for W where
W: Widget,
[src]
impl<W> WidgetExt for W where
W: Widget,
[src]fn centered(self) -> Centered<Self>
[src]
fn centered(self) -> Centered<Self>
[src]Center the widget according to the specified maximum demand within the supplied window. This is only useful if the widget has a defined maximum size and the window is larger than that. Read more
fn with_window<F: Fn(Window<'_>, RenderingHints) -> Window<'_>>(
self,
f: F
) -> WithWindow<Self, F>
[src]
fn with_window<F: Fn(Window<'_>, RenderingHints) -> Window<'_>>(
self,
f: F
) -> WithWindow<Self, F>
[src]Alter the window before letting the widget draw itself in it.
fn with_demand<F: Fn(Demand2D) -> Demand2D>(self, f: F) -> WithDemand<Self, F>
[src]
fn with_demand<F: Fn(Demand2D) -> Demand2D>(self, f: F) -> WithDemand<Self, F>
[src]Alter the reported demand of the widget. This can be useful, for example, to force a widget to assume all space in the window or to artificially restrict the size of a widget. Read more