Commit graph

571 commits

Author SHA1 Message Date
Cory Forsstrom
d562c27e8c Restrict text width & height to prevent overflow 2022-04-27 09:24:04 -07:00
Cory Forsstrom
bc8b4bb182 Manually center top aligned text 2022-04-27 08:56:43 -07:00
Cory Forsstrom
4329f0480b Use top alignment instead of new layer 2022-04-27 08:49:55 -07:00
Cory Forsstrom
6e70d9ad83 Clip bounds to prevent text overflow 2022-04-25 09:01:04 -07:00
Cory Forsstrom
83171f05d0 Don't wrap picklist label text 2022-04-25 08:52:10 -07:00
Héctor Ramón Jiménez
e33f43af31
Reuse Tooltip draw logic in iced_pure 2022-04-24 20:45:43 +07:00
Casper Rogild Storm
5d67f9988c
Implemented Tooltip as Pure 2022-04-22 13:35:53 +02:00
MG_REX
c0e10f2e9d
Fix slider's handle position calculation 2022-03-29 18:49:08 +07:00
Héctor Ramón
13a2997deb
Merge pull request #1294 from marienz/pure-overlay
Forward overlay() calls in iced_pure::element::Map
2022-03-29 18:41:02 +07:00
Héctor Ramón Jiménez
d9d6dff550
Loose lifetime bounds in pure::Widget implementations 2022-03-29 18:24:17 +07: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
6dd187ff08
Implement pure version of PaneGrid widget 2022-03-14 17:44:25 +07:00
Héctor Ramón Jiménez
0fbd1d98b5
Implement pure version of Rule widget 2022-03-10 16:58:55 +07:00
Héctor Ramón Jiménez
12c1a3f829
Remove redundant widget modules in subcrates
Instead, we can define the type aliases just once in the root crate!
2022-03-09 14:10:15 +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
15b4bbd49d
Hash content_fit in hash_layout of Image and Svg 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
8d94cd4c5c
Remove redundant layout.bounds() calls in Image and Svg 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
83c0e0f7a8
Add ContentFit support to Svg widget 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
6822d1d9f2
Center Image inside available bounds when possible 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
0aff444941
Rename Image::fit to content_fit
... just for consistency!
2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
8b5c9dfa71
Make documentation of Image::fit consistent 2022-02-16 18:19:37 +07:00
Héctor Ramón Jiménez
395eacfc10
Use a new clipping layer only when necessary in Image::draw 2022-02-16 18:19:36 +07:00
Emi Simpson
ca1fcdaf14
Add support for ContentFit for Image 2022-02-16 18:19:33 +07:00
Héctor Ramón Jiménez
019af8ddbf
Add overlay support in iced_pure and port PickList 🎉 2022-02-16 17:07:25 +07:00
Héctor Ramón Jiménez
53f3820432
Implement Radio in iced_pure 2022-02-13 22:13:47 +07:00
Héctor Ramón Jiménez
98750782f3
Introduce lifetime to on_change handler for Toggler 2022-02-13 19:23:15 +07:00
Héctor Ramón Jiménez
3f1a45ca47
Implement Slider in iced_pure 2022-02-13 17:20:10 +07:00
Héctor Ramón Jiménez
45455be450
Implement Image in iced_pure 2022-02-13 16:51:31 +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
b2670e8752
Implement Scrollable in iced_pure 2022-02-12 15:18:31 +07:00
Héctor Ramón Jiménez
178914ec23
Implement Checkbox in iced_pure 2022-02-12 14:26:17 +07:00
Héctor Ramón Jiménez
182fb9446c
Implement Container widget in iced_pure 2022-02-12 14:07:04 +07:00
Héctor Ramón Jiménez
ecb3df8e01
Expose reusable Button logic
... and reuse it in `iced_pure`!
2022-02-11 23:17:07 +07:00
Héctor Ramón Jiménez
93285d85b0
Remove ambiguous text_color attributes for Checkbox and Radio
Instead, always use a `StyleSheet`.
2022-01-20 18:34:15 +07:00
Héctor Ramón Jiménez
870d651f35
Implement Widget::overlay for Responsive widget 2022-01-12 11:15:05 +07:00
Héctor Ramón Jiménez
2e255b7b91
Implement Widget::mouse_interaction for Responsive 2022-01-11 14:21:38 +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
Héctor Ramón Jiménez
6ab4611a6e
Invalidate widget tree from Responsive widget
... by introducing a new `invalidate_widgets` method to `Shell`
2022-01-11 13:47:43 +07:00
Héctor Ramón Jiménez
90c20ac46b
Draft Responsive widget 2022-01-11 10:47:56 +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
Olivier Pinon
a7bcd65bb8 Decouple the image Handle type from the iced_native implementation 2021-12-10 23:33:58 +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
aed5a0d5f9
Remove unused field in scrollable::Scrollbar 2021-12-07 16:11:55 +07:00
Imbris
f86d96be0f Include alignment in the container layout hash 2021-12-06 14:27:24 -05: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
77aa05afd3
Fix implementation of Widget::mouse_interaction for PaneGrid 2021-11-21 15:06:01 +07:00
Héctor Ramón
d165b789df
Merge pull request #1114 from tarkah/fix/slider-optimization
Don't rebroadcast redundant slider messages
2021-11-16 16:00:31 +07:00