pub struct ColumnBuilder { /* private fields */ }Expand description
Builder for the Column layout component (vertical stack).
ⓘ
Column { spacing: 8, align: Center, padding: 16 } {
Text { value: "Hello" }
Button { label: "OK", on_tap: submit }
}Implementations§
Source§impl ColumnBuilder
impl ColumnBuilder
pub fn new() -> Self
pub fn spacing(self, spacing: f64) -> Self
pub fn align(self, align: Alignment) -> Self
pub fn padding(self, padding: Edges) -> Self
pub fn child(self, child: SurfaceNode) -> Self
pub fn children(self, children: Vec<SurfaceNode>) -> Self
pub fn build(self) -> SurfaceNode
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColumnBuilder
impl RefUnwindSafe for ColumnBuilder
impl Send for ColumnBuilder
impl Sync for ColumnBuilder
impl Unpin for ColumnBuilder
impl UnwindSafe for ColumnBuilder
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