pub enum TableColumnWidth {
Fixed(f32),
Flex(f32),
Auto,
}Expand description
Column-width resolution policy.
Every resolved width is floored by TableViewStyle::min_column_width. Raw
negative fixed widths and flex weights become zero during resolution; flex
columns divide remaining finite width by positive weight.
§Examples
use ailloli_ui_widgets::controls::TableColumnWidth;
let widths = [TableColumnWidth::Fixed(120.0), TableColumnWidth::Flex(2.0), TableColumnWidth::Auto];
assert_eq!(widths.len(), 3);Variants§
Fixed(f32)
Requested logical-pixel width before the style minimum is applied.
Flex(f32)
Nonnegative share of finite remaining table width.
Auto
Width of the widest header/cell content plus padding.
Trait Implementations§
Source§impl Clone for TableColumnWidth
impl Clone for TableColumnWidth
Source§fn clone(&self) -> TableColumnWidth
fn clone(&self) -> TableColumnWidth
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableColumnWidth
impl Debug for TableColumnWidth
Source§impl Default for TableColumnWidth
impl Default for TableColumnWidth
Source§fn default() -> TableColumnWidth
fn default() -> TableColumnWidth
Returns the “default value” for a type. Read more
Source§impl PartialEq for TableColumnWidth
impl PartialEq for TableColumnWidth
impl Copy for TableColumnWidth
impl StructuralPartialEq for TableColumnWidth
Auto Trait Implementations§
impl Freeze for TableColumnWidth
impl RefUnwindSafe for TableColumnWidth
impl Send for TableColumnWidth
impl Sync for TableColumnWidth
impl Unpin for TableColumnWidth
impl UnwindSafe for TableColumnWidth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.