diff options
author | 2020-01-01 18:26:49 +0100 | |
---|---|---|
committer | 2020-01-01 18:26:49 +0100 | |
commit | 5af4159848341b14f6ff9ae14a9a222d8d8b0fb8 (patch) | |
tree | 436220784428b33b8e378403d11496db2d87884b /wgpu/src/widget | |
parent | d96ced8e2da703117a43399110ef2b8fa21a7546 (diff) | |
download | iced-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.rs | 15 |
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>; |