2023-09-20 16:14:40 +02:00
|
|
|
// Copyright 2023 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
2024-05-20 20:01:47 +02:00
|
|
|
//! Responsively generates rows of widgets based on the dimensions of its children.
|
|
|
|
|
|
2023-09-20 16:14:40 +02:00
|
|
|
pub mod layout;
|
|
|
|
|
pub mod widget;
|
|
|
|
|
|
|
|
|
|
pub use widget::FlexRow;
|
|
|
|
|
|
|
|
|
|
use crate::Element;
|
|
|
|
|
|
2024-05-20 20:01:47 +02:00
|
|
|
/// Responsively generates rows of widgets based on the dimensions of its children.
|
2023-09-20 16:14:40 +02:00
|
|
|
pub const fn flex_row<Message>(children: Vec<Element<Message>>) -> FlexRow<Message> {
|
|
|
|
|
FlexRow::new(children)
|
|
|
|
|
}
|