diff options
author | 2021-10-14 17:05:47 +0700 | |
---|---|---|
committer | 2021-10-14 17:05:47 +0700 | |
commit | 7c4738735b6cd5eafb544de01dbf5dd5091dc188 (patch) | |
tree | af3090fa299fdcd3cd47aa226211b4ad95db392e /native/src/widget/container.rs | |
parent | f8895a42b05b93f28416597c8115f7b598885ddb (diff) | |
download | iced-7c4738735b6cd5eafb544de01dbf5dd5091dc188.tar.gz iced-7c4738735b6cd5eafb544de01dbf5dd5091dc188.tar.bz2 iced-7c4738735b6cd5eafb544de01dbf5dd5091dc188.zip |
Implement `Widget::draw` for `Container`
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r-- | native/src/widget/container.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index f43de2a5..af40f2ab 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -180,7 +180,13 @@ where cursor_position: Point, viewport: &Rectangle, ) { - // TODO + self.content.draw( + renderer, + defaults, + layout.children().next().unwrap(), + cursor_position, + viewport, + ); } fn hash_layout(&self, state: &mut Hasher) { |