pub struct GridLength {
pub value: f64,
pub unit: GridUnitType,
}Expand description
XAML GridLength: Auto, a pixel value, or n*.
Fields§
§value: f64§unit: GridUnitTypeImplementations§
Source§impl GridLength
impl GridLength
Sourcepub const AUTO: GridLength
pub const AUTO: GridLength
XAML Auto. The value is XGRIDLENGTH::Default(), 1.
Sourcepub const STAR: GridLength
pub const STAR: GridLength
XAML *.
Sourcepub const fn pixel(value: f64) -> GridLength
pub const fn pixel(value: f64) -> GridLength
XAML Width="40".
Sourcepub const fn star(value: f64) -> GridLength
pub const fn star(value: f64) -> GridLength
XAML Width="2*".
Trait Implementations§
Source§impl Clone for GridLength
impl Clone for GridLength
impl Copy for GridLength
Source§impl Debug for GridLength
impl Debug for GridLength
Source§impl PartialEq for GridLength
impl PartialEq for GridLength
impl StructuralPartialEq for GridLength
Auto Trait Implementations§
impl Forget for GridLength
impl Freeze for GridLength
impl Move 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