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
Héctor Ramón Jiménez
3bdf931925
Turn Touch into a touch::Event enum
2020-12-15 06:38:46 +01:00
Héctor Ramón Jiménez
09110a93b0
Merge branch 'ios-support-wip' into feature/touch-support
2020-12-15 06:13:19 +01:00
Héctor Ramón Jiménez
01322f69a4
Use recently stabilized intra-doc links
...
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
d612bf5678
Rename keyboard::ModifiersState to Modifiers
2020-11-26 02:05:42 +01:00
Héctor Ramón Jiménez
1d23db1866
Track keyboard modifiers in text_input
2020-11-25 04:10:23 +01:00
Zak
d275a4ed32
This PR fixes a bug with select all (CMD + A on MacOS) when using a text_input.
...
Previous behaviour: when selecting all (CMD + A) would delete the current text inside the input and replace the content with just the letter 'a'.
Now we check if the logo key (modifier key) has been pressed before checking any other key and save it to the state level. This way we can prevent any text being deleted when using the select all shortcut or text being entered at all when a modifier key is pressed (this behaviour matches other text input behaviour i.e text inputs in the browser etc...).
2020-11-25 03:57:18 +01:00
Héctor Ramón Jiménez
140bea352e
Disable dragging in TextInput after double click
...
When using a trackpad, mouse move events may happen between the
press/release events. This was incorrectly triggering selection dragging in
the `TextInput` widget.
Eventually, we should implement proper word-aware selection dragging.
2020-11-19 02:45:47 +01:00
Héctor Ramón Jiménez
df712f9ccf
Implement flexible TextInput::draw helper
2020-11-17 05:13:06 +01:00
Héctor Ramón Jiménez
bf6c65b5ad
Implement event capturing for TextInput
2020-11-12 01:11:09 +01:00