diff options
Diffstat (limited to 'glow')
-rw-r--r-- | glow/src/backend.rs | 1 | ||||
-rw-r--r-- | glow/src/lib.rs | 2 | ||||
-rw-r--r-- | glow/src/widget.rs | 3 | ||||
-rw-r--r-- | glow/src/widget/combo_box.rs | 8 |
4 files changed, 13 insertions, 1 deletions
diff --git a/glow/src/backend.rs b/glow/src/backend.rs index 8b5b4f9c..e1685816 100644 --- a/glow/src/backend.rs +++ b/glow/src/backend.rs @@ -193,6 +193,7 @@ impl iced_graphics::Backend for Backend { impl backend::Text for Backend { const ICON_FONT: Font = font::ICONS; const CHECKMARK_ICON: char = font::CHECKMARK_ICON; + const ARROW_DOWN_ICON: char = font::ARROW_DOWN_ICON; fn default_size(&self) -> u16 { self.default_text_size diff --git a/glow/src/lib.rs b/glow/src/lib.rs index a6c8a75a..bdd854e3 100644 --- a/glow/src/lib.rs +++ b/glow/src/lib.rs @@ -2,7 +2,7 @@ //! //! [`glow`]: https://github.com/grovesNL/glow //! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native -#![deny(missing_docs)] +//#![deny(missing_docs)] #![deny(missing_debug_implementations)] #![deny(unused_results)] #![forbid(rust_2018_idioms)] diff --git a/glow/src/widget.rs b/glow/src/widget.rs index 9968092b..c8f16725 100644 --- a/glow/src/widget.rs +++ b/glow/src/widget.rs @@ -11,6 +11,7 @@ use crate::Renderer; pub mod button; pub mod checkbox; +pub mod combo_box; pub mod container; pub mod pane_grid; pub mod progress_bar; @@ -24,6 +25,8 @@ pub use button::Button; #[doc(no_inline)] pub use checkbox::Checkbox; #[doc(no_inline)] +pub use combo_box::ComboBox; +#[doc(no_inline)] pub use container::Container; #[doc(no_inline)] pub use pane_grid::PaneGrid; diff --git a/glow/src/widget/combo_box.rs b/glow/src/widget/combo_box.rs new file mode 100644 index 00000000..bfface29 --- /dev/null +++ b/glow/src/widget/combo_box.rs @@ -0,0 +1,8 @@ +pub use iced_native::combo_box::State; + +pub use iced_graphics::combo_box::{Style, StyleSheet}; +pub use iced_graphics::overlay::menu::Style as Menu; + +/// A widget allowing the selection of a single value from a list of options. +pub type ComboBox<'a, T, Message> = + iced_native::ComboBox<'a, T, Message, crate::Renderer>; |