fixed.rs

 1use gpui::DefiniteLength;
 2
 3/// A trait for elements that can have a fixed with. Enables the use of the `width` and `full_width` methods.
 4pub trait FixedWidth {
 5    /// Sets the width of the element.
 6    fn width(self, width: impl Into<DefiniteLength>) -> Self;
 7
 8    /// Sets the element's width to the full width of its container.
 9    fn full_width(self) -> Self;
10}