diff options
author | 2020-10-29 02:00:56 +0100 | |
---|---|---|
committer | 2020-10-29 02:00:56 +0100 | |
commit | b40775fb7414b44307e343921ef015c65a916dab (patch) | |
tree | 06a3fad05b14d3b0f97687bf410fa8bbc04c9526 /native/src/widget.rs | |
parent | 8a3ce90959e281cd73a7486d800df8d65478a698 (diff) | |
parent | 91b1886968b498b913984bdfa4bee840e8821ec6 (diff) | |
download | iced-b40775fb7414b44307e343921ef015c65a916dab.tar.gz iced-b40775fb7414b44307e343921ef015c65a916dab.tar.bz2 iced-b40775fb7414b44307e343921ef015c65a916dab.zip |
Merge pull request #584 from hecrj/improvement/viewport-aware-drawing
Viewport aware drawing
Diffstat (limited to 'native/src/widget.rs')
-rw-r--r-- | native/src/widget.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/widget.rs b/native/src/widget.rs index a10281df..8687ce6f 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -73,7 +73,9 @@ pub use text::Text; #[doc(no_inline)] pub use text_input::TextInput; -use crate::{layout, overlay, Clipboard, Event, Hasher, Layout, Length, Point}; +use crate::{ + layout, overlay, Clipboard, Event, Hasher, Layout, Length, Point, Rectangle, +}; /// A component that displays information and allows interaction. /// @@ -137,6 +139,7 @@ where defaults: &Renderer::Defaults, layout: Layout<'_>, cursor_position: Point, + viewport: &Rectangle, ) -> Renderer::Output; /// Computes the _layout_ hash of the [`Widget`]. |