Create iced_core and iced_native
This commit is contained in:
parent
b83a4b42dd
commit
b9e0f74948
81 changed files with 2576 additions and 2709 deletions
|
|
@ -2,29 +2,7 @@ use crate::{Bus, Element, Widget};
|
|||
|
||||
use dodrio::bumpalo;
|
||||
|
||||
pub struct Row<'a, Message> {
|
||||
children: Vec<Element<'a, Message>>,
|
||||
}
|
||||
|
||||
impl<'a, Message> Row<'a, Message> {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
children: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spacing(self, _spacing: u16) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn push<E>(mut self, element: E) -> Self
|
||||
where
|
||||
E: Into<Element<'a, Message>>,
|
||||
{
|
||||
self.children.push(element.into());
|
||||
self
|
||||
}
|
||||
}
|
||||
pub type Row<'a, Message> = iced_core::Row<Element<'a, Message>>;
|
||||
|
||||
impl<'a, Message> Widget<Message> for Row<'a, Message> {
|
||||
fn node<'b>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue