pub struct Expanded {
pub factor: f32,
pub child: Option<Box<dyn Widget>>,
}Expand description
Fills remaining space in a Row or Column (flex weight 1 by default).
Wrap any widget with Expanded::new(child) to make it fill leftover space.
Fields§
§factor: f32§child: Option<Box<dyn Widget>>Implementations§
Trait Implementations§
Source§impl Widget for Expanded
impl Widget for Expanded
Source§fn children(&self) -> Children<'_>
fn children(&self) -> Children<'_>
Declare this widget’s children. Drives every default below.
Source§fn flex_factor(&self) -> f32
fn flex_factor(&self) -> f32
Flex weight inside Row/Column. Wrappers are transparent by default.
Auto Trait Implementations§
impl !RefUnwindSafe for Expanded
impl !UnwindSafe for Expanded
impl Freeze for Expanded
impl Send for Expanded
impl Sync for Expanded
impl Unpin for Expanded
impl UnsafeUnpin for Expanded
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
Source§impl<W> FocusApi for W
impl<W> FocusApi for W
Source§fn focus_node(self, node: FocusNode) -> WithFocus<Self>
fn focus_node(self, node: FocusNode) -> WithFocus<Self>
Attach a focus node. This enables focus-ring rendering and explicit
neighbor wiring.