//! A text selection API built around `iced`'s [`Paragraph`]. //! //! [`Paragraph`]: https://docs.iced.rs/iced_graphics/text/paragraph/struct.Paragraph.html pub mod selection; pub mod text; use iced_widget::core; pub use text::Text; /// Creates a new [`Text`] widget with the provided content. #[macro_export] macro_rules! text { ($($arg:tt)*) => { $crate::Text::new(format!($($arg)*)) }; } /// Creates a new [`Text`] widget with the provided content. pub fn text<'a, Theme, Renderer>( text: impl core::text::IntoFragment<'a>, ) -> Text<'a, Theme, Renderer> where Theme: text::Catalog + 'a, Renderer: core::text::Renderer, { Text::new(text) }