diff options
author | 2020-01-07 01:53:26 +0100 | |
---|---|---|
committer | 2020-01-07 01:53:26 +0100 | |
commit | 48b3b78a3840778eef1035f4585d5ba9dd3d6291 (patch) | |
tree | 2df86a26f9961969b4f8da38c145b123162f0923 /native/src/renderer/null.rs | |
parent | fce89d0ffe36111cdbf42480c28e67811afb42e6 (diff) | |
download | iced-48b3b78a3840778eef1035f4585d5ba9dd3d6291.tar.gz iced-48b3b78a3840778eef1035f4585d5ba9dd3d6291.tar.bz2 iced-48b3b78a3840778eef1035f4585d5ba9dd3d6291.zip |
Implement styling for `ProgressBar`
Diffstat (limited to 'native/src/renderer/null.rs')
-rw-r--r-- | native/src/renderer/null.rs | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/native/src/renderer/null.rs b/native/src/renderer/null.rs index 72f06a87..b721e29e 100644 --- a/native/src/renderer/null.rs +++ b/native/src/renderer/null.rs @@ -1,7 +1,7 @@ use crate::{ - button, checkbox, column, radio, row, scrollable, slider, text, text_input, - Color, Element, Font, HorizontalAlignment, Layout, Point, Rectangle, - Renderer, Size, VerticalAlignment, + button, checkbox, column, progress_bar, radio, row, scrollable, slider, + text, text_input, Color, Element, Font, HorizontalAlignment, Layout, Point, + Rectangle, Renderer, Size, VerticalAlignment, }; /// A renderer that does nothing. @@ -196,6 +196,21 @@ impl slider::Renderer for Null { _value: f32, _is_dragging: bool, _style_sheet: &Self::Style, - ) -> Self::Output { + ) { + } +} + +impl progress_bar::Renderer for Null { + type Style = (); + + const DEFAULT_HEIGHT: u16 = 30; + + fn draw( + &self, + _bounds: Rectangle, + _range: std::ops::RangeInclusive<f32>, + _value: f32, + _style: &Self::Style, + ) { } } |