Create iced_core and iced_native
This commit is contained in:
parent
b83a4b42dd
commit
b9e0f74948
81 changed files with 2576 additions and 2709 deletions
|
|
@ -1,42 +1,8 @@
|
|||
use crate::{Align, Bus, Element, Widget};
|
||||
use crate::{Bus, Element, Widget};
|
||||
|
||||
use dodrio::bumpalo;
|
||||
|
||||
pub struct Column<'a, Message> {
|
||||
children: Vec<Element<'a, Message>>,
|
||||
}
|
||||
|
||||
impl<'a, Message> Column<'a, Message> {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
children: Vec::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spacing(self, _spacing: u16) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn padding(self, _padding: u16) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn max_width(self, _max_width: u16) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
pub fn align_items(self, _align: Align) -> 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 Column<'a, Message> = iced_core::Column<Element<'a, Message>>;
|
||||
|
||||
impl<'a, Message> Widget<Message> for Column<'a, Message> {
|
||||
fn node<'b>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue