pub struct TableRecipe {Show 15 fields
pub row_height: f32,
pub header_height: f32,
pub cell_padding_horizontal: f32,
pub cell_padding_vertical: f32,
pub resize_handle_width: f32,
pub grid_line_thickness: f32,
pub corner_radius: f32,
pub sort_indicator_size: f32,
pub filter_indicator_size: f32,
pub header_inter_cell_spacing: f32,
pub focus_ring_inset: f32,
pub min_column_width_default: f32,
pub tree_indent_per_level: f32,
pub tree_twist_size: f32,
pub tree_twist_label_gap: f32,
}Expand description
Configurable dimensions for RecipeTableStyle.
All fields default to the corresponding pub const in this module so
that TableRecipe::default() reproduces the IntUI look exactly.
Fields§
§row_height: f32Body row height. Headers use header_height.
header_height: f32Sticky header row height.
cell_padding_horizontal: f32Horizontal padding inside each cell (also applied to header cells).
cell_padding_vertical: f32Vertical padding inside each cell.
resize_handle_width: f32Half-width of a column’s resize grip: the grabbable band reaches this
far on each side of a divider (see RESIZE_HANDLE_WIDTH).
grid_line_thickness: f32Stroke width of grid lines drawn between rows / columns.
corner_radius: f32Outer-frame corner radius.
sort_indicator_size: f32Edge length of the sort-direction chevron in the header.
filter_indicator_size: f32Edge length of the filter glyph in the header.
header_inter_cell_spacing: f32Spacing between adjacent header cells (in addition to grid lines).
focus_ring_inset: f32Inset between the focused-cell bounds and the focus-ring stroke.
min_column_width_default: f32Default minimum column width, used when a column does not set its own.
tree_indent_per_level: f32TreeTableView only — pixels per indent level on the tree column.
tree_twist_size: f32TreeTableView only — edge length of the twist (expand/collapse) chevron.
tree_twist_label_gap: f32TreeTableView only — gap between the twist chevron and the cell content.
Trait Implementations§
Source§impl Clone for TableRecipe
impl Clone for TableRecipe
Source§fn clone(&self) -> TableRecipe
fn clone(&self) -> TableRecipe
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TableRecipe
Source§impl Debug for TableRecipe
impl Debug for TableRecipe
Source§impl Default for TableRecipe
impl Default for TableRecipe
Source§impl PartialEq for TableRecipe
impl PartialEq for TableRecipe
Source§fn eq(&self, other: &TableRecipe) -> bool
fn eq(&self, other: &TableRecipe) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableRecipe
Auto Trait Implementations§
impl Freeze for TableRecipe
impl RefUnwindSafe for TableRecipe
impl Send for TableRecipe
impl Sync for TableRecipe
impl Unpin for TableRecipe
impl UnsafeUnpin for TableRecipe
impl UnwindSafe for TableRecipe
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more