summaryrefslogtreecommitdiffstats
path: root/glow/src
diff options
context:
space:
mode:
authorLibravatar Kaiden42 <gitlab@tinysn.com>2020-09-19 20:16:36 +0200
committerLibravatar Héctor Ramón <hector@lich.io>2021-06-03 20:21:53 +0700
commit88da268724527e1b41c303ebec9056a606a01486 (patch)
tree7cb29814c01c0a7d739988381b380e1621593ead /glow/src
parent7370dfac6e798667771d768dbc5c3ed04930364c (diff)
downloadiced-88da268724527e1b41c303ebec9056a606a01486.tar.gz
iced-88da268724527e1b41c303ebec9056a606a01486.tar.bz2
iced-88da268724527e1b41c303ebec9056a606a01486.zip
add missing glow support
Diffstat (limited to 'glow/src')
-rw-r--r--glow/src/widget.rs3
-rw-r--r--glow/src/widget/toggler.rs9
2 files changed, 12 insertions, 0 deletions
diff --git a/glow/src/widget.rs b/glow/src/widget.rs
index 5481216a..a77511e8 100644
--- a/glow/src/widget.rs
+++ b/glow/src/widget.rs
@@ -20,6 +20,7 @@ pub mod rule;
pub mod scrollable;
pub mod slider;
pub mod text_input;
+pub mod toggler;
pub mod tooltip;
#[doc(no_inline)]
@@ -45,6 +46,8 @@ pub use slider::Slider;
#[doc(no_inline)]
pub use text_input::TextInput;
#[doc(no_inline)]
+pub use toggler::Toggler;
+#[doc(no_inline)]
pub use tooltip::Tooltip;
#[cfg(feature = "canvas")]
diff --git a/glow/src/widget/toggler.rs b/glow/src/widget/toggler.rs
new file mode 100644
index 00000000..0bd5b758
--- /dev/null
+++ b/glow/src/widget/toggler.rs
@@ -0,0 +1,9 @@
+//! Show toggle controls using togglers.
+use crate::Renderer;
+
+pub use iced_graphics::toggler::{Style, StyleSheet};
+
+/// A toggler that can be toggled.
+///
+/// This is an alias of an `iced_native` checkbox with an `iced_wgpu::Renderer`.
+pub type Toggler<Message> = iced_native::Toggler<Message, Renderer>; \ No newline at end of file