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
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
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
019af8ddbf
Add overlay support in iced_pure and port PickList 🎉
2022-02-16 17:07:25 +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
Olivier Pinon
d06e6bfb51
Lower text::Renderer's Font bound from Copy to Clone
2021-12-10 23:34:02 +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
6504dca059
Introduce state lifetime for style_sheet in PickList
2021-10-31 17:06:05 +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
5a942ee7ee
Implement Widget::mouse_interaction for PickList
2021-10-28 16:42:32 +07:00
Héctor Ramón Jiménez
8740891feb
Implement Widget::draw for PickList
2021-10-28 15:49:05 +07:00
Héctor Ramón Jiménez
fe4dfeafdb
Wire up style to PickList and overlay::Menu
2021-10-28 15:41:12 +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
54a9a232f8
Draw scrollbar in Widget::draw for Scrollable
2021-10-18 14:48:33 +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
78b345bc59
Allow PickList selection with mouse scroll only if command is pressed
...
This should avoid unintended interactions when using a `PickList` inside
a `Scrollable`
2021-07-27 12:48:14 +07:00
Héctor Ramón
dc0b96ce40
Merge pull request #872 from 13r0ck/master
...
add scrolling to pick_lists
2021-07-22 21:38:22 +07:00
Héctor Ramón Jiménez
46aab24d91
Enable scroll selection for PickList only when scroll is discrete
2021-07-22 21:28:21 +07:00
Héctor Ramón Jiménez
6069e90c9b
Abstract and improve scroll logic in PickList
2021-07-22 21:15:35 +07:00
Héctor Ramón Jiménez
a866f8742e
Avoid cloning placeholder for PickList unnecessarily during draw
2021-07-22 20:22:38 +07:00
Héctor Ramón Jiménez
26b2a824a9
Remove duplication of measuring logic in PickList
2021-07-22 20:09:13 +07:00
Héctor Ramón Jiménez
45bd685f7c
Hash placeholder in hash_layout implementation for PickList
2021-07-22 19:13:00 +07:00
Jon Pacheco
fa433743b3
feat: add placeholders to pick_list
...
see issue #726
2021-07-22 19:12:56 +07: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
13r0ck
fbfb28b8d4
Remove redundant 'on_change'
2021-05-25 08:23:04 -06:00
chiheisen
59f3896392
fix pick_list layouting not respecting fonts
2021-05-18 12:37:23 +02:00
13r0ck
3a9ad89970
cargo fmt
2021-05-10 16:06:39 -06:00
13r0ck
8f319d7c6f
Improve performance using iters
2021-05-10 16:05:50 -06:00
13r0ck
77e6e111e0
add scrolling to pick_lists
2021-05-10 14:29:35 -06:00
Héctor Ramón Jiménez
21971e0037
Make Clipboard argument in Widget trait mutable
2021-03-10 01:59:02 +01:00
anunge
9e453843b2
Touch support for PaneGrid and PickList ( #650 )
...
* touch events properly parsed and converted to logical size, button working
* scrolling with a nice touch
* fixed application state level touch cursor. panel_grid is touchable now.
* format glicthes fixes
* format glitches
* tight format
* fixed pane grid
* fixing with upstream
* Remove unused `touch` module from `iced_core`
* Remove unused `crate::text` import in `iced_native`
* Remove redundant match branch in `iced_winit`
* Keep removed line break in `UserInterface::update`
* Compute `text_size` only when bounds contains cursor in `overlay::menu`
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2021-02-12 20:52:20 +01:00
Héctor Ramón Jiménez
0646280d67
Fix Widget::width implementation for PickList
2021-01-15 14:26:23 +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
7ff95f3a88
Implement event capturing for PickList
2020-11-12 00:47:21 +01:00
Héctor Ramón Jiménez
3f968b8c87
Make Widget::on_event return an event::Status
2020-11-12 00:09:52 +01:00
Héctor Ramón Jiménez
d328b07b39
Introduce viewport to Widget::draw
...
This should eventually allow us to only generate primitives that are
visible.
2020-10-28 06:21:07 +01:00
Héctor Ramón Jiménez
d3b04bf892
Introduce Eq requirement to build a PickList
2020-10-24 09:32:23 +02:00
Héctor Ramón Jiménez
a165eddd75
Avoid PaneGrid unfocus when cursor is unavailable
2020-07-23 04:44:35 +02:00
Héctor Ramón Jiménez
a225a218e0
Fix Default implementation for pick_list::State
2020-07-23 04:06:26 +02:00
Héctor Ramón Jiménez
aaf5986123
Improve Menu API to facilitate external control
2020-07-23 03:58:59 +02:00
Héctor Ramón Jiménez
73b8ae8e5e
Rename ComboBox to PickList
2020-07-10 02:52:00 +02:00