Struct slint::TableColumn
source · #[non_exhaustive]#[repr(C)]pub struct TableColumn {
pub title: SharedString,
pub min_width: f32,
pub horizontal_stretch: f32,
pub sort_order: SortOrder,
pub width: f32,
}Expand description
This is used to define the column and the column header of a TableView
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: SharedStringThe title of the column header
min_width: f32The minimum column width (logical length)
horizontal_stretch: f32The horizontal column stretch
sort_order: SortOrderSorts the column
width: f32the actual width of the column (logical length)
Trait Implementations§
source§impl Clone for TableColumn
impl Clone for TableColumn
source§fn clone(&self) -> TableColumn
fn clone(&self) -> TableColumn
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 TableColumn
impl Debug for TableColumn
source§impl Default for TableColumn
impl Default for TableColumn
source§fn default() -> TableColumn
fn default() -> TableColumn
Returns the “default value” for a type. Read more
source§impl PartialEq for TableColumn
impl PartialEq for TableColumn
source§fn eq(&self, other: &TableColumn) -> bool
fn eq(&self, other: &TableColumn) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TableColumn
Auto Trait Implementations§
impl RefUnwindSafe for TableColumn
impl Send for TableColumn
impl !Sync for TableColumn
impl Unpin for TableColumn
impl UnwindSafe for TableColumn
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§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<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.