pub struct AxisParameters {
pub name: Option<String>,
pub default_dimension: Option<f32>,
pub dimension_range: Rangef,
pub resizable: bool,
pub monospace: bool,
pub expandable: bool,
}Expand description
Specifies the axis (row/column) parameters.
Since min/max/default dimension can all conflict or be specified in a different order they must be sanitized before use in the following order: default -> clamp(min, max)
debug_asserts are raised if any values are < 0 in release builds default/min/max have a minimum of 0 at runtime.
Fields§
§name: Option<String>§default_dimension: Option<f32>The row/column height/width, respectively
dimension_range: RangefThe row/column height/width range, respectively
resizable: bool§monospace: bool§expandable: boolImplementations§
Source§impl AxisParameters
impl AxisParameters
pub fn name(self, s: impl Into<String>) -> Self
Sourcepub fn default_dimension(self, value: f32) -> Self
pub fn default_dimension(self, value: f32) -> Self
The row/column height/width, respectively
Sourcepub fn minimum_dimension(self, value: f32) -> Self
pub fn minimum_dimension(self, value: f32) -> Self
default: 10.0
if the row/column is resizable, then the minimum dimension might be larger the value specified here, or the default, due to the space required for resize handles and resize handle interaction constraints
Sourcepub fn maximum_dimension(self, value: f32) -> Self
pub fn maximum_dimension(self, value: f32) -> Self
a value f32::INFINITY allows the row/column to be resized to be as large as possible
default: f32::INFINITY
pub fn resizable(self, value: bool) -> Self
pub fn monospace(self, value: bool) -> Self
Sourcepub fn expandable(self, value: bool) -> Self
pub fn expandable(self, value: bool) -> Self
indicates if this column can be expanded to fill the available space does NOT imply the USER can resize it
If there are multiple expandable columns then only the first one encountered will be expanded. Thus, it’s not advisable to set it on more than one column, especially if you are using column reordering.
Currently not applicable to rows.
Trait Implementations§
Source§impl Clone for AxisParameters
impl Clone for AxisParameters
Source§fn clone(&self) -> AxisParameters
fn clone(&self) -> AxisParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AxisParameters
impl Debug for AxisParameters
Auto Trait Implementations§
impl Freeze for AxisParameters
impl RefUnwindSafe for AxisParameters
impl Send for AxisParameters
impl Sync for AxisParameters
impl Unpin for AxisParameters
impl UnsafeUnpin for AxisParameters
impl UnwindSafe for AxisParameters
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
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,
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