pub enum GridLength {
Auto,
Px(f32),
Star(f32),
}Expand description
How a grid row or column is sized — WPF’s GridLength.
Variants§
Auto
Fits its content: the largest child in it (Auto).
Px(f32)
A fixed size in GUI pixels (26).
Star(f32)
A share of the space the other rows/columns leave (* = Star(1.0),
2* = Star(2.0)). Along an axis being measured for content (an
auto-sized grid in a scroll view, …) it acts as Self::Auto.
Implementations§
Source§impl GridLength
impl GridLength
Sourcepub const STAR: GridLength
pub const STAR: GridLength
*.
Sourcepub fn parse(text: &str) -> Option<GridLength>
pub fn parse(text: &str) -> Option<GridLength>
A size as .yui writes it: Auto (any case), *, 2*, 26.
Trait Implementations§
Source§impl Clone for GridLength
impl Clone for GridLength
Source§fn clone(&self) -> GridLength
fn clone(&self) -> GridLength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GridLength
Source§impl Debug for GridLength
impl Debug for GridLength
Source§impl From<GridLength> for Track
impl From<GridLength> for Track
Source§fn from(size: GridLength) -> Track
fn from(size: GridLength) -> Track
Converts to this type from the input type.
Source§impl PartialEq for GridLength
impl PartialEq for GridLength
impl StructuralPartialEq for GridLength
Auto Trait Implementations§
impl Freeze for GridLength
impl RefUnwindSafe for GridLength
impl Send for GridLength
impl Sync for GridLength
impl Unpin for GridLength
impl UnsafeUnpin for GridLength
impl UnwindSafe for GridLength
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