summaryrefslogtreecommitdiffstats
path: root/wgpu/src/widget
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-01 18:26:49 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-01 18:26:49 +0100
commit5af4159848341b14f6ff9ae14a9a222d8d8b0fb8 (patch)
tree436220784428b33b8e378403d11496db2d87884b /wgpu/src/widget
parentd96ced8e2da703117a43399110ef2b8fa21a7546 (diff)
downloadiced-5af4159848341b14f6ff9ae14a9a222d8d8b0fb8.tar.gz
iced-5af4159848341b14f6ff9ae14a9a222d8d8b0fb8.tar.bz2
iced-5af4159848341b14f6ff9ae14a9a222d8d8b0fb8.zip
Draft basic styling for `TextInput`
Diffstat (limited to 'wgpu/src/widget')
-rw-r--r--wgpu/src/widget/text_input.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/wgpu/src/widget/text_input.rs b/wgpu/src/widget/text_input.rs
new file mode 100644
index 00000000..260fe3a6
--- /dev/null
+++ b/wgpu/src/widget/text_input.rs
@@ -0,0 +1,15 @@
+//! Display fields that can be filled with text.
+//!
+//! A [`TextInput`] has some local [`State`].
+//!
+//! [`TextInput`]: struct.TextInput.html
+//! [`State`]: struct.State.html
+use crate::Renderer;
+
+pub use iced_native::text_input::State;
+pub use iced_style::text_input::{Style, StyleSheet};
+
+/// A field that can be filled with text.
+///
+/// This is an alias of an `iced_native` text input with an `iced_wgpu::Renderer`.
+pub type TextInput<'a, Message> = iced_native::TextInput<'a, Message, Renderer>;