Write documentation for UserInterface

This commit is contained in:
Héctor Ramón Jiménez 2019-08-29 00:58:42 +02:00
parent 51050fc45c
commit 268a5f0017
5 changed files with 214 additions and 14 deletions

View file

@ -144,9 +144,9 @@ impl event::EventHandler for Game {
&mut Renderer::new(context, self.spritesheet.clone());
let mut ui = iced::UserInterface::build(
content.into(),
renderer,
content,
self.cache.take().unwrap(),
renderer,
);
let messages = ui.update(self.events.drain(..));