Commit graph

116 commits

Author SHA1 Message Date
Your Name
a6f4b5ac0a android changes taken from ibaryshnikov 2025-05-14 23:27:12 +02:00
Héctor Ramón Jiménez
0e4a392731
Introduce text::Alignment with Justified support 2025-03-11 02:30:50 +01:00
Héctor Ramón Jiménez
179a34d37b
Fix horizontal text alignment 2025-03-11 00:43:51 +01:00
Héctor Ramón Jiménez
7979125ed7
Simplify InputMethod API with only two states
Co-authored-by: rhysd <lin90162@yahoo.co.jp>
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
2025-02-12 08:46:35 +01:00
Héctor Ramón Jiménez
7199ed0d07
Use default size for empty pre-edits 2025-02-12 07:26:26 +01:00
rhysd
cf851e133a Do not pass text size to Preedit::new 2025-02-06 09:57:01 +09:00
rhysd
fcdf53afde Set correct text size for text in preedit window 2025-02-06 02:01:52 +09:00
Héctor Ramón Jiménez
afef368d8a
Take Event by reference in Widget::update 2025-02-04 01:26:59 +01:00
Héctor Ramón Jiménez
bab18858cd
Handle pre-edits and commits only if text_editor is focused 2025-02-03 18:38:20 +01:00
Héctor Ramón Jiménez
e8c680ce66
Request redraws on InputMethod events 2025-02-03 16:55:10 +01:00
Héctor Ramón Jiménez
c83809adb9
Implement basic IME selection in Preedit overlay 2025-02-03 02:33:40 +01:00
Héctor Ramón Jiménez
d28af5739b
Track pre-edits separately from focus in text inputs 2025-02-03 00:51:57 +01:00
Héctor Ramón Jiménez
ae10adda74
Refactor and simplify input_method API 2025-02-02 20:45:29 +01:00
Héctor Ramón Jiménez
0c6d4eb23f
Run cargo fmt and fix lints 2025-02-02 17:50:12 +01:00
KENZ
7db5256b72
Draft input_method support 2025-02-02 17:44:13 +01:00
Héctor Ramón Jiménez
6aab76e3a0
Add min_height and max_height to text_editor 2025-01-30 03:45:14 +01:00
Héctor Ramón Jiménez
a7bc1e7da4
Avoid capturing mouse press when text_editor is unfocused 2025-01-30 02:47:59 +01:00
Héctor Ramón Jiménez
87165ccd29
Introduce LineEnding to editor and fix inconsistencies 2025-01-28 06:23:38 +01:00
Héctor Ramón Jiménez
d09d5d45ae
Draft iced_test crate and test todos example 2024-12-10 04:51:08 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
Héctor Ramón Jiménez
fec75221f9
Fix text_editor capturing mouse release events 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
3482ffecdc
Implement reactive-rendering for text_editor 2024-11-05 23:52:59 +01:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
dcc184b01b
Replace event::Status in Widget::on_event with Shell::capture_event 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
752403d70c
Split Shell::request_redraw into two different methods 2024-11-05 23:52:58 +01:00
Héctor
c01ef5bdbb
Merge pull request #2632 from leo030303/fix_delete_key_bug
Fixed bug where delete key wasn't working in the text editor
2024-10-14 21:16:42 +02:00
Leo Ring
da1331169c
Fix Binding::Delete not triggering in text_editor 2024-10-14 21:07:08 +02:00
BradySimon
f912d26d64
Add PartialEq derives for widget styles 2024-10-14 20:59:32 +02:00
Héctor Ramón
6bed89973d
Merge pull request #2586 from lufte/master
Set the text color determined by the style function
2024-09-19 06:59:27 +02:00
Héctor Ramón Jiménez
184ebebfe1
Show text_editor example in multiple places 2024-09-19 06:14:56 +02:00
lufte
8c6caefd9f Set the text color determined by the style function
Fixes: https://github.com/iced-rs/iced/issues/2557
2024-09-18 23:34:45 -03:00
Héctor Ramón Jiménez
73ae2b4dbe
Fix priority of Binding::Delete in text_editor
Co-authored-by: Trevor Campbell <trevor@shartrec.com>
2024-09-13 01:26:29 +02:00
Héctor Ramón Jiménez
7c7e94c8d1
Set Limits::width in TextEditor layout 2024-09-13 01:10:36 +02:00
Héctor Ramón Jiménez
4081e2b192
Take Into<Pixels> in TextEditor::width
Since a `Shrink` width would not make sense.
2024-09-13 01:08:23 +02:00
Samson
ac1d98aa9b
feat: add width setter 2024-09-13 01:03:35 +02:00
Isaac Marovitz
9edd805c02
Add mouse::Button to mouse::Click 2024-09-09 23:45:15 +02:00
Héctor Ramón Jiménez
f98328f4f1
Add text::Wrapping support
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
2024-09-04 21:26:47 +02:00
Héctor Ramón Jiménez
7740c35a2a
Use clipped_cursor directly in text_editor 2024-08-12 03:25:28 +02:00
Héctor Ramón
6d6f354b42
Merge pull request #2536 from meithecatte/editor-clipping
text_editor: Avoid rendering text outside the border
2024-08-12 03:07:36 +02:00
Héctor Ramón Jiménez
3e59d824f8
Fix clipping area of text_editor placeholder 2024-08-12 02:57:45 +02:00
Héctor Ramón Jiménez
be7d175388
Remove cursor snapping hack in text_editor
The `quad` shader now properly takes care of
snapping lines to the pixel grid.
2024-08-12 02:54:22 +02:00
Héctor Ramón Jiménez
03472dfd4f
Make Padding affect text_editor clipping 2024-08-12 02:53:23 +02:00
Héctor Ramón Jiménez
422568dee4
Introduce black_box and chain in widget::operation 2024-08-08 01:25:00 +02:00
Maja Kądziołka
4d849aaf0b
text_editor: Avoid rendering text outside the border
If the height could fit slightly less than an extra line, said line
would protrude beyond the border of the text editor.
2024-08-03 20:32:51 +02:00
Héctor Ramón Jiménez
6734d18359
Simplify focus method in text_editor 2024-07-29 00:54:23 +02:00
Héctor Ramón Jiménez
695721e120
Implement blinking cursor for text_editor 2024-07-29 00:52:26 +02:00
Héctor Ramón Jiménez
d1fa9537f6
Fix unused core import in text_editor module 2024-07-29 00:02:34 +02:00
Héctor Ramón Jiménez
16212eaf52
Simplify highlight method for text_editor widget 2024-07-28 23:59:51 +02:00
Héctor Ramón Jiménez
e73c8b0413
Reduce KeyPress duplication in text_editor 2024-07-26 11:02:04 +02:00
Héctor Ramón Jiménez
28d8b73846
Implement custom key binding support for text_editor 2024-07-26 11:02:04 +02:00