summaryrefslogtreecommitdiffstats
path: root/wgpu/src/widget
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wgpu/src/widget.rs4
-rw-r--r--wgpu/src/widget/text.rs7
2 files changed, 11 insertions, 0 deletions
diff --git a/wgpu/src/widget.rs b/wgpu/src/widget.rs
index c3a47dff..32ccad17 100644
--- a/wgpu/src/widget.rs
+++ b/wgpu/src/widget.rs
@@ -17,6 +17,8 @@ pub mod scrollable;
pub mod slider;
pub mod text_input;
+mod text;
+
#[doc(no_inline)]
pub use button::Button;
#[doc(no_inline)]
@@ -36,6 +38,8 @@ pub use slider::Slider;
#[doc(no_inline)]
pub use text_input::TextInput;
+pub use text::Text;
+
#[cfg(feature = "canvas")]
#[cfg_attr(docsrs, doc(cfg(feature = "canvas")))]
pub mod canvas;
diff --git a/wgpu/src/widget/text.rs b/wgpu/src/widget/text.rs
new file mode 100644
index 00000000..1053ea97
--- /dev/null
+++ b/wgpu/src/widget/text.rs
@@ -0,0 +1,7 @@
+//! Write some text for your users to read.
+use crate::Renderer;
+
+/// A paragraph of text.
+///
+/// This is an alias of an `iced_native` text with an `iced_wgpu::Renderer`.
+pub type Text = iced_native::Text<Renderer>;