Implement Container widget

Remove `align_self` and `justify_content` methods
This commit is contained in:
Héctor Ramón Jiménez 2019-11-11 05:26:08 +01:00
parent bfe19193b9
commit ceb02f4a36
25 changed files with 310 additions and 205 deletions

View file

@ -1,12 +1,13 @@
use crate::{
column, conversion,
conversion,
input::{keyboard, mouse},
renderer::{Target, Windowed},
Cache, Column, Debug, Element, Event, Length, MouseCursor, UserInterface,
Cache, Container, Debug, Element, Event, Length, MouseCursor,
UserInterface,
};
pub trait Application {
type Renderer: Windowed + column::Renderer;
type Renderer: Windowed;
type Message: std::fmt::Debug;
@ -282,9 +283,8 @@ where
let view = application.view();
debug.view_finished();
Column::new()
Container::new(view)
.width(Length::Units(size.width.round() as u16))
.height(Length::Units(size.height.round() as u16))
.push(view)
.into()
}