cosmic/widget/flex_row/
mod.rs

1// Copyright 2023 System76 <info@system76.com>
2// SPDX-License-Identifier: MPL-2.0
3
4//! Responsively generates rows of widgets based on the dimensions of its children.
5
6pub mod layout;
7pub mod widget;
8
9pub use widget::FlexRow;
10
11use crate::Element;
12
13/// Responsively generates rows of widgets based on the dimensions of its children.
14pub const fn flex_row<Message>(children: Vec<Element<Message>>) -> FlexRow<Message> {
15    FlexRow::new(children)
16}