Commit graph

144 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
66f7d43dc9
Write missing documentation in iced_native 2022-08-05 05:15:41 +02:00
Héctor Ramón Jiménez
13dd1ca0a8
Implement scrollable::snap_to operation 2022-08-04 03:55:41 +02:00
Héctor Ramón Jiménez
744edbd6c1
Focus text inputs in todos example 2022-07-28 03:58:46 +02:00
Héctor Ramón Jiménez
52f84e51e9
Implement Widget::operate for TextInput 2022-07-28 03:53:47 +02:00
Héctor Ramón Jiménez
80688689aa
Draft widget operations 2022-07-28 02:46:51 +02:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API 2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
54c9815b7b
Simplify update signature in text_input 2022-07-13 18:37:27 +02:00
Héctor Ramón Jiménez
891b917576
Simplify on_paste signature
... and fix spacing.
2022-07-13 18:35:41 +02:00
Wyatt Jacob Herkamp
e8cfa644e7
Added on_paste handler to TextInput 2022-07-13 18:32:56 +02:00
Héctor Ramón Jiménez
2f76a10a1d
Fix further clippy lints
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +02:00
Poly
15f794b7a8
Address Clippy lints 2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
ce53d3933c
Implement theme styling for TextInput 2022-06-07 01:11:35 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Héctor Ramón Jiménez
68e9eb0a9b
Fix broken intra-doc links in documentation 2022-04-30 14:20:52 +02:00
Héctor Ramón Jiménez
f6700000a2
Fix KeyPressed event being always Captured by TextInput 2022-03-28 19:20:40 +07:00
Héctor Ramón Jiménez
497a3ca8ab
Restore TextInput::draw helper
This helper should be unnecessary in the future.
2022-03-18 22:22:19 +07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets 2022-03-07 15:29:43 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait 2022-02-23 21:31:54 +07:00
Héctor Ramón Jiménez
e3108494e5
Implement TextInput in iced_pure 2022-02-12 16:11:37 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event 2022-01-11 14:12:28 +07:00
LordRatte
ff2a470fd8
Change GitHub namespace to new org for all files 2022-01-03 11:36:13 +07:00
Olivier Pinon
d06e6bfb51 Lower text::Renderer's Font bound from Copy to Clone 2021-12-10 23:34:02 +01:00
nlevy
b479ba4821 Make TextInput emit a Submit message when the key NumpadEnter is pressed 2021-12-09 10:58:50 +01:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
023aded277
Rename fill_rectangle to fill_quad in Renderer 2021-11-04 19:24:11 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Héctor Ramón Jiménez
a1db8d62c0
Reintroduce draw method in TextInput
... which allows overriding the rendered value.
2021-11-01 16:29:28 +07:00
Héctor Ramón Jiménez
e70a6be937
Merge branch 'master' into remove-renderer-traits 2021-10-31 17:52:21 +07:00
Héctor Ramón Jiménez
0d3c9ef7bd
Reintroduce Box for style_sheet in TextInput 2021-10-31 17:45:57 +07:00
Héctor Ramón Jiménez
b3a01973c6
Introduce first-class text module in iced_native 2021-10-31 16:14:38 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native 2021-10-31 16:14:34 +07:00
cmot17
b098f06a29
Fix issue with text selection in text_input widget 2021-10-25 16:45:38 +07:00
Héctor Ramón Jiménez
4a11cbd994
Implement Widget::mouse_interaction for PaneGrid
... and fix rendering of drag interaction in `PaneGrid` by
introducing an explicit `with_translation` method to `Renderer`
and simplifying the `with_layer` and `Clip` primitive.
2021-10-25 16:35:02 +07:00
Héctor Ramón Jiménez
cc560aca18
Implement Widget::mouse_interaction for TextInput 2021-10-20 18:45:45 +07:00
Héctor Ramón Jiménez
e914888f57
Implement Widget::draw for TextInput 2021-10-20 18:40:39 +07:00
Héctor Ramón Jiménez
edea093350
Move Defaults from iced_graphics to iced_native 2021-10-18 15:19:04 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native 2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
643500bbdf
Use Option to encode empty text case in hit test methods 2021-09-15 14:49:13 +07:00
Tom
aa63841e2c Implement textual hit testing 2021-08-21 10:31:26 -07:00
Héctor Ramón
a7c40665fe
Merge pull request #652 from twitchyliquid64/text_input_fix
text_input: Do not capture Tab/Up/Down keys
2021-08-12 12:58:08 +07:00
Héctor Ramón
587dbbca42
Merge pull request #776 from AldoMX/master
Added `select_all` method to `TextInput`.
2021-07-22 20:48:03 +07:00
Héctor Ramón Jiménez
b57d567981
Use bitflags for keyboard::Modifiers 2021-07-12 22:01:57 +02:00
Héctor Ramón
8a3b71df8b Replace ignored doc-tests with additional documentation for Padding 2021-06-01 19:45:47 +07:00
Ben LeFevre
fe0a27c56d Add support for asymmetrical padding 2021-06-01 19:05:39 +07:00
Aldo Fregoso
57247106b9 Added select_all method to TextInput. 2021-03-13 14:50:59 -06:00
Héctor Ramón Jiménez
17dcfa8faf Implement copy and cut behavior for TextInput 2021-03-10 01:59:20 +01:00
Héctor Ramón Jiménez
21971e0037 Make Clipboard argument in Widget trait mutable 2021-03-10 01:59:02 +01:00
Héctor Ramón Jiménez
b22b0dd7ff Update window_clipboard to 0.2 2021-03-10 01:16:26 +01:00
Tom
498188e735 text_input: Do not capture tab/up/down keys 2020-12-16 20:46:36 -08:00
Héctor Ramón Jiménez
70164f68a6 Fix text selection with touch events in TextInput 2020-12-15 06:48:12 +01:00