diff options
author | 2024-10-22 02:50:46 +0200 | |
---|---|---|
committer | 2024-11-05 23:52:56 +0100 | |
commit | 52490397d64f187d55f51dc5883e3ba6c0da57a6 (patch) | |
tree | 5558afe7b78722eb954224c4bb2ae09b4cb15a19 /widget/src/text_input/cursor.rs | |
parent | 3ba7c71e3ffb651fde753bcf63bb604c16d4bcc2 (diff) | |
download | iced-52490397d64f187d55f51dc5883e3ba6c0da57a6.tar.gz iced-52490397d64f187d55f51dc5883e3ba6c0da57a6.tar.bz2 iced-52490397d64f187d55f51dc5883e3ba6c0da57a6.zip |
Implement `reactive-rendering` for `text_input`
... and fix the redraw queue logic in `iced_winit`.
Diffstat (limited to 'widget/src/text_input/cursor.rs')
-rw-r--r-- | widget/src/text_input/cursor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/text_input/cursor.rs b/widget/src/text_input/cursor.rs index f682b17d..a326fc8f 100644 --- a/widget/src/text_input/cursor.rs +++ b/widget/src/text_input/cursor.rs @@ -2,13 +2,13 @@ use crate::text_input::Value; /// The cursor of a text input. -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub struct Cursor { state: State, } /// The state of a [`Cursor`]. -#[derive(Debug, Copy, Clone)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] pub enum State { /// Cursor without a selection Index(usize), |