summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-11 05:26:08 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-11 05:26:08 +0100
commitceb02f4a36769c488c2525db2fb73f092a6c2706 (patch)
treed7a43c6b9444fb3079501e49ca1f80e31f1b4740 /winit
parentbfe19193b95e9d1be0694bbc6a96e20a9aefdc09 (diff)
downloadiced-ceb02f4a36769c488c2525db2fb73f092a6c2706.tar.gz
iced-ceb02f4a36769c488c2525db2fb73f092a6c2706.tar.bz2
iced-ceb02f4a36769c488c2525db2fb73f092a6c2706.zip
Implement `Container` widget
Remove `align_self` and `justify_content` methods
Diffstat (limited to 'winit')
-rw-r--r--winit/src/application.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index 4deffecc..fdd659d9 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -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()
}